generate_parameter_sweeps_and_plot_from_variable
- pyapprox.analysis.generate_parameter_sweeps_and_plot_from_variable(model, variable, filename=None, num_samples_per_sweep=50, num_sweeps=2, qoi_indices=None, show=False, axes_label_opts=None, axs=None)[source]
Plot parameter sweeps of a function.
- Parameters:
- modelcallable
Function with the signature
model(samples) -> np.ndarray(nsamples, nqoi)
where samples : np.ndarray (nvars, nsamples)
- variable
pyapprox.variables.IndependentMarginalsVariable
Random variable
- filenamestring
Name of file to store parameter sweeps. If None no file is written
- num_samples_per_sweepinterger
The number of samples in a parameter sweep
- num_samplesinteger
The number of parameter sweeps
- qoi_indicesiterable
The column indices in the values outputed by model which will be plotted. A separate subplot will be used for each QoI
- showboolean
True - plt.show() is called
- axes_label_optslist of dict
Dictionary specifying plt kwargs for each axes
- axslist of
matplotlib.pyplot.axes
If provided will be used to plot each QoI Otherwise axes will be created