API: Objectives
matmdl.objectives
Choose the objective function form. Currently only rmse exists.
best_rmse
Calculate the RMSE for the best parameter set.
Best parameters determined by objective function that wrote to out_errors.txt. Use root mean squared error so that error value is more interpretable.
calculate
calc_error(exp_data, orientation, sim_data=None)
Give error value for run compared to experimental data.
Calculates relative (%) root mean squared error between experimental and calculated
stress-strain curves. Interpolation of experimental data depends on :ref:i_powerlaw.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exp_data
|
'Nx2 matrix'
|
Array of experimental strain-stress, as from
|
required |
orientation
|
str
|
Orientation nickname. |
required |
Source code in matmdl/objectives/calculate.py
ddx_pointwise(curve, x)
ddx_rolling(curve, x, window)
Give rolling window slope of curve
Source code in matmdl/objectives/calculate.py
recalculate
Recalculates error values based on saved stress-strain data.
Reloads *.npy files to recalculation of individual error values. Moves current out_errors.txt to dated filename before rewriting. Uses current error settings