Since the input matrix is too big for training and I need to wait more than an hour I want to know how can I run through GPU? Also, my Cuda version is v-10.0.

I also try to use the Cupy-v100 ( https://github.com/murtazajafferji/svm-gpu ) library but it seems it does not work properly.

1) clf = GridSearchCV(SVC(class_weight='balanced',probability=True), tuned_parameters, cv=5, scoring=score)

clf.fit(train_data, train_label)

2)clf_full=SVC(kernel=clf.best_params_['kernel'],gamma=clf.best_params_['gamma'],C=clf.best_params_['C'],class_weight='balanced',probability=True) clf_full.fit(train_data, train_label)

More Ehsan Nowroozi's questions See All
Similar questions and discussions