mlpy.learners.LearnerFactory¶
-
class
mlpy.learners.LearnerFactory[source]¶ Bases:
objectThe learner factory.
An instance of a learner can be created by passing the learner type.
Examples
>>> from mlpy.learners import LearnerFactory >>> q0 = LearnerFactory.create('qlearner')
This creates a
QLearnerinstance with default parameters.>>> q1 = LearnerFactory.create('qlearner', max_steps=10)
This creates a
QLearnerinstance with max_steps set to 10.Methods
create(_type, *args, **kwargs)Create an learner of the given type.