public static FullyConnLayer FullyConn(this LayerBase layer, int neuronCount) { var fullyConn = new FullyConnLayer(neuronCount); layer.ConnectTo(fullyConn); return(fullyConn); }
public static TanhLayer Tanh(this LayerBase layer) { var tanh = new TanhLayer(); layer.ConnectTo(tanh); return(tanh); }
public static PoolLayer Pool(this LayerBase layer, int width, int height) { var pool = new PoolLayer(width, height); layer.ConnectTo(pool); return(pool); }
public static MaxoutLayer Maxout(this LayerBase layer) { var maxout = new MaxoutLayer(); layer.ConnectTo(maxout); return(maxout); }
public static SigmoidLayer Sigmoid(this LayerBase layer) { var sigmoid = new SigmoidLayer(); layer.ConnectTo(sigmoid); return(sigmoid); }
public static SvmLayer Svm(this LayerBase layer, int classCount) { var svm = new SvmLayer(classCount); layer.ConnectTo(svm); return(svm); }
public static SigmoidLayer <T> Sigmoid <T>(this LayerBase <T> layer) where T : struct, IEquatable <T>, IFormattable { var sigmoid = new SigmoidLayer <T>(); layer.ConnectTo(sigmoid); return(sigmoid); }
//public static SvmLayer<T> Svm<T>(this LayerBase<T> layer, int classCount) where T : struct, IEquatable<T>, IFormattable //{ // var svm = new SvmLayer<T>(classCount); // layer.ConnectTo(svm); // return svm; //} public static RegressionLayer <T> Regression <T>(this LayerBase <T> layer) where T : struct, IEquatable <T>, IFormattable { var regression = new RegressionLayer <T>(); layer.ConnectTo(regression); return(regression); }
public static ReluLayer <T> Relu <T>(this LayerBase <T> layer) where T : struct, IEquatable <T>, IFormattable { var relu = new ReluLayer <T>(); layer.ConnectTo(relu); return(relu); }
public static ConvLayer <T> Conv <T>(this LayerBase <T> layer, int width, int height, int filterCount) where T : struct, IEquatable <T>, IFormattable { var conv = new ConvLayer <T>(width, height, filterCount); layer.ConnectTo(conv); return(conv); }
public static SoftmaxLayer <T> Softmax <T>(this LayerBase <T> layer, int classCount) where T : struct, IEquatable <T>, IFormattable { var softMax = new SoftmaxLayer <T>(classCount); layer.ConnectTo(softMax); return(softMax); }
public static FullyConnLayer <T> FullyConn <T>(this LayerBase <T> layer, int neuronCount) where T : struct, IEquatable <T>, IFormattable { var fullyConn = new FullyConnLayer <T>(neuronCount); layer.ConnectTo(fullyConn); return(fullyConn); }
public static PoolLayer <T> Pool <T>(this LayerBase <T> layer, int width, int height) where T : struct, IEquatable <T>, IFormattable { var pool = new PoolLayer <T>(width, height); layer.ConnectTo(pool); return(pool); }
public static TanhLayer <T> Tanh <T>(this LayerBase <T> layer) where T : struct, IEquatable <T>, IFormattable { var tanh = new TanhLayer <T>(); layer.ConnectTo(tanh); return(tanh); }
public static ConvLayer Conv(this LayerBase layer, int width, int height, int filterCount) { var conv = new ConvLayer(width, height, filterCount); layer.ConnectTo(conv); return(conv); }
public static DropOutLayer DropOut(this LayerBase layer, double prob = 0.5) { var dropout = new DropOutLayer(prob); layer.ConnectTo(dropout); return(dropout); }
public static SoftmaxLayer Softmax(this LayerBase layer, int classCount) { var softMax = new SoftmaxLayer(classCount); layer.ConnectTo(softMax); return(softMax); }
public static ReluLayer Relu(this LayerBase layer) { var relu = new ReluLayer(); layer.ConnectTo(relu); return(relu); }
public static RegressionLayer Regression(this LayerBase layer) { var regression = new RegressionLayer(); layer.ConnectTo(regression); return(regression); }
public static DropoutLayer <T> DropoutLayer <T>(this LayerBase <T> layer, T dropProbability) where T : struct, IEquatable <T>, IFormattable { var pool = new DropoutLayer <T>(dropProbability); layer.ConnectTo(pool); return(pool); }