Ejemplo n.º 1
0
from .graph import (Graph, GraphEdge, GraphException, GraphNode,
                    GraphTopologicalException, is_sequence, recursive_map,
                    recursive_reduce)

__all__ = [
    'Graph', 'GraphEdge', 'GraphException', 'GraphNode',
    'GraphTopologicalException', 'is_sequence', 'recursive_map',
    'recursive_reduce'
]

from mdp.utils import fixup_namespace
fixup_namespace(__name__, __all__, (
    'graph',
    'fixup_namespace',
))
Ejemplo n.º 2
0
from caching_extension import (activate_caching, deactivate_caching, cache,
                               set_cachedir, __doc__, __docformat__)

from mdp.utils import fixup_namespace

__all__ = ['activate_caching', 'deactivate_caching', 'cache', 'set_cachedir']

fixup_namespace(__name__, __all__, (
    'caching_extension',
    'fixup_namespace',
))
Ejemplo n.º 3
0
    ChannelSwitchboard, Rectangular2dSwitchboard,
    Rectangular2dSwitchboardException, DoubleRect2dSwitchboard,
    DoubleRect2dSwitchboardException, DoubleRhomb2dSwitchboard,
    DoubleRhomb2dSwitchboardException)
from .htmlvisitor import (HiNetHTMLVisitor, HiNetXHTMLVisitor,
                          NewlineWriteFile, show_flow)
from .switchboard_factory import (get_2d_image_switchboard,
                                  FactoryExtensionChannelSwitchboard,
                                  FactoryRectangular2dSwitchboard,
                                  FactoryDoubleRect2dSwitchboard,
                                  FactoryDoubleRhomb2dSwitchboard)

__all__ = [
    'FlowNode', 'OnlineFlowNode', 'CircularOnlineFlowNode', 'Layer',
    'SameInputLayer', 'CloneLayer', 'OnlineLayer', 'SameInputOnlineLayer',
    'CloneOnlineLayer', 'Switchboard', 'SwitchboardException',
    'ChannelSwitchboard', 'Rectangular2dSwitchboard',
    'Rectangular2dSwitchboardException', 'DoubleRect2dSwitchboard',
    'DoubleRect2dSwitchboardException', 'DoubleRhomb2dSwitchboard',
    'DoubleRhomb2dSwitchboardException', 'HiNetHTMLVisitor',
    'HiNetXHTMLVisitor', 'NewlineWriteFile', 'show_flow',
    'get_2d_image_switchboard'
]

from mdp.utils import fixup_namespace

fixup_namespace(
    __name__, __all__,
    ('flownode', 'flownode_online', 'layer', 'layer_online', 'switchboard',
     'hinet_Visitor', 'switchboard_factory', 'utils', 'fixup_namespace'))
Ejemplo n.º 4
0
utils.fixup_namespace(__name__, __all__ + ['ICANode'], (
    'pca_nodes',
    'sfa_nodes',
    'ica_nodes',
    'neural_gas_nodes',
    'expansion_nodes',
    'fda_nodes',
    'em_nodes',
    'misc_nodes',
    'isfa_nodes',
    'rbm_nodes',
    'regression_nodes',
    'classifier_nodes',
    'jade',
    'nipals',
    'lle_nodes',
    'xsfa_nodes',
    'gsfa_nodes',
    'convolution_nodes',
    'shogun_svm_classifier',
    'svm_classifiers',
    'libsvm_classifier',
    'regression_nodes',
    'classifier_nodes',
    'utils',
    'scikits_nodes',
    'numx_description',
    'config',
    'stats_nodes_online',
    'pca_nodes_online',
    'mca_nodes_online',
    'sfa_nodes_online',
))
Ejemplo n.º 5
0
from graph import ( Graph, GraphEdge, GraphException, GraphNode,
                    GraphTopologicalException, is_sequence,
                    recursive_map, recursive_reduce)

del graph

