Benchmark#
- class pymultifracs.Benchmark(signal_gen_grid, signal_param_grid, estimation_grid, estimation_param_grid, folder='.')#
Compute and plot benchmarks, varying the models and analysis parameters.
- Attributes:
- signal_gen_grid
dict[str,Callable] Dictionary associating a name to a function that samples time series.
- signal_param_grid
dict[str,ndarrayofAny] |dict[str,dict[str,ndarrayofAny]] Dictionary associating to each signal generating function the dictionary associating to each signal parameter the array of the values that the parameter will take. May be empty.
- estimation_grid
dict[str,Callable] Dictionary associating to an estimation method’s name its callable function.
- estimation_param_grid
dict[str,dict[str,ndarrayofAny]] Dictionary associating to each estimation method the dictionary of estimation parameters. May be empty.
- folder
str|Path Path to the folder which will contain the output files.
- results
DataFrame Dataframe collecting the outcomes of the estimation on the generated signals.
- signal_gen_grid
- compute_benchmark(n_jobs=1, save_load_signals=False, save=False)#
Compute the benchmark.
- Parameters:
- n_jobs
int Number of jobs that joblib will start in parallel. Each job handles a different signal configuration.
- save_load_signalsbool
Whether to save the signals, and load them if found, to speed up computation. Currently not implemented yet.
- savebool
Whether the save the final results dataframe to a pickled file.
- n_jobs
- get_df_fnames()#
Get results filename.
- Returns:
PathPath to the results filename (if saved)