evalml.objectives.RecallMacro.objective_function

RecallMacro.objective_function(y_true, y_predicted, X=None, sample_weight=None)[source]
Computes the relative value of the provided predictions compared to the actual labels, according a specified metric
Arguments:

y_predicted (pd.Series): Predicted values of length [n_samples] y_true (pd.Series): Actual class labels of length [n_samples] X (pd.DataFrame or np.ndarray): Extra data of shape [n_samples, n_features] necessary to calculate score sample_weight (pd.DataFrame or np.ndarray): Sample weights used in computing objective value result

Returns

Numerical value used to calculate score