|
__init__(self,
flow,
verbose=False,
**kwargs)
Initialize the internal variables. |
|
|
|
|
|
setup_parallel_training(self,
data_iterables,
checkpoints,
train_callable_class=<class 'mdp.parallel.FlowTrainCallable'>,
**kwargs)
Checkpoint version of parallel training. |
|
|
|
train(self,
data_iterables,
checkpoints,
scheduler=None,
train_callable_class=<class 'mdp.parallel.FlowTrainCallable'>,
overwrite_result_container=True,
**kwargs)
Train all trainable nodes in the flow. |
|
|
Inherited from unreachable.newobject :
__long__ ,
__native__ ,
__nonzero__ ,
__unicode__ ,
next
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
|
|
|
|
|
|
execute(self,
iterable,
nodenr=None,
scheduler=None,
execute_callable_class=None,
overwrite_result_container=True)
Train all trainable nodes in the flow. |
|
|
|
get_task(self)
Return a task either for either training or execution. |
|
|
|
setup_parallel_execution(self,
iterable,
nodenr=None,
execute_callable_class=<class 'mdp.parallel.FlowExecuteCallable'>)
Prepare the flow for handing out tasks to do the execution. |
|
|
|
use_results(self,
results)
Use the result from the scheduler. |
|
|
|
|
|
|
|
__call__(self,
iterable,
nodenr=None)
Calling an instance is equivalent to call its 'execute' method. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_train_node(self,
data_iterable,
nodenr)
Train a single node in the flow. |
|
|
|
append(flow,
node)
append node to flow end |
|
|
|
copy(self,
protocol=None)
Return a deep copy of the flow. |
|
|
|
extend(flow,
iterable)
extend flow by appending
elements from the iterable |
|
|
|
insert(flow,
index,
node)
insert node before index |
|
|
|
inverse(self,
iterable)
Process the data through all nodes in the flow backwards
(starting from the last node up to the first node) by calling the
inverse function of each node. Of course, all nodes in the
flow must be invertible. |
|
|
node
|
pop(flow,
index=...)
remove and return node at index
(default last) |
|
|
|
save(self,
filename,
protocol=-1)
Save a pickled serialization of the flow to 'filename'.
If 'filename' is None, return a string. |
|
|
|
|