SeqRep
Scientific framework for representation in sequential data
Table of Content
Click to expand!
Description
This package aims to simplify the workflow of evaluation of machine learning models. It is primarily focused on sequential data. It helps with:
- labeling data,
- splitting data,
- feature extraction,
- feature reduction (i.e. selection or transformation),
- running pipeline,
- evaluation of results.
It also allows you to visualize each step.
The framework is designed for easy customization and extension of its functionality.
Installation
python -m pip install git+https://github.com/MIR-MU/seqrep
Features
See the README in the seqrep folder.
Usage
It is simple to use this package. After the import, you need to do three steps:
- Create your pipeline (which you want to evaluate);
- Create PipelineEvaluator (according to how you want to evaluate);
- Run the evaluation.
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
from sklearn.svm import SVC
from seqrep.feature_engineering import PreviousValuesExtractor, TimeFeaturesExtractor
from seqrep.labeling import NextColorLabeler
from seqrep.splitting import TrainTestSplitter
from seqrep.scaling import UniversalScaler
from seqrep.evaluation import ClassificationEvaluator
from seqrep.pipeline_evaluation import PipelineEvaluator
# 1. step
pipe = Pipeline([('fext_prev', PreviousValuesExtractor()),
('fext_time', TimeFeaturesExtractor()),
('scale_u', UniversalScaler(scaler=MinMaxScaler())),
])
# 2. step
pipe_eval = PipelineEvaluator(labeler = NextColorLabeler(),
splitter = TrainTestSplitter(),
pipeline = pipe,
model = SVC(),
evaluator = ClassificationEvaluator(),
)
# 3. step
result = pipe_eval.run(data=data)
See the examples folder for more details.
License
This package is licensed under the MIT license, so it is open source. Feel free to use it!
Acknowledgement
Thanks for the huge support to my supervisor Michal Stefanik! Gratitude also belongs to all members of the MIR-MU group. Finally, thanks go to the Faculty of Informatics of Masaryk University for supporting this project as a dean's project.
Metadata
Release files for seqrep 0.0.2
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 |
|---|---|---|---|---|
| seqrep-0.0.2.tar.gz | 16.2 kB | Without provenance | Details for seqrep-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seqrep-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for seqrep-0.0.2-py3-none-any.whl |
Total release size: 35.5 kB
Release files / seqrep-0.0.2.tar.gz
| Download URL | seqrep-0.0.2.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c62d6c6c1c4a4e51f376490c33abc5570c312c8c7acf9e12ecac7c2b0193669
|
|
BLAKE2b-256 checksum How to use checksums |
6c6d0a2f5998b96e914ee452d91d7c1549eee09a920b21665abc9806a3190f23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
|
Release files / seqrep-0.0.2-py3-none-any.whl
| Download URL | seqrep-0.0.2-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d6f45acdfa6288d421e8bf49acf48e4fb98b3698eb51c14ccc5d1ce637ae145
|
|
BLAKE2b-256 checksum How to use checksums |
dde7aa3d206f3028db90665a42fb707467ffdac902fd30a390e23d17fcd2814a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
|
Security for seqrep 0.0.2
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.