Table of Contents

Class FunctionDataSource

Namespace
NeuralNetworks.DataSources
Assembly
NeuralNetworks.dll
public class FunctionDataSource : DataSource<float[,], float[,]>
Inheritance
FunctionDataSource
Inherited Members

Constructors

FunctionDataSource(float[,], Func<float[], float>, float, SeededRandom?)

public FunctionDataSource(float[,] arguments, Func<float[], float> function, float testRatio = 0.7, SeededRandom? random = null)

Parameters

arguments float[,]
function Func<float[], float>
testRatio float
random SeededRandom

Methods

GetData()

Gets the data for training and testing.

public override (float[,] xTrain, float[,] yTrain, float[,]? xTest, float[,]? yTest) GetData()

Returns

(float[,] xTrain, float[,] yTrain, float[,] xTest, float[,] yTest)

A tuple containing the training and (optional) testing data.