adapt.utils.accuracy

adapt.utils.accuracy(y_true,y_pred)[source]

Custom accuracy function which can handleprobas vector in both binary and multi classification

Parameters
y_trueTensor

True tensor.

y_predTensor

Predicted tensor.

Returns
Boolean Tensor