Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psusannx_pipeline-0.1.10.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

psusannx_pipeline-0.1.10-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file psusannx_pipeline-0.1.10.tar.gz.

File metadata

  • Download URL: psusannx_pipeline-0.1.10.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

Hashes for psusannx_pipeline-0.1.10.tar.gz
Algorithm Hash digest
SHA256 949c541080d460bbcd988828570131b1df604b68eba4e83de1d8232b7d17029a
MD5 752d18c734b403c9adf9e8adae030e6b
BLAKE2b-256 9f7439fb1d58d73b45348b69c16e2d06561ad1c67ec5d9df7bb2e2571be7d5ae

See more details on using hashes here.

File details

Details for the file psusannx_pipeline-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for psusannx_pipeline-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd9283abc38699709dfdf4da33f9ec2489f7a12180c4e8e18f5a5049e6db547
MD5 8e12d3b3fbb56cc0d3c7ae6330778fcb
BLAKE2b-256 d9e4b5f3cec39fd969f217bc975329881fd4510c96afb7196647101a2b0e6e30

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page