Generic classes¶
The different algorithms in this library inherits from these generic classes.
Predictor¶
-
class
pyridge.generic.predictor.
Predictor
(classification: bool = True, logging: bool = True)[source]¶ -
get_indicator
(test_data)[source]¶ - Parameters
test_data (numpy.array) – array like.
- Returns
predicted labels.
-
instance_param_
(train_data, train_target, parameter)[source]¶ Instance parameters from dict.
- Parameters
train_data (numpy.matrix) –
train_target (numpy.array) –
parameter (dict) –
- Returns
-
predict_classifier
(test_data)[source]¶ Predict the label.
- Parameters
test_data (numpy.array) – array like.
- Returns
predicted labels.
-
predict_proba
(test_data)[source]¶ Predict the probability.of class.
- Parameters
test_data (numpy.array) – array like.
- Returns
predicted labels.
-