SHARE
TWEET

Untitled

a guest Oct 15th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from trustscore import TrustScore
  2.  
  3. ts = TrustScore(alpha=5e-2)
  4. ts.fit(encoded_train_features, train_labels)
  5. trust_score, closest_class_not_predicted = ts.score(encoded_test_features, predictions, k=5)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top