Base Cost Function
- class pbparam.BaseCostFunction[source]
Base cost function class
This class provide a base for defining cost functions, it defines the method that should be implemented in subclasses to evaluate the cost of a prediction.
- evaluate(y_sim, y_data, weights, sd=None)[source]
Placeholder method for evaluating the cost of a prediction
Subclasses will override this method to provide specific implementations
- Parameters:
y_sim (array-like) – predicted values
y_data (array-like) – actual values
weights (dict, optional) – weights of the parameters
sd (float, optional) – standard deviation of error, not all cost function need it.