gokart pipeline
Project description
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)
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
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
Built Distribution
File details
Details for the file gokart_pipeliner-0.0.3.tar.gz
.
File metadata
- Download URL: gokart_pipeliner-0.0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bafd2c42eaeae3d0d794e357ce418c320dc21461519a9818f01edca9baca7ee |
|
MD5 | cad612fb5f427529463203309e18ac6a |
|
BLAKE2b-256 | df5c5c571f1c2f16192fad6772a4def9d739f8790a0ba089e7480e4029f9e529 |
File details
Details for the file gokart_pipeliner-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: gokart_pipeliner-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1032-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f106567d993e21c2206d9da353fcabb27f773ca8c9fc07fad888c68ad8e6100e |
|
MD5 | de779cfc0ba27ff3135cf5d0d45990df |
|
BLAKE2b-256 | 1d7edf172895917bb06063eec07851875274ec7c9383259bea0a098f65ca6a52 |