Step One: Start Python
Step Three: Activate the Network
I'm really surprised at how fast the first attempt went. I thought I would struggle a bit more because of all the details I don't know. Sure, I know that there are layers and some are hidden. I know that you can have different kinds of layers Sigmoid and Tanh, but I don't know the difference yet. In spite of what I don't know, I was still able to follow the very simplistic tutorial. Step One: Start Python Step Two: Import pybrain and create a network. With a network that has 3 hidden layers, 2 inputs, and 1 output neuron, would you believe that the next step is the neural network equivalent of a "Hello World" program? The modules are already connected and ready to do something. Step Three: Activate the Network Done. What do those numbers mean? Nothing. We didn't use any training data and nothing is truly ready, but just as in a "Hello World" tutorial, this is just to show that something has been accomplished. There is so much more to the subject, but until I read some books on deep learning, I think I've reached the end of what I can do without knowledge. It's a fun first step.
0 Comments
I'm sure someone or some book once told me what the array of strings passed into the main method of a Hello World application was for. I'm equally sure it never mattered to me. To be honest, it still doesn't, but let's talk about it for a second. The usual hello world application.
The above application is a very traditional style of hello world application. It's done this way so you don't have to ask more questions than necessary. But there's parts of this application that I never questioned. The code below gives us a glimpse at what the string array is doing. A different kind of hello world application.
This slightly different implementation allows me to pass two strings into the application when I call it and it will output those strings with a space in the middle.
This means that this could be a Happy Birthday application without making any changes to it. You would simply pass in Happy and Birthday when you execute the app. Because this isn't a groundbreaking discovery, there's nothing more about this to discuss. Just remember that if you want to pass any arguments to your application, you can. |
Disclaimer: The opinions expressed herein are my own. I do not represent my employer, coworkers, mentor, friends, or family in any way on this website or any of its connected social media accounts.
Categories
All
Archives
September 2021
|