Skip to content

Commit

Permalink
Java API Fixes for statistics (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzmeister authored Sep 28, 2020
1 parent 9d7ec52 commit 7f938f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public FeatureGroup(FeatureStore featureStore, @NonNull String name, Integer ver
this.onlineEnabled = onlineEnabled;
this.defaultStorage = defaultStorage != null ? defaultStorage : Storage.OFFLINE;
this.features = features;
this.statisticsEnabled = statisticsEnabled;
this.statisticsEnabled = statisticsEnabled != null ? statisticsEnabled : true;
this.histograms = histograms;
this.correlations = correlations;
this.statisticColumns = statisticColumns;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public TrainingDataset(@NonNull String name, Integer version, String description
this.splits = splits;
this.seed = seed;
this.featureStore = featureStore;
this.statisticsEnabled = statisticsEnabled;
this.statisticsEnabled = statisticsEnabled != null ? statisticsEnabled : true;
this.histograms = histograms;
this.correlations = correlations;
this.statisticColumns = statisticColumns;
Expand Down Expand Up @@ -307,6 +307,7 @@ public Statistics computeStatistics() throws FeatureStoreException, IOException
* @throws FeatureStoreException
* @throws IOException
*/
@JsonIgnore
public Statistics getStatistics() throws FeatureStoreException, IOException {
return statisticsEngine.getLast(this);
}
Expand All @@ -319,6 +320,7 @@ public Statistics getStatistics() throws FeatureStoreException, IOException {
* @throws FeatureStoreException
* @throws IOException
*/
@JsonIgnore
public Statistics getStatistics(String commitTime) throws FeatureStoreException, IOException {
return statisticsEngine.get(this, commitTime);
}
Expand Down

0 comments on commit 7f938f1

Please sign in to comment.