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:
Mahesh Bhosale 2018-02-06 04:45:12 +05:30 committed by Jonathan Hseu
parent ee8742b949
commit e78aff41a1

View File

@ -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: