powered by
Fit single-hidden-layer neural network, possibly with skip-layer connections.
NNetModel( size = 1, linout = FALSE, entropy = NULL, softmax = NULL, censored = FALSE, skip = FALSE, rang = 0.7, decay = 0, maxit = 100, trace = FALSE, MaxNWts = 1000, abstol = 1e-04, reltol = 1e-08 )
number of units in the hidden layer.
switch for linear output units.
switch for entropy (= maximum conditional likelihood) fitting.
switch for softmax (log-linear model) and maximum conditional likelihood fitting.
a variant on softmax, in which non-zero targets mean possible classes.
switch to add skip-layer connections from input to output.
Initial random weights on [-rang, rang].
-rang
rang
parameter for weight decay.
maximum number of iterations.
switch for tracing optimization.
maximum allowable number of weights.
stop if the fit criterion falls below abstol, indicating an essentially perfect fit.
abstol
stop if the optimizer is unable to reduce the fit criterion by a factor of at least 1 - reltol.
1 - reltol
MLModel class object.
MLModel
factor, numeric
factor
numeric
size, decay
size
decay
Default values for the NULL arguments and further model details can be found in the source link below.
NULL
nnet, fit, resample
nnet
fit
resample
# NOT RUN { fit(sale_amount ~ ., data = ICHomes, model = NNetModel) # }
Run the code above in your browser using DataLab