Skip to main content

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

Download files

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

Source Distribution

gokart_pipeliner-0.0.8.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gokart_pipeliner-0.0.8-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gokart_pipeliner-0.0.8.tar.gz.

File metadata

  • Download URL: gokart_pipeliner-0.0.8.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure

File hashes

Hashes for gokart_pipeliner-0.0.8.tar.gz
Algorithm Hash digest
SHA256 da7bd90d7925bb1451af73029e8bcba59b9316e120a593f3881c137653645ac8
MD5 00bc93d6b23cb2ad10e20d716331df96
BLAKE2b-256 3a43c667ebe73e2191cdcb1dd68b2dd3d3e238c80cddc8d92a347ce76ca32b94

See more details on using hashes here.

File details

Details for the file gokart_pipeliner-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: gokart_pipeliner-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure

File hashes

Hashes for gokart_pipeliner-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fae43b98dc31c7fa44dd1f0ae2a1c5542d61a18d0f6576f569affc4506b33f49
MD5 d0c4e22363a1b9fc8a6c92ccdd8250c7
BLAKE2b-256 be2f7bb25ac188460e4cc31c12ec1fea75d6bf83739ffa1ec72a6ed47b39f365

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page