public void TrainDisciminator(int cycles, string animieFolder)
        {
            string[] files = Directory.GetFiles(animieFolder);

            for (int i = 0; i < cycles; ++i)
            {
                discriminator.SetInput(MatrixMafs.ArrDivNum(GetDoubleArr(File.ReadAllBytes(files[i % files.Length])), 255));
                discriminator.OutputBerechnen();
                discriminator.DeltawertBerechen(new double[] { 1 });
                discriminator.Backpropagation();

                discriminator.SetInput(SimpleNet.GetRandArr(750000, 0, 1));
                discriminator.OutputBerechnen();
                discriminator.DeltawertBerechen(new double[] { 0 });
                discriminator.Backpropagation();

                if (i % 1000 == 0)
                {
                    Console.WriteLine("Trainingscycle nr " + i);
                }
            }
        }
 public UCDIG(SimpleNet discriminator, SimpleNet encoder, SimpleNet decoder)
 {
     this.discriminator = discriminator;
     this.encoder       = encoder;
     this.decoder       = decoder;
 }