https://github.com/colcarroll/decision_boundaries
Plotting decision boundaries for common machine learning classification algorithms.
https://github.com/colcarroll/decision_boundaries
Last synced: over 1 year ago
JSON representation
Plotting decision boundaries for common machine learning classification algorithms.
- Host: GitHub
- URL: https://github.com/colcarroll/decision_boundaries
- Owner: ColCarroll
- Created: 2014-05-21T18:48:12.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-21T19:10:29.000Z (about 12 years ago)
- Last Synced: 2025-01-30T08:29:47.405Z (over 1 year ago)
- Language: R
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Decision Boundaries
Plots decision boundaries for some common machine learning algorithms. Also
includes a dataset binomial.csv of admit data from
http://www.ats.ucla.edu/stat/data/binary.csv.
Provided data functions:
* get.admit.data
* get.car.data
* get.iris.data
* get.state.data
Required libraries:
* ggplot2 (plotting)
* rpart (decision trees)
* randomForest (random forest)
* RWeka (k nearest neighbors)
* klaR (naive Bayes)
Example usage to create .png files in a plots subfolder:
```R
> source('decision_boundaries.R')
Loading required package: ggplot2
Loading required package: rpart
Loading required package: randomForest
randomForest 4.6-7
Type rfNews() to see new features/changes/bug fixes.
Loading required package: RWeka
Loading required package: klaR
Loading required package: MASS
> test.all(get.car.data)
null device
1
```