public static FluentNet Build(this LastLayerBase layer) { return(new FluentNet(layer)); }
public FluentNet(LastLayerBase <T> layer) { this._lastLayer = layer; this.FindLayers(layer, this.InputLayers, this._allLayers); }
//public static DropOutLayer<T> DropOut<T>(this LayerBase<T> layer, double prob = 0.5) where T : struct, IEquatable<T>, IFormattable //{ // var dropout = new DropOutLayer<T>(prob); // layer.ConnectTo(dropout); // return dropout; //} public static FluentNet <T> Build <T>(this LastLayerBase <T> layer) where T : struct, IEquatable <T>, IFormattable { return(new FluentNet <T>(layer)); }