Package com.heatonresearch.aifh

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


     * {@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

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

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

     * {@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

     * {@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

     * {@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

     * {@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

     * {@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

     * {@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

     * {@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

Related Classes of com.heatonresearch.aifh.AIFHError

Copyright © 2018 www.massapicom. 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.