alibi.models.pytorch.model
Model
ModelConstructor
Model(self, **kwargs)Methods
compile
compilecompile(optimizer: torch.optim.optimizer.Optimizer, loss: Union[Callable, List[Callable]], loss_weights: Optional[List[float]] = None, metrics: Optional[List[alibi.models.pytorch.metrics.Metric]] = None)Name
Type
Default
Description
compute_loss
compute_losscompute_loss(y_pred: Union[torch.Tensor, List[torch.Tensor]], y_true: Union[torch.Tensor, List[torch.Tensor]]) -> Tuple[torch.Tensor, Dict[str, float]]Name
Type
Default
Description
compute_metrics
compute_metricsName
Type
Default
Description
evaluate
evaluateName
Type
Default
Description
fit
fitName
Type
Default
Description
load_weights
load_weightsName
Type
Default
Description
save_weights
save_weightsName
Type
Default
Description
test_step
test_stepName
Type
Default
Description
train_step
train_stepName
Type
Default
Description
validate_prediction_labels
validate_prediction_labelsName
Type
Default
Description
Last updated
Was this helpful?

