prevision_quantum_nn.applications.application
¶
Application module: contains base class for applications
Module Contents¶
Classes¶
Base Application class. Applications will inherite from this class. |
-
class
prevision_quantum_nn.applications.application.
Application
(prefix='qnn')¶ Base Application class. Applications will inherite from this class.
-
max_num_q
¶ maximum number of qubits/qumodes
- Type
int
-
save_params
(self)¶ save parameters into file
-
save_preprocessor
(self)¶ save preprocessor into file
-
predict
(self, val_features)¶ Predict. Returns prediction of the model
- Parameters
val_features (numpy array) – validation features
-
log_params
(self)¶ logs parameters of the application at the begining of the output file
-