• Fichier: NeuralNetwork.cs
  • Path: /ia_chiffre/IAChiffre/Assets/Scripts/NeuralNetwork.cs
  • File size: 389 bytes
  • MIME-type: text/plain
  • Charset: utf-8
 
Retour
using System.Collections.Generic;

public abstract class NeuralNetwork
{
    public float[] Compute(float[] inputs)
    {
        float[] result = inputs;

        foreach(NeuralNetworkLayer neuralNetworkLayer in Setup())
        {
            result = neuralNetworkLayer.Compute(result);
        }

        return result;
    }

    protected abstract List<NeuralNetworkLayer> Setup();
}