Skip to content

Commit

Permalink
Save CI time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Auguste committed Apr 7, 2020
1 parent 899bced commit b6ed4fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python_package_test/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,8 @@ def is_correctly_constrained(learner, x3_to_category=True):
return True

for test_with_categorical_variable in [True, False]:
trainset = self.generate_trainset_for_monotone_constraints_tests(test_with_categorical_variable)
for monotone_constraints_method in ["basic", "intermediate"]:
trainset = self.generate_trainset_for_monotone_constraints_tests(test_with_categorical_variable)
params = {
'min_data': 20,
'num_leaves': 20,
Expand Down Expand Up @@ -1105,8 +1105,8 @@ def are_there_monotone_splits(tree, monotone_constraints):
max_depth = 5
monotone_constraints = [1, -1, 0]
penalization_parameter = 2.0
trainset = self.generate_trainset_for_monotone_constraints_tests(x3_to_category=False)
for monotone_constraints_method in ["basic", "intermediate"]:
trainset = self.generate_trainset_for_monotone_constraints_tests(x3_to_category=False)
params = {
'max_depth': max_depth,
'monotone_constraints': monotone_constraints,
Expand All @@ -1125,8 +1125,8 @@ def test_monotone_penalty_max(self):
max_depth = 5
monotone_constraints = [1, -1, 0]
penalization_parameter = max_depth
trainset_constrained_model = self.generate_trainset_for_monotone_constraints_tests(x3_to_category=False)
for monotone_constraints_method in ["basic", "intermediate"]:
trainset_constrained_model = self.generate_trainset_for_monotone_constraints_tests(x3_to_category=False)
x = trainset_constrained_model.data
y = trainset_constrained_model.label
x3_negatively_correlated_with_y = x[:, 2]
Expand Down

0 comments on commit b6ed4fc

Please sign in to comment.