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
TInputDataTPrediction
- Inheritance
-
Model<TInputData, TPrediction>BaseModel<TInputData, TPrediction>
- Inherited Members
Constructors
BaseModel(Loss<TPrediction>, SeededRandom?)
public BaseModel(Loss<TPrediction> lossFunction, SeededRandom? random)
Parameters
lossFunctionLoss<TPrediction>randomSeededRandom
Methods
AddLayer<TLayerOut>(Layer<TInputData, TLayerOut>)
protected static LayerListBuilder<TInputData, TLayerOut> AddLayer<TLayerOut>(Layer<TInputData, TLayerOut> layer) where TLayerOut : notnull
Parameters
layerLayer<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>