Table of Contents

Class BaseModel<TInputData, TPrediction>

Namespace
NeuralNetworks.Models
Assembly
NeuralNetworks.dll
public abstract class BaseModel<TInputData, TPrediction> : Model<TInputData, TPrediction> where TInputData : notnull where TPrediction : notnull

Type Parameters

TInputData
TPrediction
Inheritance
Model<TInputData, TPrediction>
BaseModel<TInputData, TPrediction>
Inherited Members

Constructors

BaseModel(Loss<TPrediction>, SeededRandom?)

public BaseModel(Loss<TPrediction> lossFunction, SeededRandom? random)

Parameters

lossFunction Loss<TPrediction>
random SeededRandom

Methods

AddLayer<TLayerOut>(Layer<TInputData, TLayerOut>)

protected static LayerListBuilder<TInputData, TLayerOut> AddLayer<TLayerOut>(Layer<TInputData, TLayerOut> layer) where TLayerOut : notnull

Parameters

layer Layer<TInputData, TLayerOut>

Returns

LayerListBuilder<TInputData, TLayerOut>

Type Parameters

TLayerOut

CreateLayerListBuilder()

protected abstract LayerListBuilder<TInputData, TPrediction> CreateLayerListBuilder()

Returns

LayerListBuilder<TInputData, TPrediction>

CreateLayerListBuilderInternal()

protected override LayerListBuilder<TInputData, TPrediction> CreateLayerListBuilderInternal()

Returns

LayerListBuilder<TInputData, TPrediction>