Git Product home page Git Product logo

machine-learning-tutorial's Introduction

Machine Learning Tutorial

This is a simple tutorial of how create a Tensorflow model and how to use this model in a application.

When use Machine Learning

With Machine Learning you can:

  • Predict values using the historical data.
  • Classify based on features
  • ...

What is Tensorflow

Tensor is a Google framework that helps you add Machine Learning to your application.

How Machine Learning works

Machines will never learning anything.

Machine only recognizes patterns.

So the first step for using a Machine Learning approaches is teach the machine to recognizes a pattern. This means you should train the machine and creates a model.

So they learn!

No! There is a mathematical model to preview the output based on a train.

Let me explain better.

Our trainning set is composed of rows, each row is a historical data. For each row we have at least one feature and one real data. Let's create an equation where equation is a matrix for all the input values and equation is all the real data.

equation

Now we are guessing that exists a vector equation that can convert each input data in their respective output.

equation does not exists! But if we find any values that minimizes the error, we can contruct a model that predicts the output.

Creating the trainning environment

The first step for using Tensorflow is create the trainning environment.

You can see at Dockerfile who you can setup the environment for trainging and prepare the data.

Creating the model

With everything running fine, you should start trainning your model. You can see here how it can be done.

Validating the data

Running the train container, you can inspect the trainning you had done at http://localhost:6006.

docker build -t mlt-trainning train/
docker run -p 6006:6006 --name mlt -i -t mlt

Serving the data

You can see in the gcloud scripts how install an upload the model to Google Cloud.

Before you run theses scripts you should:

  1. Create a project at Google Cloud Console
  2. Create a credentials file at train/credentials.json
  3. Enable billing, if you do not enable you cannot upload the model

machine-learning-tutorial's People

Contributors

vepo avatar

Watchers

 avatar  avatar  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.