Examples of convertToRealValue()


Examples of joshua.discriminative.semiring_parsingv2.SignedValue.convertToRealValue()

    //=== entropy
    //--normalize
    SignedValue entropyFactor = goalK.getR().getEntropy().duplicate();
    entropyFactor.multiLogNumber(-logZ);
   
    this.entropy = logZ - entropyFactor.convertToRealValue();//logZ - \bar{r}/Z
    //System.out.print("Entropy is" + entropy);
   
    //=== risk
    //--normalize
    SignedValue riskFactor = goalK.getR().getRisk().duplicate();
View Full Code Here

Examples of joshua.discriminative.semiring_parsingv2.SignedValue.convertToRealValue()

   
    //=== risk
    //--normalize
    SignedValue riskFactor = goalK.getR().getRisk().duplicate();
    riskFactor.multiLogNumber(-logZ);
    this.risk =  riskFactor.convertToRealValue();
    //System.out.print("Risk is" + risk);
   
    this.functionValue = this.risk - this.temperature*this.entropy;
   
   
 
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.