generate_NN_structure_indels: Generate Neural Network Structure for Indel Analysis

View source: R/train_model_indels.R

generate_NN_structure_indelsR Documentation

Generate Neural Network Structure for Indel Analysis

Description

This function builds a neural network structure for indel analysis. It takes an input layer and iteratively adds specified hidden layers, followed by an output layer for classification.

Usage

generate_NN_structure_indels(inputs, input_layer, layers, reg = 0)

Arguments

inputs

The input structure for the neural network, usually from the data input layer.

input_layer

The initial layer of the neural network to which additional layers are added.

layers

A list or vector indicating the number of units in each hidden layer of the network.

reg

Regularization parameter applied to each dense layer for preventing overfitting. Defaults to 0.

Value

A keras model object representing the constructed neural network.


JakobPedersenLab/dreams documentation built on Feb. 2, 2024, 3:14 p.m.