Resetting Holoview Elements To Default Options

October 14, 2018

It took me the longest time to figure out how to reset the cmap option on a holoview Image object. It turns out, calling the opts() function with no arguments will reset the opts to the defaults. It is important to understand the difference between opts and options. Read more here:

Read More

Rendering Holoview In Jupyter

October 12, 2018

For some unknown reason, I could not get holoview visualizations to render in Jupyter Notebook for the longest time. I finally found the solution here: by explicitly using hv.ipython.display.

Read More

Questions to Be Answered

April 15, 2018

There are thousands of cryptocurrencies openly trading across thousands of online exchanges. lists over 120 coins, which have over 100 Million dollar market caps each. The market cap of all cryptocurrencies is calculated to be over 330 Billion dollars. Where is this money coming from? Out of what external sectors is this money flowing? Is it coming out of stocks? Foreign Currency? Precious metals? Middle class savings accounts? Low class earnings? The pockets of billionaires? The strategic investment of banks governments and corporations? Is the cryptocurrency ecosystem a zero-sum game? Or is it generating wealth? What are the precursor elements that have been transmuted into 330 billion dollars of wealth? Who are the people that are driving the trust in these assets? Where do they come from? What industries are they leaving? What activities are they diverting energy away from, into cryptocurrencies? What has been sacrificed to dedicate 330 billion dollars worth of human energy into an ecosystem of autonomous, non-human, immortal, functional, symbolic entities? Are there organizations of people who have power over the price of cryptocurrencies? Are cryptocurrencies a form of media? Can cryptocurrencies be used to influence public opinion? Can cryptocurrencies be used as financial weapons? Or strategic tools by governments, corporations, guilds, or unions? What alliancs are being formed over powergrab of an emerging 330 billion dollar market, only 9 years old? What is the future of cryptocurrency? Will it completely replace foreign currency? What do stocks and cryptocurrencies have in common? What do cryptocurrencies have in common with biological systems? With ecological systems? What is the impact of cryptocurrencies on human progress? On human wealth? Can the long term value of cryptocurrencies be modeled with a simple natural function? What similarities can be drawn between cryptocurrency and the internet? What will the union of cryptocurrency and artificial intelligence look like?

Read More

Flattening and Unflattening Keras Model Weights

March 21, 2018

I am implementing an Evolutionary Strategies(ES) approach to Reinforcement Learning benchmark problems from Gym as documented here. In ES you optimize parameters theta as a black box. Thus instead of training our keras model with backpropagation we are directly optimizing the parameter space via random perterbations (mutations) in a population, and then selection. Thus we would like to extract model weights to be manipulated directly, hence the need for flattening and unflattening of the weights, which can be done with the following code:

Read More