diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-03-28 13:43:39 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-03-28 13:43:39 +0100 |
| commit | 1f30df8d941d30ab546421bc56c92c9fa9cf8a59 (patch) | |
| tree | 97376530174fc377768250d39a8b142b28b83bff | |
| parent | Add example for nonlinear classification (diff) | |
| download | rgensvm-1f30df8d941d30ab546421bc56c92c9fa9cf8a59.tar.gz rgensvm-1f30df8d941d30ab546421bc56c92c9fa9cf8a59.zip | |
add code used for creating the readme figure
| -rw-r--r-- | .image.png | bin | 24251 -> 24430 bytes | |||
| -rw-r--r-- | README.md | 19 |
2 files changed, 17 insertions, 2 deletions
| Binary files differ @@ -6,6 +6,17 @@ classifier in R.  +```r +# Plot created with: +> library(gensvm) +> x <- iris[, -5] +> y <- iris[, 5] +> fit <- gensvm(x, y, kernel='rbf', gamma=10, max.iter=5000, verbose=1, + random.seed=123) +> plot(fit, x, y, xlim=c(-5, 5), ylim=c(-5, 5)) +> title("Iris dataset (GenSVM + RBF)") +``` + Introduction ------------ @@ -32,7 +43,9 @@ Installation This package can be installed from CRAN: - install.packages('gensvm') +```r +> install.packages('gensvm') +``` Usage ----- @@ -65,7 +78,9 @@ Citing If you use GenSVM in your work, please cite the paper using the information avialable through the following R command: - citation('gensvm') +```r +> citation('gensvm') +``` Alternatively, you can use the following BibTeX code directly: |
