Ejemplo n.º 1
0
        public CoucheBase(string label, CoucheBase couchePrecedente)
        {
            this.Label            = label;
            this.CouchePrecedente = couchePrecedente;

            poids    = new List <Poids>();
            neurones = new List <Neurone>();
        }
Ejemplo n.º 2
0
        //private SigmoidFunction m_sigmoid;
        // relu
        // HyperTangente

        public CoucheBase()
        {
            Label            = "";
            CouchePrecedente = null;

            poids    = new List <Poids>();
            neurones = new List <Neurone>();
        }
Ejemplo n.º 3
0
 public CoucheSupConvolution(String label, CoucheBase couchePrecedente, Size tailleFeatureMaps, int nombreMaps, int tailleKernel)
 {
     Label             = label;
     CouchePrecedente  = couchePrecedente;
     poids             = null;
     featureMapSize    = tailleFeatureMaps;
     nombreFeatureMaps = nombreMaps;
     kernelsize        = tailleKernel;
 }
Ejemplo n.º 4
0
 public CoucheFullConnecte(string label, CoucheBase couchePrecedente, int nombreNeurones)
 {
     Label             = label;
     CouchePrecedente  = couchePrecedente;
     poids             = null;
     NombreNeurones    = nombreNeurones;
     featureMapSize    = new Size(1, NombreNeurones);
     nombreFeatureMaps = 1;
     NombrePoids       = 0;
 }
Ejemplo n.º 5
0
        public CoucheConvolution(String label, CoucheBase couchePrecedente, int nombreMaps, int tailleKernel)
        {
            Label            = label;
            CouchePrecedente = couchePrecedente;
            poids            = null;
            Size fmSize = Size.Empty;

            fmSize.Width  = couchePrecedente.featureMapSize.Width - 4;
            fmSize.Height = couchePrecedente.featureMapSize.Height - 4;

            featureMapSize    = fmSize;
            nombreFeatureMaps = nombreMaps;
            kernelsize        = tailleKernel;
        }
Ejemplo n.º 6
0
        public CoucheSortie(string label, CoucheBase couchePrecedente, int nombreSortie)
        {
            Label = label;
            int count = nombreSortie;

            CouchePrecedente  = couchePrecedente;
            NombreNeurones    = 0;
            NombrePoids       = 0;
            featureMapSize    = new Size(1, count);
            nombreFeatureMaps = 1;

            poids    = null;
            neurones = null;
        }
Ejemplo n.º 7
0
        public CoucheSimple(String label, CoucheBase couchePrecedente)
        {
            Label             = label;
            CouchePrecedente  = couchePrecedente;
            poids             = null;
            nombreFeatureMaps = couchePrecedente.nombreFeatureMaps;
            kernelsize        = 2;

            Size fmSize = Size.Empty;

            fmSize.Width  = (int)Math.Floor((double)couchePrecedente.featureMapSize.Width / 2);
            fmSize.Height = (int)Math.Floor((double)couchePrecedente.featureMapSize.Height / 2);

            featureMapSize = fmSize;
        }