CustomLearner¶
- class nimble.CustomLearner¶
- Class for creating custom learners for use within the Nimble API. - Base class defining a hierarchy of objects which encapsulate what is needed to be a single learner callable through the Custom Universal Interface. At minimum, a subclass must provide a - learnerTypeattribute, an implementation for the method- applyand at least one out of- trainor- incrementalTrain. If- incrementalTrainis implemented yet- trainis not, then- incrementalTrainis used in place of calls to- train. Furthermore, a subclass must not require any arguments for its- __init__method.- See also - Keywords - algorithm, model, regression, classification, neural network, clustering, supervised learning, unsupervised learning, deep learning, predictor, estimator - Attributes - Describe the type of the learner. - Methods - apply(testX)- Apply the learner to the testing data. - Class method used to determine the default values of only the apply method. - Class method used to determine the parameters of only the apply method. - Class method used by the a custom learner interface to supply learner parameter default values to the user through the standard nimble functions. - Class method used by the a custom learner interface to supply learner parameters to the user through the standard nimble functions. - getScores(testX)- If this learner is a classifier, then return the scores for each class on each data point, otherwise raise an exception. - Class method used to determine the default values of only the train method. - Class method used to determine the parameters of only the train method. - incrementalTrain(trainX, trainY)- Train or continue training the learner on new training data. - train(trainX, trainY)- Train the learner on the training data.