(input_data)
| 32 | |
| 33 | @staticmethod |
| 34 | def predict(input_data): |
| 35 | assert CNNPredictor.__model, "Use 'CNNPredictor()' to initialize before using 'CNNPredictor.predict()'" |
| 36 | |
| 37 | x = input_data.reshape(1, 28, 28, 1) |
| 38 | return CNNPredictor.__model.predict(x).flatten().tolist() |