GithubHelp home page GithubHelp logo

00mjk / applied-ml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gokumohandas/mlops-course

0.0 0.0 0.0 3.46 MB

https://madewithml.com/

License: MIT License

Jupyter Notebook 97.33% Makefile 0.05% Python 2.61%

applied-ml's Introduction

Applied ML · MLOps · Production
Join 20K+ developers in learning how to responsibly deliver value with applied ML.

     

If you need refresh yourself on ML algorithms, check our out ML Foundations repository (🔥  Among the top ML repositories on GitHub)


📦  Product 🔢  Data 📈  Modeling
Objective Annotation Baselines
Solution Exploratory data analysis Experiment tracking
Evaluation Splitting Optimization
Iteration Preprocessing
📝  Scripting (cont.) 📦  Application ✅  Testing
Organization Styling Command line Code
Packaging Makefile RESTful API Data
Documentation Databases Model
Logging Authentication
⏰  Version control 🚀  Production (cont.)
Git Dashboard Serving
Precommit Docker Feature stores
Versioning CI/CD Workflow management
Monitoring Active learning

📆  new lesson every week!
Subscribe for our monthly updates on new content.


Set up

python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
make install-dev

Start Jupyterlab

python -m ipykernel install --user --name=tagifai
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install @jupyterlab/toc
jupyter lab

You can also run all notebooks on Google Colab.

Directory structure

tagifai/
├── config.py     - configuration setup
├── data.py       - data processing utilities
├── main.py       - main operations (CLI)
├── models.py     - model architectures
├── predict.py    - inference utilities
├── train.py      - training utilities
└── utils.py      - supplementary utilities

Documentation can be found here.

Workflow

  1. View all available options using the CLI app:
tagifai --help
tagifai train-model --help
  1. Download the necessary data files to assets/data.
tagifai download-data
  1. Optimize using distributions specified in tagifai.train.objective. This also writes the best model's args to config/args.json
tagifai optimize --num-trials 100

We'll cover how to train using compute instances on the cloud from Amazon Web Services (AWS) or Google Cloud Platforms (GCP) in later lessons. But in the meantime, if you don't have access to GPUs, check out the optimize.ipynb notebook for how to train on Colab and transfer to local. We essentially run optimization, then train the best model to download and transfer it's arguments and artifacts. Once we have them in our local machine, we can run tagifai set-artifact-metadata to match all metadata as if it were run from your machine.

  1. Train a model (and save all it's artifacts) using args from config/args.json
tagifai train-model --args-fp config/args.json
  1. Predict tags for an input sentence. It'll use the best model saved from train-model but you can also specify a run-id to choose a specific model.
tagifai predict-tags --text "Transfer learning with BERT"

MLFlow

mlflow server -h 0.0.0.0 -p 5000 --backend-store-uri assets/experiments/

Mkdocs

python -m mkdocs serve

FAQ

Why is this free?

While this content is for everyone, it's especially targeted towards people who don't have as much opportunity to learn. I firmly believe that creativity and intelligence are randomly distributed but opportunity is siloed. I want to enable more people to create and contribute to innovation.

Who is the author?

  • I've deployed large scale ML systems at Apple as well as smaller systems with constraints at startups and want to share the common principles I've learned along the way.
  • I created Made With ML so that the community can explore, learn and build ML and I learned how to build it into an end-to-end product that's currently used by over 20K monthly active users.
  • Connect with me on Twitter and LinkedIn

applied-ml's People

Contributors

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