tensorpredictionhandler
tensorpredictionhandler ¶
Module for TensorPredictionHandler
Classes¶
TensorPredictionHandler ¶
Bases: PredictionHandler
Gets tensors and stores them numpy compressed files
Source code in niceml/mlcomponents/predictionhandlers/tensorpredictionhandler.py
Functions¶
add_prediction ¶
adds a prediction after processed by the net
Source code in niceml/mlcomponents/predictionhandlers/tensorpredictionhandler.py
TensorPredictionHandlerZarr ¶
Bases: TensorPredictionHandler
Saves tensors in da compressed Zarr directory. Each tensor is compressed with gzip.
Parameters¶
key_seperator: str default "" string which seperates image_location and output type scale_to_int: bool, default False If true data is multiplied by 255 save_as_int: bool, default False If true dtype of data is converted to uint8 to save space
Source code in niceml/mlcomponents/predictionhandlers/tensorpredictionhandler.py
Functions¶
add_prediction ¶
adds a prediction after processed by the net