samoa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgrzenda <>
Subject [GitHub] incubator-samoa pull request #61: SAMOA-68: Saving true and predicted labels...
Date Mon, 03 Jul 2017 13:54:12 GMT
Github user mgrzenda commented on a diff in the pull request:
    --- Diff: samoa-api/src/main/java/org/apache/samoa/evaluation/
    @@ -111,6 +125,38 @@ public void addResult(Instance inst, double[] classVotes) {
    +  /**
    +   * This method is used to retrieve predictions and votes (for classification only)
    +   * 
    +   * @return String This returns an array of predictions and votes objects.
    +   */
    +  @Override
    +  public Vote[] getPredictionVotes() {
    --- End diff --
    This has been modified. Assuming two classes in classification task (binary classification)
there were ca. 5 objects created per every processed instance. Anyway, now these objects are
reused. Similar solution exists for measurements.

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 or file a JIRA ticket
with INFRA.

View raw message