alibi_detect.utils.tensorflow.prediction
Functions
predict_batch
predict_batchpredict_batch(x: Union[list, numpy.ndarray, tensorflow.python.framework.tensor.Tensor], model: Union[Callable, keras.src.models.model.Model], batch_size: int = 10000000000, preprocess_fn: Optional[Callable] = None, dtype: Union[type[numpy.generic], tensorflow.python.framework.dtypes.DType] = <class 'numpy.float32'>) -> Union[numpy.ndarray, tensorflow.python.framework.tensor.Tensor, tuple]Name
Type
Default
Description
predict_batch_transformer
predict_batch_transformerpredict_batch_transformer(x: Union[list, numpy.ndarray], model: keras.src.models.model.Model, tokenizer: Callable, max_len: int, batch_size: int = 10000000000, dtype: Union[type[numpy.generic], tensorflow.python.framework.dtypes.DType] = <class 'numpy.float32'>) -> Union[numpy.ndarray, tensorflow.python.framework.tensor.Tensor]Name
Type
Default
Description
Last updated
Was this helpful?