__all__ = ['Graph', 'GraphEdge', 'GraphException', 'GraphNode',
           'GraphTopologicalException', 'is_sequence',
           'recursive_map', 'recursive_reduce']

from mdp.utils import fixup_namespace
import sys as _sys
fixup_namespace(__name__, __all__,
                ('graph',))
Ejemplo n.º 6
0
"""
Package to inspect biflow training or execution by creating an HTML slideshow.
"""

from tracer import (
    InspectionHTMLTracer, TraceHTMLConverter, TraceHTMLVisitor,
    TraceDebugException, inspection_css,
    prepare_training_inspection, remove_inspection_residues,
)
from slideshow import (
    TrainHTMLSlideShow, SectExecuteHTMLSlideShow, ExecuteHTMLSlideShow
)
from facade import (
    standard_css, EmptyTraceException,
    inspect_training, show_training, inspect_execution, show_execution
)

del tracer
del slideshow
del facade

from mdp.utils import fixup_namespace
fixup_namespace(__name__, None,
                ('tracer',
                 'slideshow',
                 'facade',
                 ))
del fixup_namespace
Ejemplo n.º 7
0
"""
Package to inspect biflow training or execution by creating an HTML slideshow.
"""

from .tracer import (
    InspectionHTMLTracer,
    TraceHTMLConverter,
    TraceHTMLVisitor,
    TraceDebugException,
    inspection_css,
    prepare_training_inspection,
    remove_inspection_residues,
)
from .slideshow import (TrainHTMLSlideShow, SectExecuteHTMLSlideShow,
                        ExecuteHTMLSlideShow)
from .facade import (standard_css, EmptyTraceException, inspect_training,
                     show_training, inspect_execution, show_execution)

del tracer
del slideshow
del facade

from mdp.utils import fixup_namespace
fixup_namespace(__name__, None, (
    'tracer',
    'slideshow',
    'facade',
))
del fixup_namespace
Ejemplo n.º 8
0
# Note: the modules with the actual extension node classes are still available

__all__ = [
    "ResultContainer", "ListResultContainer",
    "OrderedResultContainer", "TaskCallable", "SqrTestCallable",
    "SleepSqrTestCallable", "TaskCallableWrapper", "Scheduler",
    "ProcessScheduler", "ThreadScheduler",
    "ParallelExtensionNode", "JoinParallelException",
    "NotForkableParallelException",
    "ParallelSFANode", "ParallelSFANode", "ParallelFDANode",
    "ParallelHistogramNode",
    "FlowTaskCallable", "FlowTrainCallable", "FlowExecuteCallable",
    "ExecuteResultContainer", "TrainResultContainer", "ParallelFlowException",
    "NoTaskException",
    "ParallelFlow", "ParallelCheckpointFlow",
    "ParallelFlowNode", "ParallelLayer", "ParallelCloneLayer"]

import sys as _sys
fixup_namespace(__name__, __all__,
                ('scheduling',
                 'process_schedule',
                 'thread_schedule',
                 'parallelnodes',
                 'parallelflows',
                 'parallelhinet',
                 'parallelclassifiers',
                 'config',
                 'fixup_namespace'
                 ))
Ejemplo n.º 9
0
del regression_nodes
del classifier_nodes

from mdp import utils
utils.fixup_namespace(__name__, __all__,
                      ('pca_nodes',
                       'sfa_nodes',
                       'ica_nodes',
                       'neural_gas_nodes',
                       'expansion_nodes',
                       'fda_nodes',
                       'em_nodes',
                       'misc_nodes',
                       'isfa_nodes',
                       'rbm_nodes',
                       'regression_nodes',
                       'classifier_nodes',
                       'jade',
                       'nipals',
                       'lle_nodes',
                       'xsfa_nodes',
                       'convolution_nodes',
                       'shogun_svm_classifier',
                       'svm_classifiers',
                       'libsvm_classifier',
                       'svn_classifiers',
                       'regression_nodes',
                       'classifier_nodes',
                       ))
