We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8004180 + ae1c5d7 commit 655928fCopy full SHA for 655928f
extra_keras_datasets/iris.py
@@ -80,10 +80,10 @@ def load_data(path="iris.npz", test_split=0.2):
80
testing_data = samples[:num_test_samples]
81
82
# Split into inputs and targets
83
- input_train = [i[0:4] for i in training_data]
84
- input_test = [i[0:4] for i in testing_data]
85
- target_train = [i[4] for i in training_data]
86
- target_test = [i[4] for i in testing_data]
+ input_train = np.array([i[0:4] for i in training_data])
+ input_test = np.array([i[0:4] for i in testing_data])
+ target_train = np.array([i[4] for i in training_data])
+ target_test = np.array([i[4] for i in testing_data])
87
88
# Warn about citation
89
warn_citation()
0 commit comments