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?, string?)
public BaseModel(Loss<TPrediction> lossFunction, SeededRandom? random, string? modelFilePath = null)
Parameters
lossFunctionLoss<TPrediction>randomSeededRandommodelFilePathstring
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>