This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cs501r_f2016:lab5 [2016/09/15 16:15] wingated |
cs501r_f2016:lab5 [2016/09/19 15:47] wingated |
||
---|---|---|---|
Line 41: | Line 41: | ||
Also note that there are two versions of Tensorflow -- one that runs on GPUs, and one that runs only on the CPU. You may want to try the GPU version first; if it works (and you have a GPU in your computer!) it may be **considerably** faster than the CPU only version. Performance won't be a big deal for this lab, but it will matter more later on. | Also note that there are two versions of Tensorflow -- one that runs on GPUs, and one that runs only on the CPU. You may want to try the GPU version first; if it works (and you have a GPU in your computer!) it may be **considerably** faster than the CPU only version. Performance won't be a big deal for this lab, but it will matter more later on. | ||
+ | |||
+ | A few other notes: | ||
+ | - The GPU version of Tensorflow has considerably more external dependencies - you will need to install several Nvidia packages to support it. There be dragons there. | ||
+ | - It might seem natural to use the ''anaconda'' install instructions, since that's what we're using in class. However, I have found that the creation of virtual environments complicates life, and doesn't seem to work well with the notebooks we've been using. A much simpler way is just to use the ''pip'' installation method. | ||
**Part 2: implement basic MNIST tutorial** | **Part 2: implement basic MNIST tutorial** | ||
Line 59: | Line 63: | ||
Note that you will need to pick the size of the hidden layer. Try different values, and see what works. | Note that you will need to pick the size of the hidden layer. Try different values, and see what works. | ||
- | Adding a second layer, adjusting my initialization, changing my step size to 0.05, and running for 2000 epochs, I was able to achieve 92% classification accuracy. My new classification curve is shown in the first section of this document. | + | Adding a second layer, adjusting my initialization, changing my step size to 0.05, and running for 2000 epochs, I was able to achieve 92% classification accuracy. Using a larger steps size (0.1) allowed me to get to 94% accuracy. My new classification curve is shown in the first section of this document. |
You are welcome (and encouraged!) to see what happens as you add more and more layers! | You are welcome (and encouraged!) to see what happens as you add more and more layers! |