simrunmodular_reduced_model_inferencestrategy_Strategy_objective_function_static

_Strategy._objective_function_static

static simrun.modular_reduced_model_inference.strategy._Strategy._objective_function_static(get_score, get_y, x)

Compute the objective value for the given parameters x.

Calculates the score for the given parameters x and the labels y. Computes the AUROC score between the two.

Attention

The AUROC score is here given as a negative value, as the optimizer tries to minimize the objective function. So a high AUROC score will result here in a very negative value.

Returns:

The negative AUROC score, between \([-1, 0]\)

Return type:

float