•1 min read•from Machine Learning
Built Support Vector Machine(SVM) from scratch in Rust [P]
Built my own SVM classifier from scratch in Rust. It uses SMO optimization, have linear and rbf kernel, uses grid search to tune the hyperparameters.
I tested it on two datasets one using Linear dataset and other using RBF, these were the results:
| Dataset | Kernel | Accuracy | Recall | F1 |
|---|---|---|---|---|
| Banknote Auth | Linear | 96% | 94% | 95% |
| Breast Cancer | RBF | 93% | 100% | 92% |
The plot.rs file, used for plotting only was written using AI as I could not wrap my head around plotters crate, apart from that everything was by my own.
Repo Link: Github Repo
Happy to get some feedback!
[link] [comments]
Want to read more?
Check out the full article on the original site
Tagged with
#large dataset processing
#rows.com
#natural language processing for spreadsheets
#generative AI for data analysis
#Excel alternatives for data analysis
#machine learning in spreadsheet applications
#Support Vector Machine
#SVM classifier
#Rust
#SMO optimization
#linear kernel
#RBF kernel
#accuracy
#recall
#F1 score
#grid search
#hyperparameters
#Banknote Auth dataset
#Breast Cancer dataset
#machine learning