Package org.jblas

Examples of org.jblas.DoubleMatrix.mul()


     * @return derivative of softmax, has the same formula as sigmoid :)
     */
    @Override
    public DoubleMatrix derivativeAt(DoubleMatrix X) {
        DoubleMatrix M = valueAt(X);
        return M.mul((M.mul(-1)).addi(1));
    }
}
View Full Code Here


     * @return derivative of softmax, has the same formula as sigmoid :)
     */
    @Override
    public DoubleMatrix derivativeAt(DoubleMatrix X) {
        DoubleMatrix M = valueAt(X);
        return M.mul((M.mul(-1)).addi(1));
    }
}
View Full Code Here

     * @return sigmoid_prime = M.*(1-M), where M = sigmoid(X);
     */
    @Override
    public DoubleMatrix derivativeAt(DoubleMatrix X) {
        DoubleMatrix M = valueAt(X);
        return M.mul((M.mul(-1)).addi(1));
    }
}
View Full Code Here

     * @return sigmoid_prime = M.*(1-M), where M = sigmoid(X);
     */
    @Override
    public DoubleMatrix derivativeAt(DoubleMatrix X) {
        DoubleMatrix M = valueAt(X);
        return M.mul((M.mul(-1)).addi(1));
    }
}
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.