Skip to content

Instantly share code, notes, and snippets.

@AFAgarap
Last active November 26, 2019 06:51
Show Gist options
  • Save AFAgarap/ac366b7499d26254920e5595a8950a99 to your computer and use it in GitHub Desktop.
Save AFAgarap/ac366b7499d26254920e5595a8950a99 to your computer and use it in GitHub Desktop.
from trustscore import TrustScore
ts = TrustScore(alpha=5e-2)
ts.fit(encoded_train_features, train_labels)
trust_score, closest_class_not_predicted = ts.score(
encoded_test_features, predictions, k=5
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment