Examples of AIFHError


Examples of com.heatonresearch.aifh.AIFHError

     * {@inheritDoc}
     */
    @Override
    public double evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The logistic link function can only accept one parameter.");
        }
        return 1.0 / (1.0 + Math.exp(-x[0]));
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

    /**
     * {@inheritDoc}
     */
    @Override
    public double[] getLongTermMemory() {
        throw new AIFHError("Long term memory not supported, use a genetic trainer.");
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

                taken.add(trial);
                return trial;
            }
        }

        throw new AIFHError("Ran out of integers to select.");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.