Skip to content
Snippets Groups Projects
Commit cc206278 authored by Luc Giffon's avatar Luc Giffon
Browse files

correcting bug on the selection of subsample

parent 3eedd558
No related branches found
No related tags found
No related merge requests found
......@@ -171,8 +171,8 @@ if __name__ == '__main__':
print(",".join(printed_r_list))
exit()
np.random.seed(SEED)
nys_subsample_index = np.random.permutation(NYS_SUBSAMPLE_SIZE)
nys_subsample = data.train[0][nys_subsample_index]
nys_subsample_index = np.random.permutation(data.train[0].shape[0])
nys_subsample = data.train[0][nys_subsample_index[:NYS_SUBSAMPLE_SIZE]]
if REAL_NYSTROM:
if KERNEL_NAME == "rbf":
kernel_fct = rbf_kernel
......@@ -280,7 +280,6 @@ if __name__ == '__main__':
str(NYS_SUBSAMPLE_SIZE),
str(VALIDATION_SIZE),
str(SEED),
]
print(",".join(printed_r_list))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment