Esempio n. 1
0
        private string Infer(double x1, double x2)
        {
            RuleBase.ApplyRules(ref x1, ref x2);
            CheckNnIsLoaded();

            // predict / aproximate with neural network
            double output = net.Calculate(new double[] { x1, x2 })[0];

            string conclusion = RuleBase.ApplyRules(output);

            return(conclusion);
        }