Skip to content

Commit

Permalink
Only models with p_value < 0.05
Browse files Browse the repository at this point in the history
  • Loading branch information
Habush committed Mar 18, 2019
1 parent c830b01 commit 3d213a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crossval/moses_cross_val.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ def count_features(self, models):
"""

for moses_model in models:
tree = combo_parser.parse(moses_model.model)
self.tree_transformer.transform(tree)
if moses_model.test_score.p_value < 0.05: # include only significant models in the feature count
tree = combo_parser.parse(moses_model.model)
self.tree_transformer.transform(tree)

def majority_vote(self):
"""
Expand Down

0 comments on commit 3d213a8

Please sign in to comment.