You are using PyCaffe (Python interface for Caffe) and training a deep neural network directly within Python (although I think the same command holds for MATLAB).
You are on a machine with 2 GPUs and you want to specify which GPU to use for training. This is useful so you can train two different models at the same time on each GPU. Note that here we refer to training two different models on two different GPUs on the same machine, not a single model on two GPUs.
So I wanted to to add an IPython notebook within a WordPress blog post. The first thing I tried was exporting directly to HTML, and copying the HTML directly within the WordPress post. This sort of worked. However, it was very slow to copy all the HTML into the post and the formatting looked terrible.
Then I came across a way to do so, which you can read about here.
However, I did not want people to be able to directly access the IPython notebook HTML page (if say google indexed it). Rather I want to direct people to the actual WordPress post.
So I had the privilege of seeing Donald Knuthspeak at UBC a few days ago. I was excited to see one of the eccentric Computing Science legends in real life.
The talk was in an interesting format. Knuth was in front of a relatively small theater, and simply answered any questions that were presented to him from the crowd. It was thus a spread of different questions and topics presented to him.
I took a few notes during the talk and I summarize the topics and Knuth’s responses here.
Knuth on writing:
translate to have less jargon
pays people to find errors in his books
write to have errors, that is, be precise and falsifiable (e.g. “13% improvement”, where this 13% can be verified)
have the history of discoveries with references
write about things that will be important 50 years from now
–> e.g. methods that are useful for many different applications
Did you know that Decision Forests (or Random Forests, I think they are pretty much the same thing) are implemented in MATLAB? In MATLAB, Decision Forests go under the rather deceiving name of TreeBagger.
Here’s a quick tutorial on how to do classification with the TreeBagger class in MATLAB.