Skip to main content

Deep Learning - Setup

The next major software development topic I'll be exploring is Deep Learning. Much of my insight will come from this online course I'm taking via Udemy. I've just started it, so I can't provide an informed review just yet. I would recommend though, if you want to purchase it, wait until it goes on sale (which it does quite often). The "normal" price is $199, but I got it for $15. I'm not affiliated with or sponsored by Udemy in any way.

Quick Note: I will sometimes use the phrases "machine learning" and "deep learning" interchangeably throughout this blog, though I'll be primarily dealing with the former. Here is a diagram I found of their relation to each other and with the more broad Artificial Intelligence field:

Image result for diagram of machine learning deep learning artificial intelligence

[Source]

From now on, unless I specify otherwise, I'll be using a 2015 Macbook Pro for my work. The OS is currently OS X 10.13.1, AKA High Sierra.

This post will cover any issues I have while setting up Tensorflow and the general work environment covered in the Installation and Setup section of the course.

The first issue I ran into, which took me quite a while to figure out, was I was getting the following error:


The error is: "SpecNotFound: Can't process without a name" when using the command "conda env create -f mac_tfdl_env.yml". 

Note that I am using the alternate .yml file for Mac, as specified in the lecture 4 note.

While following along with the installation lecture, I noticed he checked a box to add something to the environment variable. I couldn't find an exact match for what he was showing (perhaps he's using Windows), but I did find this when I clicked into a configuration button:


I DID check the box that says "Modify PATH", but I took this screenshot before I had. I don't think this was the solution to my problem since that box is checked by default in the installer I'm using. In my solution, despite what the prompt there says, I included the full path to conda commands. I don't think this was the actual fix (since when I type "conda" and hit enter, I get information about anaconda and not an error), but I did use it. What I think the main issue was was something very simple: my .yml file was inside of a sub-directory in my Documents folder (called Tensorflow-Bootcamp), so the conda command couldn't find it. Here's my fix: 


Such an obvious fix that took me so long to figure out!

In terms of setup, that's really the only issue I trouble with. Now onto my introduction to Machine Learning. I'll post any notes I take in the following post. Thanks for reading!











Comments

Popular posts from this blog

Reading from and Modifying a DynamoDB Table using API Gateway

In many IoT (Internet of Things) projects, it is necessary to read from and write to a database. AWS has an application called DynamoDB that is a NoSQL database, exactly what we need. While it is very simple to add/modify/delete entries in this database via the user interface, it's not so obvious how to do so via HTTP API calls. So, in this post I'll continue the AWS portion of my journey into IoT to learn how to do just that. I'll be following  this  tutorial. The first thing I encountered is I wasn't sure if I was supposed to follow the steps under "Defining APIs", or if that was just knowledge for later. Turns out, that was knowledge for later. If I had any prior experience with APIs I probably would have realized this. Basically, the "API definition"s are just a high-level plan for what you want your API requests to look like in the end. In my opinion this information should go in the "Creating the APIs" section. Moving through "Cr...

Arduino Project: Sound Alert via Twitter

For my second IoT project using Arduino MKR1000, I'll employ a sound sensor to send out alerts via Twitter when a loud sound is detected. This could have many uses, ranging from informing the inhabitants of a house that there is someone at the door, informing a car owner that their alarm is going off, or residents that a gunshot has gone off in their neighborhood. See my previous posts to learn about the setup process for the Arduino MKR1000, which is wifi-enabled without any additional extensions. I will be using the Arduino IDE to compile the code. For hardware, I'll be using the sound sensor I purchased here , as well as my Arduino, three solder-free wires, a generic breadboard, and a Kindle power cable (this probably isn't the safest way to power Arduino, but it's what I had). I'll be following this  tutorial to set up the sound detector, as well as some code from here  to utilize Twitter. The sound setup tutorial was very simple and one of the clearest wiring g...

Deep Learning - Recurrent Neural Networks (RNNs)

The latest Deep Learning topic I've been exploring is the Recurrent Neural Network (RNN). It has many use cases, including: time series extrapolation (i.e. given historical data, predict future output); object trajectory; and natural language processing (NLP). The code I wrote during this section of the course I'm taking can be found here . For my summary of RNNs, click here . Here are the notes I took while watching the lectures: RNN Theory Examples of Sequences Time Series Data (e.g. stock prices, sales rates) Sentences (i.e. natural language) Audio/Music Car Trajectories (where a car will go in a situation) [1,2,3] shifted one time step into the future would be [2,3,4] will train a network to predict y-values for this A normal neuron has input, activation function, then output A Recurrent Neuron sends output back to itself this process is called “unrolling” the neuron note that the input of each neuron is a summation from both ...