feos.eos.estimator.DataSet.cost¶
- DataSet.cost(eos, loss)¶
Compute the cost function for each input value.
- Parameters:
eos (EquationOfState) – The equation of state that is used.
loss (Loss) – The loss function that is applied to residuals to handle outliers.
- Returns:
The cost function evaluated for each experimental data point.
- Return type:
numpy.ndarray[Float]
Note
The cost function that is used depends on the property. For most properties it is the absolute relative difference. See the constructors of the respective properties to learn about the cost functions that are used.