Modelloger is a Python library for storing model's profile and rapid inter model comparision.
Project description
Modelloger is a Python library for storing model’s profile and rapid inter model comparision. Powered by dash and SQLITE3, It’s compact ,light and interactive yet powerfull tool to gain usefull insights.
Documentaion :
Read the detailed documentation here
Installation
Using pip
Use the package manager pip to install modelloger.
pip install modellogger
Usage
from modellogger import ModelLogger
#initialise a modelloger instance
path = "c/path/to/db/databasename.db"
mlog = ModelLogger(path)
#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
Functionalities
Now you are ready to rock and roll. Out of the box you will have the following functionalities:
store_model()
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)
view_results()
mlog.view_results(True,'my_report')
best_model()
mlog.best_model(smaller_the_better=True)
delete_model()
mlog.delete_model(Model_name = "Mymodel")
mlog.delete_model(Model_id = 1)
model_profiles()
mlog.model_profiles('All')
mlog.model_profiles(5)
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.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file modellogger-0.2.3.tar.gz
.
File metadata
- Download URL: modellogger-0.2.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58ce90ee3b269899f31f06d72fe28a8cd23985dfcb08b0bf9b2ed0dfc952a6e |
|
MD5 | 900b87c81ab90bdac70ac91ba5b738ca |
|
BLAKE2b-256 | e0e5756ba5a2dec69598ccb6bf89c5130c4070e8b030da1b07bebbad4ffd2cf6 |