Skip to content

Instantly share code, notes, and snippets.

@joshcarp
Created April 7, 2022 03:30
Show Gist options
  • Save joshcarp/31e249f6f4201d7693937ffd5068afda to your computer and use it in GitHub Desktop.
Save joshcarp/31e249f6f4201d7693937ffd5068afda to your computer and use it in GitHub Desktop.
confusion_matrix: [[65, 12], [6, 17]]
accuracy: 0.82
f_score: 0.8783783783783784
('>50K', [('>50K', -19.55627365283215), ('<=50K', -20.71689698193305)])
Attribute vectors of instances [0, 1, 2]: [[68 '?' '1st-4th' 2 'Divorced' '?' 'Not-in-family' 'White' 'Female' 20
'United-States']
[39 'State-gov' 'Bachelors' 13 'Never-married' 'Adm-clerical'
'Not-in-family' 'White' 'Male' 40 'United-States']
[50 'Self-emp-not-inc' 'Bachelors' 13 'Married-civ-spouse'
'Exec-managerial' 'Husband' 'White' 'Male' 13 'United-States']]
Number of instances (N): 1000
Number of attributes (F): 11
Number of labels (L): 2
Predicted class log-probabilities for instance N-3: [('>50K', -19.55627365283215), ('<=50K', -20.71689698193305)]
Predicted class ID for instance N-3: >50K
Predicted class log-probabilities for instance N-2: [('>50K', -22.744589775643142), ('<=50K', -25.339070637730188)]
Predicted class ID for instance N-2: >50K
Predicted class log-probabilities for instance N-1: [('>50K', -16.716481989445867), ('<=50K', -16.85279495864574)]
Predicted class ID for instance N-1: >50K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment