Constant classifier always predicts the same value. It is constructed by various learners such as MajorityLearner, and also used in other places.
- class Orange.classification.ConstantClassifier¶
Always predict the specified default_val or default_distribution, disregarding the instance.
Class variable that the classifier predicts.
The value returned by the classifier.
Class probabilities returned by the classifier.
- __init__(variable, value, distribution)¶
Constructor can be called without arguments, with a variable, value or both. If the value is given and is of type Orange.data.Value, its attribute Orange.data.Value.variable will either be used for initializing variable or checked against it, if variable is given as an argument.