7.3.3. mclearn.heuristics.margin_h¶
-
mclearn.heuristics.
margin_h
(X_training_candidates, **kwargs)[source]¶ Return the candidate with the smallest margin.
The margin is defined as the difference between the two largest values in the prediction vector.
Parameters: X_training_candidates (array) – The feature matrix of the potential training candidates. Returns: best_candidate – The index of the best candidate. Return type: int