Ejemplo n.º 1
0
def trainer(Train):
    """ Trainner init """
    from neurolab.core import Trainer

    c = Trainer(Train)
    c.__doc__ = Train.__doc__
    return c
Ejemplo n.º 2
0
def trainer(Train):
    """ Trainner init """
    from neurolab.core import Trainer

    c = Trainer(Train)
    c.__doc__ = Train.__doc__
    return c
Ejemplo n.º 3
0
def trainer(Train):
    """ Trainner init """
    from neurolab.core import Trainer
    #w = functools.wraps(Train)
    #c = w(Trainer(Train))
    c = Trainer(Train)
    c.__doc__ = Train.__doc__
    c.__name__ = Train.__name__
    c.__module__ = Train.__module__
    return c
Ejemplo n.º 4
0
def trainer(Train, **kwargs):
    """ Trainner init """
    from neurolab.core import Trainer
    # w = functools.wraps(Train)
    # c = w(Trainer(Train))
    c = Trainer(Train, **kwargs)
    c.__doc__ = Train.__doc__
    c.__name__ = Train.__name__
    c.__module__ = Train.__module__
    return c