Module to facilitate the integration of a sklearn training pipeline into a deploy and retraining system
Project description
Module to facilitate the integration of a sklearn training pipeline into a deploy and retraining system
Install
pip install gpam_training
Usage
Multilabel training
First of all, it is needed to have in memory a dataframe from pandas. The csv must be in the following format:
process_id,page_text_extract,tema
1,Lorem ipsum dolor sit amet,1
2,Lorem ipsum dolor sit amet,2
2,Lorem ipsum dolor sit amet,3
42,Lorem ipsum dolor sit amet,2
To train the model, do as shown bellow:
from gpam_training import MultilabelTraining
import pandas as pd
df = pd.read_csv('example.csv')
model = MultilabelTraining(df)
model.train()
To dump a pickle file with the trained model, do the following:
model_pickle = model.get_pickle()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpam_training-0.0.10.tar.gz
(878.0 kB
view hashes)
Built Distribution
Close
Hashes for gpam_training-0.0.10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13d2d1156e037c720d8ef096abf0149dc03116cfd7b023b61a7313230549d53 |
|
MD5 | 4748faf6d6e860dc3d9d30d81f7a7950 |
|
BLAKE2b-256 | 1726b48ea22ac7c12ba8223aeea16d94444f5c766c287e63e68c6a201316b2cc |