Skip to content

Commit d735f55

Browse files
authored
Merge pull request #18 from Alexsandruss/makefile_correction
Fix kmeans data generation error in Makefile
2 parents de3ce51 + 4144fff commit d735f55

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DFCLF_NUM_THREADS = $(SVM_NUM_THREADS)
3535
DFREG_NUM_THREADS = $(SVM_NUM_THREADS)
3636
MULTIPLIER = 100
3737
DATA_DIR = data/
38-
DATA_kmeans = data/kmeans_$(KMEANS_SIZE).npy
38+
DATA_kmeans = data/clustering/kmeans_$(KMEANS_SIZE).npy
3939

4040
COMMON_ARGS = --batch '$(BATCH)' --arch '$(HOST)' \
4141
--num-threads '$(NUM_THREADS)' --header
@@ -76,8 +76,8 @@ ARGS_NATIVE_pca_full = --num-threads "$(NUM_THREADS)" --header \
7676
--size "$(REGRESSION_SIZE)" --svd-solver full
7777
ARGS_NATIVE_kmeans = --num-threads "$(NUM_THREADS)" --header \
7878
--data-multiplier "$(MULTIPLIER)" \
79-
--filex data/kmeans_$(KMEANS_SIZE).npy \
80-
--filei data/kmeans_$(KMEANS_SIZE).init.npy
79+
--filex data/clustering/kmeans_$(KMEANS_SIZE).npy \
80+
--filei data/clustering/kmeans_$(KMEANS_SIZE).init.npy
8181
ARGS_NATIVE_svm2 = --fileX data/two/X-$(SVM_SIZE).npy \
8282
--fileY data/two/y-$(SVM_SIZE).npy \
8383
--num-threads $(SVM_NUM_THREADS) --header
@@ -120,8 +120,8 @@ ARGS_SKLEARN_linear = --size "$(REGRESSION_SIZE)"
120120
ARGS_SKLEARN_pca_daal = --size "$(REGRESSION_SIZE)" --svd-solver daal
121121
ARGS_SKLEARN_pca_full = --size "$(REGRESSION_SIZE)" --svd-solver full
122122
ARGS_SKLEARN_kmeans = --data-multiplier "$(MULTIPLIER)" \
123-
--filex data/kmeans_$(KMEANS_SIZE).npy \
124-
--filei data/kmeans_$(KMEANS_SIZE).init.npy
123+
--filex data/clustering/kmeans_$(KMEANS_SIZE).npy \
124+
--filei data/clustering/kmeans_$(KMEANS_SIZE).init.npy
125125
ARGS_SKLEARN_svm2 = --fileX data/two/X-$(SVM_SIZE).npy \
126126
--fileY data/two/y-$(SVM_SIZE).npy
127127
ARGS_SKLEARN_svm5 = --fileX data/multi/X-$(SVM_SIZE).npy \
@@ -157,8 +157,8 @@ ARGS_DAAL4PY_linear = --size "$(REGRESSION_SIZE)"
157157
ARGS_DAAL4PY_pca_daal = --size "$(REGRESSION_SIZE)" --svd-solver daal
158158
ARGS_DAAL4PY_pca_full = --size "$(REGRESSION_SIZE)" --svd-solver full
159159
ARGS_DAAL4PY_kmeans = --data-multiplier "$(MULTIPLIER)" \
160-
--filex data/kmeans_$(KMEANS_SIZE).npy \
161-
--filei data/kmeans_$(KMEANS_SIZE).init.npy
160+
--filex data/clustering/kmeans_$(KMEANS_SIZE).npy \
161+
--filei data/clustering/kmeans_$(KMEANS_SIZE).init.npy
162162
ARGS_DAAL4PY_svm2 = --fileX data/two/X-$(SVM_SIZE).npy \
163163
--fileY data/two/y-$(SVM_SIZE).npy
164164
ARGS_DAAL4PY_svm5 = --fileX data/multi/X-$(SVM_SIZE).npy \
@@ -212,7 +212,7 @@ daal4py: $(addsuffix .out,$(addprefix output/daal4py/,$(DAAL4PY_BENCHMARKS))) da
212212

213213
data: $(KMEANS_DATA) svm_data logreg_data df_clf_data
214214

215-
DATA_kmeans: data/kmeans_$(KMEANS_SIZE).npy
215+
DATA_kmeans: data/clustering/kmeans_$(KMEANS_SIZE).npy
216216
DATA_svm2: data/two/X-$(SVM_SIZE).npy
217217
DATA_svm5: data/multi/X-$(SVM_SIZE).npy
218218
DATA_logreg2: data/two/X-$(LOGREG_SIZE).npy
@@ -223,7 +223,7 @@ DATA_dfreg: data/reg/X-$(DFREG_SIZE).npy
223223
DATA_%: ;
224224

225225

226-
data/kmeans_$(KMEANS_SAMPLES)x$(KMEANS_FEATURES).npy: | data/
226+
data/clustering/kmeans_$(KMEANS_SAMPLES)x$(KMEANS_FEATURES).npy: | data/clustering/
227227
python make_datasets.py -f $(KMEANS_FEATURES) -s $(KMEANS_SAMPLES) \
228228
kmeans -c 10 -x $(basename $@) -i $(basename $@).init \
229229
-t $(basename $@).tol

0 commit comments

Comments
 (0)