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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpam_training-0.0.16.tar.gz.
File metadata
- Download URL: gpam_training-0.0.16.tar.gz
- Upload date:
- Size: 876.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7ac615d401a9201fa230a044aa2588752bbfe2adcb049fd7bc4316e3ee9a230
|
|
| MD5 |
a8e9a999503743c8d622a3492c0e0767
|
|
| BLAKE2b-256 |
de742710d5e0e14a699c33666461c6bab0c67ccb94991d6f593fcdb12d7cda13
|
File details
Details for the file gpam_training-0.0.16-py2.py3-none-any.whl.
File metadata
- Download URL: gpam_training-0.0.16-py2.py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590ad58771693a2ffae6a460c54837463cec769d4b5f5232a033aa8444e0e0df
|
|
| MD5 |
bc0f44dfc1d3136660545f4660318eff
|
|
| BLAKE2b-256 |
8cba18793a502f2b0996ca29f451644b0bf3e63a426d82e54885e5841fce9760
|