Description
General Regression Neural Networks Package.
Description
This General Regression Neural Networks Package uses various distance functions. It was motivated by Specht (1991, ISBN:1045-9227), and updated from previous published paper Li et al. (2016) <doi:10.1016/j.palaeo.2015.11.005>. This package includes various functions, although "euclidean" distance is used traditionally.
README.md
General Regression Neural Networks (GRNNs) Package
The goal of GRNNs is to build a GRNN model using different functions. This GRNNs package uses various distance functions including: "euclidean", "minkowski", "manhattan", "maximum", "canberra", "angular", "correlation", "absolute_correlation", "hamming", "jaccard","bray", "kulczynski", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao","mahalanobis".
Installation
You can install the released version of GRNNs from github with:
library(devtools)
install_github("Shufeng-Li/GRNNs")
Example
This is a basic example which shows you how to use GRNNs:
library(GRNNs)
data("met")
data("physg")
predict<-physg[1,]
physg.train<-physg[-1,]
met.train<-met[-1,]
best.spread<-findSpread(physg.train,met.train,10,"euclidean",scale=TRUE)
prediction<-grnn(predict,physg.train,met.train,fun="euclidean",best.spread,scale=TRUE)