Here you can find the source of tanhDerivative(final double thOutput)
public static double tanhDerivative(final double thOutput)
//package com.java2s; //License from project: Open Source License public class Main { public static double tanhDerivative(final double thOutput) { return 1 - (thOutput * thOutput); }/* w w w .j a v a2 s .com*/ }