platypush.message.response.tensorflow

class platypush.message.response.tensorflow.TensorflowPredictResponse(*args, prediction: <sphinx.ext.autodoc.importer._MockObject object at 0x7f6b804c70b8>, output_labels: Optional[List[str]] = None, **kwargs)[source]

Tensorflow model prediction response.

__init__(*args, prediction: <sphinx.ext.autodoc.importer._MockObject object at 0x7f6b804c70b8>, output_labels: Optional[List[str]] = None, **kwargs)[source]
Parameters:model – Name of the model.
class platypush.message.response.tensorflow.TensorflowResponse(*args, model: <sphinx.ext.autodoc.importer._MockObject object at 0x7f6b804c7b00>, **kwargs)[source]

Generic Tensorflow response.

__init__(*args, model: <sphinx.ext.autodoc.importer._MockObject object at 0x7f6b804c7b00>, **kwargs)[source]
Parameters:model – Name of the model.
class platypush.message.response.tensorflow.TensorflowTrainResponse(*args, epochs: List[int], history: Dict[str, List[Union[int, float]]], **kwargs)[source]

Tensorflow model fit/train response.

__init__(*args, epochs: List[int], history: Dict[str, List[Union[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 in values is the value for of that metric on a specific epoch.