lfbraz / ml-train-model

Simple example of how to train a machine learning model using Python's language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Machine Learning model training with Python

This implementation is for learning purposes. Could be used to learn how to train a simple machine learning model using Python. Use your creativity to expand the use to have fun to fix a lot of real world problems and feel free to clone this repo and adapt this code for your requirements :)

These code were inspired from the https://docs.azuredatabricks.net/_static/notebooks/mlflow/mlflow-quick-start-training.html.

pipenv shell

To update requirements in Pipfile run pipenv update

Flake8 config

Use the bellow code to adjust the max line length limit flake8 --max-line-length=140

If you use VSCode you can add this config to settings.json adding the code:

"python.linting.flake8Args": [
        "--max-line-length=140",
    ]

How to train the model

Run run.py

About

Simple example of how to train a machine learning model using Python's language

License:MIT License


Languages

Language:Python 100.0%