A package containing classes to be used in the preprocessing data pipeline for the PSUSANNX project.
Project description
psusannx_pipeline
A package that contains the custom classes & sklearn preprocessing pipeline object to be used in the PSUSANNX project. Creating the package will allow the custom classes to be imported into any script (like standard sklearn preprocessors) and used. In particular once the pipeline has been fit to data, this package will allow the fitted transformer to be pickled out as a file and read into another script that has this package imported too.
This package was created to be used as a subpackage in a wider project - PSUSANNX.
Custom Transformers
- CorrectNegPoints
- BucketFormations
- GetLogRatios
- GetPercentagesAndPerGame
- GetDifferences
- CatboostEncodeFormations
- DropFeatures
- CustomScaler
Installation
pip install psusannx_pipeline
Usage
This pipeline is to be used on a specific dataframe.
# Import all the custom classes & pipeline object
from psusannx_pipeline.pipeline import *
# Fit the processing pipeline to the data
data_preprocessed = preprocessing_pipeline.fit_transform(data).dropna()
Now save the fitted preprocessing pipeline out to a pkl file so it can be used in other scripts.
# Import pickle for serialization
import pickle
# Save out the preprocessing pipeline to be used in processing the new predictions
pickle.dump(preprocessing_pipeline, open("preprocessing_pipeline.pkl", "wb"))
Notes
- The package is quite restricted in what it can do, but it only needs to do things that are required by the parent project so there won't be much development.
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
File details
Details for the file psusannx_pipeline-0.1.9.tar.gz
.
File metadata
- Download URL: psusannx_pipeline-0.1.9.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c5ed9fc9b5578e1a0c8b93265d553e07bafaa8c6ecdba5cca8d764648ea4f7 |
|
MD5 | c809766fd42f37c5d283dfbeef5e9321 |
|
BLAKE2b-256 | 13f6713df403de1cb74fe832b6621978b33be63869072b8452f8c6cc71bcb99f |
File details
Details for the file psusannx_pipeline-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: psusannx_pipeline-0.1.9-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73851b647c1a9abb77b2d0f970cc920e4b6aea40ac434fe35aa6e1d6ff40a827 |
|
MD5 | d7f5320767ba46edb2eac68eda038d17 |
|
BLAKE2b-256 | b0afcc707c51951efe6de339a73cd4d9f81310ce60198c1145ad7e31f5da8f6d |