Giter Club home page Giter Club logo

mlflow-multipleversions's Introduction

mlflow-multipleversions

This repository is having a folder "multiple version" which is a mlflow project . In that folder , there are 2 more folders "v1" and "v2" which are different projects containing different models having different hyperparameters and predictors )

The functionality demonstrated here is switching between the models . Since this is a mlflow project ,the command to execute the folder is :

  mlflow run multiple versions  

By default it takes 'v1' as the model . To select a particular model ,the parameter is 'model_version' and command should be:

  mlflow run multiple versions -Pmodel_version=1

The possible values for model_version can be 1 and 2 for model v1 and v2 respectively. Note that model_version is also logged as a parameter.

You can run different models and switch between them using the above command . Also, the logs are shown on UI ( Screenshot is also present in the repository )

#Further Reading

Each Model is also translated into a MLflow project . Details are as follows:

Details of Model V1 :

  Predictors are : ['Pclass','Age','Parch']

  Hyperparameters are : random_split ( default value is 0)  ;  max_depth ( default value is 3) 

Details of Model V2 :

  Predictors are : ['Age','Sex','SibSp']

  Hyperparameters are : splitter (default value is "best" ) ; criterion (default value is "gini") 

Since these are two independent project they can also be run using command :

      mlflow run <folder_name> 

      mlflow run <folder_name> -P{hyperparameter}={hyper_parameter_value}

Example : For Model v1 , setting parameters random_split as 23 and max _depth as 10 , command will be :

      mlflow run v1 -Prandom_split=23 -Pmax_depth=10

mlflow-multipleversions's People

Contributors

engineeryashsaxena avatar

Stargazers

 avatar

Watchers

 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.