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.
Metadata
Release files for psusannx-pipeline 0.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| psusannx_pipeline-0.1.14.tar.gz | 6.1 kB | Without provenance | Details for psusannx_pipeline-0.1.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psusannx_pipeline-0.1.14-py3-none-any.whl | Python 3 | none | any | Details for psusannx_pipeline-0.1.14-py3-none-any.whl |
Total release size: 12.6 kB
Release files / psusannx_pipeline-0.1.14.tar.gz
| Download URL | psusannx_pipeline-0.1.14.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bea5b3475ef39b1483ea1d358090f26095f653fb563f9da2dc71f2b0934dba2e
|
|
BLAKE2b-256 checksum How to use checksums |
3edd3567043a9e2b1a633b65619bd727dd88a8d5571758117b3059f16e498c6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / psusannx_pipeline-0.1.14-py3-none-any.whl
| Download URL | psusannx_pipeline-0.1.14-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d6878a6be818fb011e2b18567c6212d02d2d584586a799032de4091261eb91c
|
|
BLAKE2b-256 checksum How to use checksums |
1769a2a6b26f9d21121de9adab673eae0bb7cbafeb4ad412392eea49a785b276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for psusannx-pipeline 0.1.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.