saealib.SurrogatePrediction

class saealib.SurrogatePrediction(mean, std=None, label=None, metadata=<factory>)[source]

Bases: object

Unified return type for surrogate model predictions.

Parameters:
  • mean (ndarray)

  • std (ndarray | None)

  • label (ndarray | None)

  • metadata (dict)

mean

Predicted mean values. shape: (n_samples, n_obj)

Type:

np.ndarray

std

Predicted standard deviations (uncertainty). shape: (n_samples, n_obj). None if the surrogate does not provide uncertainty estimates (e.g., RBF interpolation).

Type:

np.ndarray or None

label

Predicted class labels. shape: (n_samples,). None unless the surrogate is a classification model.

Type:

np.ndarray or None

metadata

Implementation-specific additional information (e.g., SHAP values, gradient estimates).

Type:

dict

Methods

Method Details

SurrogatePrediction.__init__(mean, std=None, label=None, metadata=<factory>)
Parameters:
  • mean (ndarray)

  • std (ndarray | None)

  • label (ndarray | None)

  • metadata (dict)

Return type:

None