Skip to content

Commit 1db398d

Browse files
committed
Update generate_data.py
1 parent d596bdf commit 1db398d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

utils/generate_data.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import matplotlib.pyplot as plt
33
import scipy.sparse as sparse
44
from sklearn.datasets import make_classification
5-
from sklearn.datasets import load_digits, load_breast_cancer
5+
from sklearn.datasets import load_digits, load_breast_cancer, load_iris
66

77
def generate_one_dim_data(N):
88
'''
@@ -224,7 +224,11 @@ def get_digits():
224224
def get_cancer():
225225
X, Y = load_breast_cancer(return_X_y = True)
226226
return X, Y
227-
227+
228+
def get_iris():
229+
X, Y = load_iris(return_X_y = True)
230+
return X, Y
231+
228232
def generate_cluster_data(N, D, n_cluster, plot=True):
229233
'''
230234
Parameters

0 commit comments

Comments
 (0)