prevision_quantum_nn.postprocessing.plotter.phase_space_plotter_1d
¶
phase space plotter 1D module
Module Contents¶
Classes¶
Class PhaseSpacePlotter1D. |
-
class
prevision_quantum_nn.postprocessing.plotter.phase_space_plotter_1d.
PhaseSpacePlotter1D
(plotting_params)¶ Bases:
prevision_quantum_nn.postprocessing.plotter.phase_space_plotter.PhaseSpacePlotter
Class PhaseSpacePlotter1D.
Plotter for a phase space of dimension 1
-
x_val
¶ validation features to be plotted with the phase space
- Type
numpy array
-
y_val
¶ validation labels to be plotted with the phase space
- Type
numpy array
-
x_plot
¶ array of features to map the phase space
- Type
numpy array
-
has_validation
¶ tells if validation is set to on or not
- Type
bool
-
set_validation_data
(self, features, labels)¶ Sets validation data.
- Parameters
features (numpy array) – validation features to be plotted with the phase space
labels (numpy array) – validation labels to be plotted with the phase space
- Raises
ValueError if dimensions do not match 1 –
-
prepare_phase_space
(self)¶ Prepare phase space of PhaseSpacePlotter1D.
Checks consistency of min and max creates x_plot for predicting and drawing
-
plot
(self, model)¶ - Plot the phase space of a model predictions
in 1D at current_iteration
- Parameters
model (QuantumNeuralNetwork) – model to be used to plot phase space
cuttent_iteration (int) – iteration at which the model is
force_plot (bool) – if current iteration does not match verbose_period, you can also force the plot with this option set to True
-