Learn R Programming

cito (version 1.1)

coef.citodnn: Returns list of parameters the neural network model currently has in use

Description

Returns list of parameters the neural network model currently has in use

Usage

# S3 method for citodnn
coef(object, ...)

# S3 method for citodnnBootstrap coef(object, ...)

Value

list of weights of neural network

Arguments

object

a model created by dnn

...

nothing implemented yet

Examples

Run this code
# \donttest{
if(torch::torch_is_installed()){
library(cito)

set.seed(222)
validation_set<- sample(c(1:nrow(datasets::iris)),25)

# Build and train  Network
nn.fit<- dnn(Sepal.Length~., data = datasets::iris[-validation_set,])

# Sturcture of Neural Network
print(nn.fit)

#analyze weights of Neural Network
coef(nn.fit)
}
# }

Run the code above in your browser using DataLab