Update README.md
Browse filesEdited ' Output: '
README.md
CHANGED
@@ -96,14 +96,14 @@ pred_class_proba = predict_class(test_sen)
|
|
96 |
print(f'The predicted probability for the {list(pred_class_proba.keys())[0]} class: {list(pred_class_proba.values())[0]}')
|
97 |
print(f'The predicted probability for the {list(pred_class_proba.keys())[1]} class: {list(pred_class_proba.values())[1]}')
|
98 |
```
|
99 |
-
<font color="IndianRed">
|
100 |
|
101 |
-
<font color="IndianRed">
|
102 |
|
103 |
```python
|
104 |
pred_class = idx2label[np.argmax(list(pred_class_proba.values()))]
|
105 |
print(f'The predicted class is: {pred_class}')
|
106 |
```
|
107 |
-
<font color="IndianRed">
|
108 |
|
109 |
Author: Queenie Luo (queenieluo[at]g.harvard.edu)
|
|
|
96 |
print(f'The predicted probability for the {list(pred_class_proba.keys())[0]} class: {list(pred_class_proba.values())[0]}')
|
97 |
print(f'The predicted probability for the {list(pred_class_proba.keys())[1]} class: {list(pred_class_proba.values())[1]}')
|
98 |
```
|
99 |
+
<font color="IndianRed"> Output: </font> The predicted probability for the not-letter class: 0.002029061783105135
|
100 |
|
101 |
+
<font color="IndianRed"> Output: </font> The predicted probability for the letter class: 0.9979709386825562
|
102 |
|
103 |
```python
|
104 |
pred_class = idx2label[np.argmax(list(pred_class_proba.values()))]
|
105 |
print(f'The predicted class is: {pred_class}')
|
106 |
```
|
107 |
+
<font color="IndianRed"> Output: </font> The predicted class is: letter
|
108 |
|
109 |
Author: Queenie Luo (queenieluo[at]g.harvard.edu)
|