Resolve Programmatic mistake. (#16765)
SPECIES should have been either imported here or it should have referenced from iris_data. The corresponding code is correct but the conflict in the documentation.
This commit is contained in:
parent
ee8742b949
commit
e78aff41a1
@ -700,7 +700,7 @@ for pred_dict, expec in zip(predictions, expected):
|
||||
|
||||
class_id = pred_dict['class_ids'][0]
|
||||
probability = pred_dict['probabilities'][class_id]
|
||||
print(template.format(SPECIES[class_id], 100 * probability, expec))
|
||||
print(template.format(iris_data.SPECIES[class_id], 100 * probability, expec))
|
||||
```
|
||||
|
||||
Running the program yields the following output:
|
||||
|
Loading…
Reference in New Issue
Block a user