{"id":24285261,"url":"https://github.com/vepo/machine-learning-tutorial","last_synced_at":"2025-10-18T20:32:29.005Z","repository":{"id":95647750,"uuid":"100759862","full_name":"vepo/machine-learning-tutorial","owner":"vepo","description":"An example of how to use Tensorflow in a project [UNDER CONSTRUCTION]","archived":false,"fork":false,"pushed_at":"2017-08-31T23:20:05.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T19:19:26.682Z","etag":null,"topics":["machine-learning","python3","tensorfow"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vepo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-19T00:39:12.000Z","updated_at":"2017-08-19T06:33:55.000Z","dependencies_parsed_at":"2023-04-11T07:49:30.714Z","dependency_job_id":null,"html_url":"https://github.com/vepo/machine-learning-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vepo/machine-learning-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vepo%2Fmachine-learning-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vepo%2Fmachine-learning-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vepo%2Fmachine-learning-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vepo%2Fmachine-learning-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vepo","download_url":"https://codeload.github.com/vepo/machine-learning-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vepo%2Fmachine-learning-tutorial/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","python3","tensorfow"],"created_at":"2025-01-16T06:33:58.033Z","updated_at":"2025-10-18T20:32:28.919Z","avatar_url":"https://github.com/vepo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machine Learning Tutorial\n\nThis is a simple tutorial of how create a Tensorflow model and how to use this model in a application.\n\n## When use Machine Learning\n\nWith Machine Learning you can: \n\n* Predict values using the historical data.\n* Classify based on features\n* ...\n\n## What is Tensorflow\n\nTensor is a Google framework that helps you add Machine Learning to your application.\n\n## How Machine Learning works\n\nMachines will never learning anything. \n\nMachine only recognizes patterns.\n\nSo 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.\n\n### So they learn!\n\nNo! There is a mathematical model to preview the output based on a train.\n\nLet me explain better.\n\nOur 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](https://latex.codecogs.com/svg.latex?A) is a matrix for all the input values and ![equation](https://latex.codecogs.com/svg.latex?b) is all the real data.\n\n![equation](https://latex.codecogs.com/svg.latex?Ax=b)\n\nNow we are guessing that exists a vector ![equation](https://latex.codecogs.com/svg.latex?x) that can convert each input data in their respective output.\n\n![equation](https://latex.codecogs.com/svg.latex?x) does not exists! But if we find any values that minimizes the error, we can contruct a model that predicts the output.\n\n## Creating the trainning environment\n\nThe first step for using Tensorflow is create the trainning environment. \n\nYou can see at [Dockerfile](train/Dockerfile) who you can setup the environment for trainging and prepare the data.\n\n## Creating the model\n\nWith everything running fine, you should start trainning your model. You can see [here](train/train_data.py) how it can be done.\n\n## Validating the data\n\nRunning the train container, you can inspect the trainning you had done at http://localhost:6006.\n\n```bash\ndocker build -t mlt-trainning train/\ndocker run -p 6006:6006 --name mlt -i -t mlt\n```\n\n## Serving the data\n\nYou can see in the gcloud scripts how [install](train/gcloud-activate.sh) an [upload](train/upload-model.sh) the model to Google Cloud.\n\nBefore you run theses scripts you should:\n\n1. Create a project at [Google Cloud Console](https://console.cloud.google.com)\n2. Create a credentials file at `train/credentials.json`\n3. Enable billing, if you do not enable you cannot upload the model ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvepo%2Fmachine-learning-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvepo%2Fmachine-learning-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvepo%2Fmachine-learning-tutorial/lists"}