TrainableModel.predict¶
- abstract TrainableModel.predict(X)[source]¶
Predict using the network specified to the model.
- Parameters
X (
ndarray
) -- The input data.- Raises
QiskitMachineLearningError -- Model needs to be fit to some training data first
- Return type
- Returns
The predicted classes.