Learn R Programming

radiant.model (version 0.8.0)

ann: Artificial Neural Networks

Description

Artificial Neural Networks

Usage

ann(dataset, rvar, evar, type = "classification", lev = "", size = 1,
  decay = 0.5, wts = "None", seed = NA, check = "standardize",
  data_filter = "")

Arguments

dataset

Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant

rvar

The response variable in the model

evar

Explanatory variables in the model

type

Model type (i.e., "classification" or "regression")

lev

The level in the response variable defined as _success_

size

Number of units (nodes) in the hidden layer

decay

Paramater decay

wts

Weights to use in estimation

seed

Random seed to use as the starting point

check

Optional estimation parameters ("standardize" is the default)

data_filter

Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")

Value

A list with all variables defined in ann as an object of class ann

Details

See https://radiant-rstats.github.io/docs/model/ann.html for an example in Radiant

See Also

summary.ann to summarize results

plot.ann to plot results

predict.ann for prediction

Examples

Run this code
# NOT RUN {
result <- ann("titanic", "survived", c("pclass","sex"), lev = "Yes")
result <- ann("titanic", "survived", c("pclass","sex"))
result <- ann("diamonds", "price", c("carat","clarity"), type = "regression")

# }

Run the code above in your browser using DataLab