gokart-pipeliner
gokart pipeline project
Usage
Please show SampleTask.py or Eaxmple.ipynb
from gokart_pipeliner import GokartPipeliner
from ExampleTasks import *
# make pipeline
preprocess = [TaskA, {'task_b': TaskB, 'task_c': TaskC}, TaskD]
modeling = preprocess + [TaskE, {'task_f': TaskF}, TaskF]
predict = [{'model': modeling, 'task_a': TaskA}, TaskG]
# instantiation (setting static params)
params = {'TaskA': {'param1':0.1, 'param2': 'sample'}, 'TaskD': {'param1': 'foo'}}
config_path_list = ['./conf/param.ini']
gp = GokartPipeliner(
params=params,
config_path_list=config_path_list)
# run (setting dynamic params)
running_params = {'TaskB': {'param1':'bar'}}
gp.run(predict, params=running_params)
task example
class Task(gokart.TaskOnKart):
foo = gokart.TaskInstanceParameter()
def run(self):
x = self.load('foo')
self.dump(x)
get task result
We can get result of latest pipeline tasks.
task_b_result = gp.run([TaskA, TaskB], return_value=True)
write requires
If you say "want to write requires" or "want to reuse existing tasks", we can use override_requires parameter.
params = {'ExistingTask': {'override_requires': False}}
gp.run([ExistingTask], params=params)
for jupyter notebook
off logger
gp.run([Task], params=params, verbose=False)
Develop
pip install poetry
pip install poetry-dynamic-versioning
# poetry install
poetry build
# poetry lock
Metadata
Release files for gokart-pipeliner 0.0.8
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 |
|---|---|---|---|---|
| gokart_pipeliner-0.0.8.tar.gz | 4.6 kB | Without provenance | Details for gokart_pipeliner-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gokart_pipeliner-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for gokart_pipeliner-0.0.8-py3-none-any.whl |
Total release size: 10.1 kB
Release files / gokart_pipeliner-0.0.8.tar.gz
| Download URL | gokart_pipeliner-0.0.8.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da7bd90d7925bb1451af73029e8bcba59b9316e120a593f3881c137653645ac8
|
|
BLAKE2b-256 checksum How to use checksums |
3a43c667ebe73e2191cdcb1dd68b2dd3d3e238c80cddc8d92a347ce76ca32b94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure
|
Release files / gokart_pipeliner-0.0.8-py3-none-any.whl
| Download URL | gokart_pipeliner-0.0.8-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fae43b98dc31c7fa44dd1f0ae2a1c5542d61a18d0f6576f569affc4506b33f49
|
|
BLAKE2b-256 checksum How to use checksums |
be2f7bb25ac188460e4cc31c12ec1fea75d6bf83739ffa1ec72a6ed47b39f365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure
|
Security for gokart-pipeliner 0.0.8
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.