getSnen {DSAM}R Documentation

Get sampling number of each SOM neuron

Description

Built-in function: Calculates the maximum number of samples of each subset in each neuron within the SOM network based on the sampling ratio specified by the user.

Usage

getSnen(som.info, control)

Arguments

som.info

The list contains information about the SOM network, including the total number of neurons, the number of rows, and the set of data points within each neuron.

control

User-defined parameter list, where each parameter definition refers to the par.default function.

Value

This function return a list containing three vectors Tr,Ts and Vd, the length of which is the same as the number of neurons. Tr,Ts and Vd vectors record the specified amount of data that need be obtained for the Training, Test and Validation subset in each neuron respectively.


[Package DSAM version 1.0.2 Index]