Giter VIP home page Giter VIP logo

example_nn's Introduction

This project contains a basic example of a Neural Network.

  • the .ipynb module must be used in a Jupyter notebook, the .py is a standard python (from command code python3 example_nn.py)
  • data_example.csv is a fancy dataset to train and validate the model; only one feature numeric column and the target column. The target is sin * cos + random number.
  • the labels 'velocity' and 'force' are for illustrative purposes only, they could be anything
  • data_example_test.csv is used to run the trained model; the target is sin * cos (without random numbers)
  • the DNNRegressor does not consider a specific activation function for each layer (all the layer use the same activation function). This limitation can be removed in a more advanced example

Anybody who wants to use the network for some real use (or as a starting point), must answer some important questions:

  • which is the 'correct' behaviour of the model? Even if you do not have a formula or a simple rule, what do you want it to do? (E.g.: tell if you are going too slow or too quick)
  • why do you think that a Machine Learning program is better than a classica one? E.g. why you cannot use a mathematical formula?
  • how many data do you have to train the network?
  • is there any other feature that can be derived from the data and that could be important? E.g. difference between two consecutive values of the input features (that would be 'acceleration' if the feature is velocity)

In any specific case the tuning of the model's parameter must be done using real data, and implies some knowledge of the data themselves (e.g. for outliers, etc.)

example_nn's People

Contributors

ssiccardi avatar

Watchers

James Cloos 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.