samoa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdfm <...@git.apache.org>
Subject [GitHub] incubator-samoa pull request: Patch for SAMOA-58 (Samoa AvroFileSt...
Date Tue, 05 Apr 2016 07:39:47 GMT
Github user gdfm commented on a diff in the pull request:

    https://github.com/apache/incubator-samoa/pull/48#discussion_r58498095
  
    --- Diff: samoa-api/src/main/java/org/apache/samoa/streams/FileStream.java ---
    @@ -52,9 +49,18 @@
           's', "Source Type (HDFS, local FS)", FileStreamSource.class,
           "LocalFileStreamSource");
     
    +  public IntOption classIndexOption = new IntOption("classIndex", 'c',
    +          "Class index of data. 0 for none or -1 for last attribute in file.", -1, -1,
Integer.MAX_VALUE);
    +
    +  private FloatOption floatOption = new FloatOption("classWeight", 'w', "", 1.0);
    --- End diff --
    
    I see your point. So class weight is an easy way to set instance weight for all the instances
that share the same class.
    Looks good to me!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message