mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeast...@apache.org
Subject svn commit: r908243 - in /lucene/mahout/trunk/core/src: main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java test/java/org/apache/mahout/clustering/TestPrintableInterface.java
Date Tue, 09 Feb 2010 21:44:06 GMT
Author: jeastman
Date: Tue Feb  9 21:44:06 2010
New Revision: 908243

URL: http://svn.apache.org/viewvc?rev=908243&view=rev
Log:
MAHOUT-270: fixed typo in SampledNormalModel.asFormatString and corresponding unit test

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/TestPrintableInterface.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java?rev=908243&r1=908242&r2=908243&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java
(original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java
Tue Feb  9 21:44:06 2010
@@ -47,7 +47,7 @@
 
   public String asFormatString(String[] bindings) {
     StringBuilder buf = new StringBuilder();
-    buf.append("nm{n=").append(getS0()).append(" m=");
+    buf.append("snm{n=").append(getS0()).append(" m=");
     if (getMean() != null) {
       buf.append(ClusterBase.formatVector(getMean(), bindings));
     }

Modified: lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/TestPrintableInterface.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/TestPrintableInterface.java?rev=908243&r1=908242&r2=908243&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/TestPrintableInterface.java
(original)
+++ lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/TestPrintableInterface.java
Tue Feb  9 21:44:06 2010
@@ -67,7 +67,7 @@
     Vector m = new DenseVector(d);
     Printable model = new SampledNormalModel(m, 0.75);
     String format = model.asFormatString(null);
-    assertEquals("format", "nm{n=0 m=[1.100, 2.200, 3.300] sd=0.75}", format);
+    assertEquals("format", "snm{n=0 m=[1.100, 2.200, 3.300] sd=0.75}", format);
     String json = model.asJsonString();
     GsonBuilder builder = new GsonBuilder();
     builder.registerTypeAdapter(Model.class, new JsonModelAdapter());



Mime
View raw message