Revision: 18977
          http://sourceforge.net/p/gate/code/18977
Author:   adamfunk
Date:     2015-10-29 15:38:43 +0000 (Thu, 29 Oct 2015)
Log Message:
-----------
Changed sigmoid scale to avoid mashing everything up to 100.0.

Modified Paths:
--------------
    gate/trunk/plugins/TermRaider/src/gate/termraider/modes/Normalization.java

Modified: 
gate/trunk/plugins/TermRaider/src/gate/termraider/modes/Normalization.java
===================================================================
--- gate/trunk/plugins/TermRaider/src/gate/termraider/modes/Normalization.java  
2015-10-29 15:16:00 UTC (rev 18976)
+++ gate/trunk/plugins/TermRaider/src/gate/termraider/modes/Normalization.java  
2015-10-29 15:38:43 UTC (rev 18977)
@@ -17,7 +17,9 @@
   Sigmoid;
   
   
-  private static double xScale = 4.8;
+  // Old scale was mushing too many terms together where rounding made them
+  // all appear tied for 100.0.
+  private static double xScale = 80;
 
   
   public static double calculate(Normalization mode, Number raw) {
@@ -34,9 +36,6 @@
   }
   
   
-  // TODO: make the following private, remove deprecation,
-  // and add normalization options to the termbanks (except DFB)
-  
   /**
    * The following produces the right half of a sigmoid 
    * curve adjusted so that
@@ -44,8 +43,7 @@
    * @param score from 0 to inf 
    * @return score from 0 to 100
    */
-  @Deprecated
-  public static double normalizeScore(double score) {
+  private static double normalizeScore(double score) {
     double norm = 2.0 / (1.0 + Math.exp(-score / xScale)) - 1.0;
     return (double) (100.0F * norm);
   }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to