Exemple #1
0
        public static FullyConnLayer FullyConn(this LayerBase layer, int neuronCount)
        {
            var fullyConn = new FullyConnLayer(neuronCount);

            layer.ConnectTo(fullyConn);

            return(fullyConn);
        }
Exemple #2
0
        public static TanhLayer Tanh(this LayerBase layer)
        {
            var tanh = new TanhLayer();

            layer.ConnectTo(tanh);

            return(tanh);
        }
Exemple #3
0
        public static PoolLayer Pool(this LayerBase layer, int width, int height)
        {
            var pool = new PoolLayer(width, height);

            layer.ConnectTo(pool);

            return(pool);
        }
Exemple #4
0
        public static MaxoutLayer Maxout(this LayerBase layer)
        {
            var maxout = new MaxoutLayer();

            layer.ConnectTo(maxout);

            return(maxout);
        }
Exemple #5
0
        public static SigmoidLayer Sigmoid(this LayerBase layer)
        {
            var sigmoid = new SigmoidLayer();

            layer.ConnectTo(sigmoid);

            return(sigmoid);
        }
Exemple #6
0
        public static SvmLayer Svm(this LayerBase layer, int classCount)
        {
            var svm = new SvmLayer(classCount);

            layer.ConnectTo(svm);

            return(svm);
        }
Exemple #7
0
        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);
        }
Exemple #8
0
        //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);
        }
Exemple #9
0
        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);
        }
Exemple #10
0
        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);
        }
Exemple #11
0
        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);
        }
Exemple #12
0
        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);
        }
Exemple #13
0
        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);
        }
Exemple #14
0
        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);
        }
Exemple #15
0
        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);
        }
Exemple #16
0
        public static DropOutLayer DropOut(this LayerBase layer, double prob = 0.5)
        {
            var dropout = new DropOutLayer(prob);

            layer.ConnectTo(dropout);

            return(dropout);
        }
Exemple #17
0
        public static SoftmaxLayer Softmax(this LayerBase layer, int classCount)
        {
            var softMax = new SoftmaxLayer(classCount);

            layer.ConnectTo(softMax);

            return(softMax);
        }
Exemple #18
0
        public static ReluLayer Relu(this LayerBase layer)
        {
            var relu = new ReluLayer();

            layer.ConnectTo(relu);

            return(relu);
        }
Exemple #19
0
        public static RegressionLayer Regression(this LayerBase layer)
        {
            var regression = new RegressionLayer();

            layer.ConnectTo(regression);

            return(regression);
        }
Exemple #20
0
        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);
        }