Giter Site home page Giter Site logo

tensorflowfun's Introduction

TensorflowFun

My Exploration With Tensorflow!

Through out this repo there will be many different models being created.

Models.py was created to help with creation, testing, tuning, loading, and saving models.

Models.py

This script takes in command line inputs such as the model to use and the hyperparamters to be passed. With these inputs, the given model is executed.

Command Line Inputs

Here are the types of inputs to pass to this script:

  • --modelName or -m (string) (REQURED) : Represents which model to excute (Can only choose models in the list of choices)
  • --mode or -o (string) : Represents how to interact with the given mode (Current Choices are: Train, Test, Train&Test)
  • --learningRate or -l (float) : Represents the learning rate to be passed to the model
  • --batchSize or -b (int) : Represents the batch size to be passed to the model (the amount of training examples to work through before updating weights)
  • --epochs or -e (int) : Represents the epochs to be passed to the model (the amount of full run throughs of the training data)
  • --validationSplit or -v (float) : Represents the precentage of the test data to be used as a validation set
  • --load-model (boolean flag) : Tells the model script to load a saved version of the model
  • --save-model (boolean flag) : Tells the model script to save the model at the end of execution

Adding Models to Models.py

To add models to Models.py there are a couple of things to change to Models.py

Steps:

  1. Add your model name to the MODEL_CHOICES list
  2. Add your model function as a key-value entry in MODEL_FUNCTIONS. With the model name you added to MODEL_CHOICES as the key and the model's function as the value (Take a look at how the MNIST Neural Network Model is added)
  3. In your model function, make sure to take a single arguement (call it argv if you'd like). This will hold the values of inputs passed into the command line. To access you can do argv.{input name} (Ex: argv.learningRate). The inputs will follow camelCase style.

tensorflowfun's People

Contributors

esauidk avatar

Stargazers

Tyler Waters 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.