Rgtsvm icon indicating copy to clipboard operation
Rgtsvm copied to clipboard

Rgtsvm::svm running slower than e1071::svm

Open NathanSkene opened this issue 4 years ago • 2 comments

Got Rgtsvm installed and tested it out on a multi class classification task. Training dataset has 12713 samples with 26 variables for each. Rgtsvm is running 1/3rd slower than e1071. Any guesses on what could be causing this? Happy to send over the dataset if that might help. Thanks!

> start.time <- Sys.time()
> model_svm1 <- Rgtsvm::svm(Celltype ~ . , trainingData)
> end.time <- Sys.time()
> time.taken <- end.time - start.time
> time.taken
Time difference of 1.031099 mins
>
> start.time <- Sys.time()
> model_svm2 <- e1071::svm(Celltype ~ . , trainingData)
> end.time <- Sys.time()
> time.taken <- end.time - start.time
> time.taken
Time difference of 43.36015 secs

NathanSkene avatar Aug 23 '19 22:08 NathanSkene

Link to the dataset is here: https://imperiallondon-my.sharepoint.com/:u:/g/personal/nskene_ic_ac_uk/EX-_0OGm2e1Luhn9E1-9Wm0BYlYP4DCwCSQNEAVTwLd33g?e=1fj3y9

Password is "trainingData"

NathanSkene avatar Aug 23 '19 22:08 NathanSkene

I got the same results using your data. I think your data is too small to be used to show GPU's performance. Would you like to try the big data, for example, 500K or 1M samples?

wzhy2000 avatar Aug 24 '19 02:08 wzhy2000