-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfitness.Rd
More file actions
44 lines (38 loc) · 946 Bytes
/
fitness.Rd
File metadata and controls
44 lines (38 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_nn_helper.R
\name{fitness}
\alias{fitness}
\title{Fit and validate neural network}
\usage{
fitness(
X_train_norm,
Y_train_onehot,
X_val_norm,
Y_val_onehot,
learning_rate,
weight_decay,
dropout,
num_dense_layers,
num_dense_nodes,
activation,
epochs = 50,
batch_size = 128,
verbose = 0,
seed = NULL
)
}
\arguments{
\item{X_train_norm}{Normalized input matrix for training set}
\item{Y_train_onehot}{One-hot representation of response for training set}
\item{X_val_norm}{Normalized input matrix for validation set}
\item{Y_val_onehot}{One-hot representation of response for validation set}
\item{epochs}{Number of training epochs}
\item{batch_size}{Batch size}
\item{verbose}{Keras verbosity mode (0 = silent, 1 = progress bar, 2 = one line per epoch)}
}
\value{
Validation accuracy
}
\description{
Fit and validate neural network
}