change text color
Browse files
README.md
CHANGED
@@ -95,12 +95,13 @@ test_sen = '上丞相康思公書'
|
|
95 |
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 |
-
>>> The predicted probability for the not-letter class: 0.002029061783105135
|
99 |
-
>>> The predicted probability for the letter class: 0.9979709386825562
|
100 |
```
|
|
|
|
|
|
|
101 |
```python
|
102 |
pred_class = idx2label[np.argmax(list(pred_class_proba.values()))]
|
103 |
print(f'The predicted class is: {pred_class}')
|
104 |
-
>>> The predicted class is: letter
|
105 |
```
|
|
|
106 |
|
|
|
95 |
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"> >>> </font> The predicted probability for the not-letter class: 0.002029061783105135
|
100 |
+
<font color="IndianRed"> >>> </font> The predicted probability for the letter class: 0.9979709386825562
|
101 |
+
|
102 |
```python
|
103 |
pred_class = idx2label[np.argmax(list(pred_class_proba.values()))]
|
104 |
print(f'The predicted class is: {pred_class}')
|
|
|
105 |
```
|
106 |
+
<font color="IndianRed"> >>> </font> The predicted class is: letter
|
107 |
|