tensorflow
#
- class platypush.message.response.tensorflow.TensorflowPredictResponse(*args, prediction: numpy.ndarray, output_labels: List[str] | None = None, **kwargs)[source]#
Bases:
TensorflowResponse
Tensorflow model prediction response.
- class platypush.message.response.tensorflow.TensorflowResponse(*args, model, model_name: str | None = None, **kwargs)[source]#
Bases:
Response
Generic Tensorflow response.
- class platypush.message.response.tensorflow.TensorflowTrainResponse(*args, epochs: List[int], history: Dict[str, List[int | float]], **kwargs)[source]#
Bases:
TensorflowResponse
Tensorflow model fit/train response.
- __init__(*args, epochs: List[int], history: Dict[str, List[int | float]], **kwargs)[source]#
- Parameters:
epochs – List of epoch indexes the model has been trained on.
history – Train history, as a
metric -> [values]
dictionary where each value invalues
is the value for of that metric on a specific epoch.