del utils
Ejemplo n.º 10
0
from mdp import utils
utils.fixup_namespace(__name__, __all__ + ['ICANode'],
                      ('pca_nodes',
                       'sfa_nodes',
                       'ica_nodes',
                       'neural_gas_nodes',
                       'expansion_nodes',
                       'fda_nodes',
                       'em_nodes',
                       'misc_nodes',
                       'isfa_nodes',
                       'rbm_nodes',
                       'regression_nodes',
                       'classifier_nodes',
                       'jade',
                       'nipals',
                       'lle_nodes',
                       'xsfa_nodes',
                       'convolution_nodes',
                       'shogun_svm_classifier',
                       'svm_classifiers',
                       'libsvm_classifier',
                       'regression_nodes',
                       'classifier_nodes',
                       'utils',
                       'scikits_nodes',
                       'numx_description',
                       'config',
                       ))
Ejemplo n.º 11
0
from theano_extension import activate_theano, deactivate_theano, theanoize, __doc__, __docformat__

from mdp.utils import fixup_namespace

__all__ = ["activate_theano", "deactivate_theano", "theanoize"]

fixup_namespace(__name__, __all__, ("theano_extension", "fixup_namespace"))
Ejemplo n.º 12
0
from caching_extension import (activate_caching, deactivate_caching,
                               cache, set_cachedir,
                               __doc__, __docformat__)

from mdp.utils import fixup_namespace

__all__ = ['activate_caching', 'deactivate_caching',
           'cache', 'set_cachedir']

fixup_namespace(__name__, __all__,('caching_extension','fixup_namespace',))
Ejemplo n.º 13
0
# Note: the modules with the actual extension node classes are still available

__all__ = [
    "ResultContainer", "ListResultContainer",
    "OrderedResultContainer", "TaskCallable", "SqrTestCallable",
    "SleepSqrTestCallable", "TaskCallableWrapper", "Scheduler",
    "ProcessScheduler", "ThreadScheduler",
    "ParallelExtensionNode", "JoinParallelException",
    "NotForkableParallelException",
    "ParallelSFANode", "ParallelSFANode", "ParallelFDANode",
    "ParallelHistogramNode",
    "FlowTaskCallable", "FlowTrainCallable", "FlowExecuteCallable",
    "ExecuteResultContainer", "TrainResultContainer", "ParallelFlowException",
    "NoTaskException",
    "ParallelFlow", "ParallelCheckpointFlow",
    "ParallelFlowNode", "ParallelLayer", "ParallelCloneLayer"]

import sys as _sys
fixup_namespace(__name__, __all__,
                ('scheduling',
                 'process_schedule',
                 'thread_schedule',
                 'parallelnodes',
                 'parallelflows',
                 'parallelhinet',
                 'parallelclassifiers',
                 'config',
                 'fixup_namespace'
                 ))
Ejemplo n.º 14
0
)
from htmlvisitor import (
    HiNetHTMLVisitor, HiNetXHTMLVisitor, NewlineWriteFile, show_flow
)
from switchboard_factory import (
    get_2d_image_switchboard, FactoryExtensionChannelSwitchboard,
    FactoryRectangular2dSwitchboard, FactoryDoubleRect2dSwitchboard,
    FactoryDoubleRhomb2dSwitchboard
)

__all__ = ['FlowNode', 'Layer', 'SameInputLayer', 'CloneLayer',
           'Switchboard', 'SwitchboardException', 'ChannelSwitchboard',
           'Rectangular2dSwitchboard', 'Rectangular2dSwitchboardException',
           'DoubleRect2dSwitchboard', 'DoubleRect2dSwitchboardException',
           'DoubleRhomb2dSwitchboard', 'DoubleRhomb2dSwitchboardException',
           'HiNetHTMLVisitor', 'HiNetXHTMLVisitor', 'NewlineWriteFile',
           'show_flow', 'get_2d_image_switchboard'
           ]

