Python luigi.DictParameter() Examples

The following are 2 code examples of luigi.DictParameter(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module luigi , or try the search function .
Example #1
Source File: parameter.py    From gokart with MIT License 5 votes vote down vote up
def parse(self, s):
        if isinstance(s, str):
            s = luigi.DictParameter().parse(s)
        return self._recursive(s) 
Example #2
Source File: parameter.py    From gokart with MIT License 5 votes vote down vote up
def serialize(self, x):
        values = dict(type=x.get_task_family(), params=x.to_str_params(only_significant=True))
        return luigi.DictParameter().serialize(values)