mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r740083 - /lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java
Date Mon, 02 Feb 2009 19:19:37 GMT
Author: srowen
Date: Mon Feb  2 19:19:36 2009
New Revision: 740083

URL: http://svn.apache.org/viewvc?rev=740083&view=rev
Log:
Oops, minSimilarity should default to Double.NEGATIVE_INFINITY

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java?rev=740083&r1=740082&r2=740083&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java
(original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java
Mon Feb  2 19:19:36 2009
@@ -49,7 +49,7 @@
   public NearestNUserNeighborhood(int n,
                                   UserSimilarity userSimilarity,
                                   DataModel dataModel) {
-    this(n, 0.0, userSimilarity, dataModel, 1.0);
+    this(n, Double.NEGATIVE_INFINITY, userSimilarity, dataModel, 1.0);
   }
 
   /**
@@ -114,12 +114,6 @@
     private final User theUser;
     private final double minSim;
 
-    private Estimator(UserSimilarity userSimilarityImpl, User theUser) {
-      this.userSimilarityImpl = userSimilarityImpl;
-      this.theUser = theUser;
-      this.minSim = Double.NEGATIVE_INFINITY;
-    }
-
     private Estimator(UserSimilarity userSimilarityImpl, User theUser, double minSim) {
       this.userSimilarityImpl = userSimilarityImpl;
       this.theUser = theUser;



Mime
View raw message