All Projects → SohamPathak → Modellogger.github.io

SohamPathak / Modellogger.github.io

Licence: apache-2.0
Model-Logger is a Python library for storing model's profile and rapid inter model comparison.

Projects that are alternatives of or similar to Modellogger.github.io

Vae protein function
Protein function prediction using a variational autoencoder
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Rbf Network
Minimal implementation of a radial basis function network.
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Learn
🏭 Education resources for Chemical and Process Engineering written in Python
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Datascience Projects
A collection of personal data science projects
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Python Crawling Tutorial
Python crawling tutorial
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Machinelearning
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Convisualize nb
Visualisations for Convolutional Neural Networks in Pytorch
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Data Science At Scale
A Pythonic introduction to methods for scaling your data science and machine learning work to larger datasets and larger models, using the tools and APIs you know and love from the PyData stack (such as numpy, pandas, and scikit-learn).
Stars: ✭ 58 (+0%)
Mutual labels:  jupyter-notebook
Carnd Advanced Lane Lines
My solution to the Udacity Self-Driving Car Engineer Nanodegree Advanced Lane Lines project.
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Animegan
A simple PyTorch Implementation of Generative Adversarial Networks, focusing on anime face drawing.
Stars: ✭ 1,095 (+1787.93%)
Mutual labels:  jupyter-notebook
Conf2017slides
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Athena
Automatic equation building and curve fitting. Runs on Tensorflow. Built for academia and research.
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Vehicle Detection
Vehicle detection using machine learning and computer vision techniques for Udacity's Self-Driving Car Engineer Nanodegree.
Stars: ✭ 1,093 (+1784.48%)
Mutual labels:  jupyter-notebook
Dmep Python Intro
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Iocamljs
An OCaml javascript kernel for the IPython notebook
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Datacamp facebook live titanic
DataCamp Facebook Live Code Along Session 2: Learn how to complete a Kaggle competition using exploratory data analysis, data munging, data cleaning and machine leaning. Enjoy.
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Cognitive Emotion Python
Python SDK for the Microsoft Emotion API, part of Cognitive Services
Stars: ✭ 57 (-1.72%)
Mutual labels:  jupyter-notebook
Deep learning bootcamp
All the learning material for deep learning bootcamp can be found in this repository
Stars: ✭ 58 (+0%)
Mutual labels:  jupyter-notebook
Mindspore Nlp Tutorial
Natural Language Processing Tutorial for MindSpore Users
Stars: ✭ 58 (+0%)
Mutual labels:  jupyter-notebook
Magenta Demos
Demonstrations of Magenta Models
Stars: ✭ 1,093 (+1784.48%)
Mutual labels:  jupyter-notebook

model-logger

model-logger Logo Header

model-logger is a Python library for storing model's profile and rapid inter model comparision. Powered by dash and SQLITE3, It's compact ,light weight ,interactive yet powerful tool to gain useful insights.

Installation

Using pip

Use the package manager pip to install model-loger.

PyPi Downloads PyPi Monthly Downloads PyPi Version

Announcements

Version v0.2.3 released

  • Support for Catboost
  • Optional Test score added (One of the two scores is compulsory)
  • Test vs Validation Score across models comparision graph added
  • Best model functionality added.
pip install modellogger

Initialization

from modellogger.modellogger import ModelLogger

#initialise a modelloger instance
path = "c/path/to/db/databasename.db"
mlog = ModelLogger(path) #setup complete
 

If you are already using a db created by modelloger you can directly load it by stating it's path If you are creating a new project just give location where you want to store the db followed by a name.db .

Now you are ready to rock and roll. Out of the box you will have the following functionalities: | Filename | Requirements| |----------|-------------| | store_model| Store the model as fast as you can click .Compatible with all sklearn models | | delete_model| Used to delete specific model record | | delete_all | Deletes all model records present in the log | | view_results| Returns mini result in the form of a dataframe | |model_profiles| Create a model summary sheet where you can play and gain insights from the different models |

model-logger

Usage

store_model()

save_pickle : let's you save the model as a pickle file with model_name as the file name . Uses joblib for pickling ,to use it later use joblib.load('name').

model_name: Give a unique name to your model.

columns :Columns used for tranning the model.

accuracy : Scores to measure the performance eg. rmse , mse , logloss or a custom function that returns a metric. Ideally same factor across all models will help gaining insights from summary.

Flag : If true than will print out the contents of the db.

model-logger currently stores the following attribute:

  • Model id
  • Model name(given by user)
  • Scores
  • Number of columns
  • Feature set used for tranning the model
  • model parameters
  • Train size
  • Number of continuous variables
  • Number of catagorical variable
  • Model type
  • Model name

Example

 gboost = GradientBoostingClassifier() 
 gboost.fit(X_train,y_train) 
 mlog.store_model('my_model_name',gboost,X_train,1.0) 
 #alternatively
 mlog.store_model('my_model_name',gboost,X_train,get_score(gboost),save_pickle = True)

model-logger

view_results()

generate_csv: If true than generate the report in the form of a csv

csv_name: Name of the csv file , default -- Model_Report.csv

Example

mlog.view_results(True,'my_report')

model-logger

delete_model()

Model_name : name of the model you want to delete –> use view_results() for referece

Model_id : id of the model –> use view_results() for referece Flag : If true than will print out the contents of the db.

Example

mlog.delete_model(Model_name = "Mymodel") 
mlog.delete_model(Model_id = 1)

delete_all()

Flag : If true than will print out the contents of the db.

Example

mlog.delete_all()

model-logger

model_profiles()

batch_size : How many entries to consider at once while comparing via graphs If batch_size less than total number of entries , than it will grouped into different pages . Different pages will have different graphs .If "All" is used than it will consider all the entries at once

port: use to change the port number in which the server is running.

debug: If true than run the server in debug mode

Note:

Do not run in debug mode while using it in jupyter notebook For jupyter notebook click on kernel/interrupt to stop the server .
for cmd/anaconda prompt ----> use [ctrl+c] to stop the server .

Example

mlog.model_profiles('All')
mlog.model_profiles(5)

Fun Part

All the graphs and insights are interlinked with the datatable . You can do the following operations out of the box and the graphs will change dynamically (as long as the server is running) :

Operation operator
'greater than equal too ' '>='
'less than equal too ' '<='
'less than ' '<'
'greater than ' '>'
'not equal too ' '!='
'equal too ' '='
str search 'contains '
date serach 'datestartswith '
model-logger

Support model-logger

The development of model-logger relies completely on contributions.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

First roll out

May 31, 2020 💘

License

apache-2.0

model-logger Logo footer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].