vaaaaanquish / gokart-pipeliner Goto Github PK
View Code? Open in Web Editor NEWgokart pipeline project
License: MIT License
gokart pipeline project
License: MIT License
class TaskD(gokart.TaskOnKart):
foo = gokart.TaskInstanceParameter()
bar = gokart.TaskInstanceParameter()
def requires(self):
return {'foo': self.foo, 'bar': self.bar}
def run(self):
x = self.load('foo')
y = self.load('bar')
self.dump(x + y)
๐
class TaskD(gokart.TaskOnKart):
foo = gokart.TaskInstanceParameter()
bar = gokart.TaskInstanceParameter()
def run(self):
x = self.load('foo')
y = self.load('bar')
self.dump(x + y)
Settings for using existing tasks.
add poetry
image
hoge_task_result = gp.run([HogeTask], params=params, return_value=['HogeTask'])
result = gp.run([HogeTask, PiyoTask], params=params, return_value=['HogeTask', 'PiyoTask'])
print(result['HogeTask'], result['PiyoTask'])
add unittest
add CI/CD
running_params = {'TaskB': {'param1':'bar'}}
gp.run(predict, params=running_params)
The task name may not be specified on exist task.
class Bar(gokart.TaskOnKart):
target = goakrt.TaskInstanceParameter()
def run(self):
bar = self.load_data_frame(required_columns={'foo'})
Traceback (most recent call last):
File "python3.7/site-packages/luigi/worker.py", line 191, in run
new_deps = self._run_get_new_deps()
File "python3.7/site-packages/luigi/worker.py", line 133, in _run_get_new_deps
task_gen = self.task.run()
File "python3.7/site-packages/foo/bar.py", line 31, in run
bar = self.load_data_frame(required_columns={'foo'})
File "python3.7/site-packages/gokart/task.py", line 221, in load_data_frame
if data.empty and len(data.index) == 0 and len(required_columns - set(data.columns)) > 0:
AttributeError: 'dict' object has no attribute 'empty'
add ipynb examples
36
37 if return_value:
---> 38 return task.output().load()
39 return None
40
AttributeError: 'list' object has no attribute 'load'
setting don't output log
-gokart = "==0.3.20"
+gokart = "^=0.3.20"
ERROR: Error in event callback for 'event.core.start'
Traceback (most recent call last):
File "python3.6/site-packages/luigi/task.py", line 275, in trigger_event
callback(*args, **kwargs)
File "python3.6/site-packages/gokart/task.py", line 452, in _dump_module_versions
self.dump(self._get_module_versions(),
File "python3.6/site-packages/gokart/task.py", line 469, in _get_module_versions
version = '.'.join([str(v) for v in module.__version__])
TypeError: 'module' object is not iterable
<module 'poetry.__version__' from 'python3.6/site-packages/poetry/__version__.py'>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.