from mdp.utils import fixup_namespace
import sys as _sys
fixup_namespace(__name__, __all__,
                ('flownode',
                 'layer',
                 'switchboard',
                 'hinet_Visitor',
                 'switchboard_factory',
                 'utils',
                 'fixup_namespace'
                 ))
Ejemplo n.º 15
0
del parallelnodes
del parallelflows
del parallelhinet

# Note: the modules with the actual extension node classes are still available

__all__ = [
    "ResultContainer", "ListResultContainer",
    "OrderedResultContainer", "TaskCallable", "SqrTestCallable",
    "SleepSqrTestCallable", "TaskCallableWrapper", "Scheduler",
    "ProcessScheduler", "ThreadScheduler",
    "ParallelExtensionNode", "JoinParallelException",
    "NotForkableParallelException",
    "ParallelSFANode", "ParallelSFANode", "ParallelFDANode",
    "ParallelHistogramNode",
    "FlowTaskCallable", "FlowTrainCallable", "FlowExecuteCallable",
    "ExecuteResultContainer", "TrainResultContainer", "ParallelFlowException",
    "NoTaskException",
    "ParallelFlow", "ParallelCheckpointFlow",
    "ParallelFlowNode", "ParallelLayer", "ParallelCloneLayer"]

import sys as _sys
fixup_namespace(__name__, __all__,
                ('scheduling',
                 'process_schedule',
                 'thread_schedule',
                 'parallelnodes',
                 'parallelflows',
                 'parallelhinet',
                 ))
Ejemplo n.º 16
0
from binode import (
    BiNodeException, BiNode, PreserveDimBiNode, MSG_ID_SEP, binode_coroutine
)
from biclassifier import BiClassifier
from biflow import (
    MessageResultContainer, BiFlowException, BiFlow, BiCheckpointFlow,
    EXIT_TARGET
)
# the inspection stuff is considered a core functionality
from inspection import *

from test import test

import nodes
import hinet
import parallel

del binode
del biflow
del inspection

from mdp.utils import fixup_namespace
fixup_namespace(__name__, None,
                ('binode',
                 'biclassifier',
                 'biflow',
                 'inspection',
                 ))
del fixup_namespace
Ejemplo n.º 17
0
if config.has_sklearn:
    from . import scikits_nodes
    for name in scikits_nodes.DICT_:
        if name.endswith('Node'):
            globals()[name] = scikits_nodes.DICT_[name]
            __all__.append(name)
        del name

if config.has_pyqtgraph:
    from .pg_nodes import PG2DNode, PGCurveNode, PGImageNode
    __all__ += ['PG2DNode', 'PGCurveNode', 'PGImageNode']

if config.has_gym:
    from .openai_gym_nodes import GymNode, GymContinuousExplorerNode
    __all__ += ['GymNode', 'GymContinuousExplorerNode']

from mdp import utils
utils.fixup_namespace(
    __name__, __all__ + ['ICANode'],
    ('pca_nodes', 'sfa_nodes', 'ica_nodes', 'neural_gas_nodes',
     'expansion_nodes', 'fda_nodes', 'em_nodes', 'misc_nodes', 'isfa_nodes',
     'rbm_nodes', 'regression_nodes', 'classifier_nodes', 'jade', 'nipals',
     'lle_nodes', 'xsfa_nodes', 'convolution_nodes', 'shogun_svm_classifier',
     'svm_classifiers', 'libsvm_classifier', 'regression_nodes',
     'classifier_nodes', 'utils', 'scikits_nodes', 'numx_description',
     'config', 'stats_nodes_online', 'pca_nodes_online', 'mca_nodes_online',
     'sfa_nodes_online', 'hsfa_nodes', 'pg_nodes', 'explorer_nodes',
     'openai_gym_nodes', 'basis_function_nodes', 'q_rl_nodes',
     'actor_critic_rl_nodes'))