You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by sm...@apache.org on 2014/02/12 18:33:08 UTC

svn commit: r1567694 - in /mahout/trunk: CHANGELOG core/src/main/java/org/apache/mahout/classifier/df/DecisionForest.java

Author: smarthi
Date: Wed Feb 12 17:33:08 2014
New Revision: 1567694

URL: http://svn.apache.org/r1567694
Log:
MAHOUT-1416: Make access of DecisionForest.read(DataInput) less restricted

Modified:
    mahout/trunk/CHANGELOG
    mahout/trunk/core/src/main/java/org/apache/mahout/classifier/df/DecisionForest.java

Modified: mahout/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/mahout/trunk/CHANGELOG?rev=1567694&r1=1567693&r2=1567694&view=diff
==============================================================================
--- mahout/trunk/CHANGELOG (original)
+++ mahout/trunk/CHANGELOG Wed Feb 12 17:33:08 2014
@@ -1,6 +1,8 @@
 Mahout Change Log
 
 Release 1.0 - unreleased
+
+  MAHOUT-1416: Make access of DecisionForest.read(dataInput) less restricted (Manoj Awasthi via smarthi)
   
   MAHOUT-1415: Clone method on sparse matrices fails if there is an empty row which has not been set explicitly (till.rohrmann via ssc)
 

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/df/DecisionForest.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/df/DecisionForest.java?rev=1567694&r1=1567693&r2=1567694&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/df/DecisionForest.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/df/DecisionForest.java Wed Feb 12 17:33:08 2014
@@ -198,7 +198,13 @@ public class DecisionForest implements W
     }
   }
 
-  private static DecisionForest read(DataInput dataInput) throws IOException {
+  /**
+   * Read the forest from inputStream
+   * @param dataInput - input forest
+   * @return {@link org.apache.mahout.classifier.df.DecisionForest}
+   * @throws IOException
+   */
+  public static DecisionForest read(DataInput dataInput) throws IOException {
     DecisionForest forest = new DecisionForest();
     forest.readFields(dataInput);
     return forest;