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 evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The linear link function can only accept one parameter.");
        }

        return x[0];
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

            if (probabilities[i] != 0.0) {
                return i;
            }
        }

        throw new AIFHError("Invalid probabilities.");
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

     * {@inheritDoc}
     */
    @Override
    public double evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The inverse squared link function can only accept one parameter.");
        }

        return -Math.pow(x[0], -2);
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

     * {@inheritDoc}
     */
    @Override
    public double evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The inverse link function can only accept one parameter.");
        }

        return -Math.pow(x[0], -1);
    }
View Full Code Here

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 Math.log(x[0]);
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

     * {@inheritDoc}
     */
    @Override
    public double evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The linear link function can only accept one parameter.");
        }

        return x[0];
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

     * {@inheritDoc}
     */
    @Override
    public double evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The inverse squared link function can only accept one parameter.");
        }

        return -Math.pow(x[0], -2);
    }
View Full Code Here

Examples of com.heatonresearch.aifh.AIFHError

     * {@inheritDoc}
     */
    @Override
    public double evaluate(final double[] x) {
        if (x.length > 1) {
            throw new AIFHError("The inverse link function can only accept one parameter.");
        }

        return -Math.pow(x[0], -1);
    }
View Full Code Here

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 Math.log(x[0]);
    }
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.