Code Monkey home page Code Monkey logo

neuralnetworks's Introduction

A Conjurer's Introduction to Machine Learning in JavaScript

PreCourse Steps:

  • Look at the Kaggle Compeition: https://www.kaggle.com/c/GiveMeSomeCredit

  • Run the node.js server 2. If you're not familiar with Node.js, fork and clone my repo

    1. Go to https://github.com/AlgorithmsMeetup/NeuralNetworks and click Fork in the upper right.
    2. cd ~/Desktop changes directory to the Desktop. Feel free to use whichever directory you want.
    3. git clone https://github.com/YOUR_USERNAME_HERE/learningMachines creates a folder on your Desktop that is a clone of your fork
    4. cd learningmachines changes the directory into that folder
    5. subl . to open up the folder in sublime, assuming you have the subl command installed
    6. Install nodemon globally npm install -g nodemon
    7. Back in the terminal: cd neuralNet, and then cd server
    8. npm install. If this gives you an error, try sudo npm install
    9. nodemon --max-old-space-size=3000 server.js. This line does three things: it starts your node server based on the path you give it from the current directory (server.js). It starts nodemon on it, which means it will restart whenever you make a change to any file in the server directory. It allocates 3000 MB of memory to node, so that it doesn't crash if node runs over the 1.76 GB typically allocated to Node.js. You can adjust this number based on your system's capabilities and the problem you're solving.
    10. You can now make api calls to this server, either through your browser (http://localhost:5000/neuralNet/startNet), or through curl on your command line curl localhost:5000/neuralNet/startNet
    11. You now have a running node server on your computer, with all the right dependencies installed!
  • The key files in our node server are in the neuralNet folder.

    1. neuralNetLogic.js is where we have all the actual JS logic built out.
  • Your turn! Here are the things I expect you to do

    1. Start the net
    2. Understand how the network is being trained and tested
    3. Modify the network parameters
    4. Add in new data to train the net. Rewrite what's currently in formatData with new data points, or 'features' as they're called in data science, that are combinations of the raw data we already have. Examples would include exact ratios that the net currently can't access because we've already transformed the data into a number between 0 and 1.
  • Extra Credit

    1. Handle cases that have missing data ("0") differently than cases that have full data
  • Fantasy Mode

    1. Parallelize the training of multiple nets at the same time. Training each net is synchronous, so parallelizing won't help you train a single net any faster. But you could try creating multiple versions that have different parameters (number of nodes, hidden layers, learning rate, etc.) and train those in parallel with each other.

neuralnetworks's People

Contributors

climbsrocks avatar joshuanewman10 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.