Skip to content

Commit 01f15d4

Browse files
committed
small update
1 parent 449045f commit 01f15d4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/plot_OTDA_classes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313

14+
1415
#%% parameters
1516

1617
n=150 # nb samples in source and target datasets

ot/datasets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def get_data_classif(dataset,n,nz=.5,theta=0,**kwargs):
124124

125125

126126
else:
127-
x=0
128-
y=0
127+
x=np.array(0)
128+
y=np.array(0)
129129
print("unknown dataset")
130130

131-
return x,y
131+
return x,y.astype(int)

0 commit comments

Comments
 (0)