|
46 | 46 | from specparam.plts.aperiodic import plot_aperiodic_params, plot_aperiodic_fits |
47 | 47 |
|
48 | 48 | # Import functions to examine frequency-by-frequency error of model fits |
49 | | -from specparam.analysis.error import compute_pointwise_error_model, compute_pointwise_error_group |
| 49 | +from specparam.analysis.error import compute_pointwise_error, compute_pointwise_error_group |
50 | 50 |
|
51 | 51 | # Import helper utility to access data |
52 | 52 | from specparam.utils.download import fetch_example_data |
|
226 | 226 | # It can be useful to plot frequency-by-frequency error of the model fit, |
227 | 227 | # to identify where in frequency space the spectrum is (or is not) being fit well. |
228 | 228 | # When fitting individual spectrum, this can be accomplished using the |
229 | | -# `compute_pointwise_error_model` function. |
| 229 | +# `compute_pointwise_error` function. |
230 | 230 | # |
231 | 231 | # In this case, we can see that error fluctuates around 0.05, which is the same as |
232 | 232 | # the mean absolute error for the model (MAE). There are points in the spectrum where |
|
237 | 237 | ################################################################################################### |
238 | 238 |
|
239 | 239 | # Plot frequency-by-frequency error |
240 | | -compute_pointwise_error_model(fm, plot_errors=True) |
| 240 | +compute_pointwise_error(fm, plot_errors=True) |
241 | 241 |
|
242 | 242 | ################################################################################################### |
243 | 243 |
|
244 | 244 | # Compute the frequency-by-frequency errors |
245 | | -errs_fm = compute_pointwise_error_model(fm, plot_errors=False, return_errors=True) |
| 245 | +errs_fm = compute_pointwise_error(fm, plot_errors=False, return_errors=True) |
246 | 246 |
|
247 | 247 | ################################################################################################### |
248 | 248 |
|
|
0 commit comments