peal.adaptors.clarc.calculate_svm_cav

peal.adaptors.clarc.calculate_svm_cav(activations, annotations)[source]

CAV from the normal of a balanced LinearSVC (C=1, up to 10000 iters).

Returns:

Unit-norm weight vector of shape (D,) on CPU (float64).

Return type:

torch.Tensor