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.5.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for gpam_training-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e291b8de19f9cb246d81c1ef5fc318a58f2fb4ffb6a1ffe3b875ec90c58efac |
|
MD5 | 58417041d8d02c28986418c946096d98 |
|
BLAKE2b-256 | 5f497ffcd0852c0944d5b76f1adc9de279794ac455049a595dbf330994215dfc |