kinn.plot: Plots model graphs and (optional) saves them as files in a...

Description Usage Arguments Examples

Description

Plots model graphs and (optional) saves them as files in a gml format

Usage

1
kinn.plot(gmodel, filename = NULL)

Arguments

gmodel

kinn model generated from kinn function

filename

prefix for the subgraphs files in gml format(optional)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(kinn)
library(caret)
x<-runif(100,min = 0,max=10)
e<-rnorm(100)
y<-2*x+3+e
df<-data.frame(x,y)
inTrain <- createDataPartition(y = df$y, p = 0.7, list = FALSE)
train <-df[inTrain, ]
test <- df[-inTrain, ]
model=kinn.train("y~x",train)
kinn.plot(model,'subgraphfile')

kinn documentation built on April 14, 2017, 10:02 a.m.

Related to kinn.plot in kinn...