Skip to content

Commit

Permalink
Update test_e2e.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed May 29, 2020
1 parent a1870e0 commit 809c91e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/e2e/test_e2e.py
Expand Up @@ -37,47 +37,47 @@


# Set of helper functions to make parametrization less verbose.
def regression(model, test_fraction=0.5):
def regression(model, test_fraction=0.8):
return (
model,
utils.get_regression_model_trainer(test_fraction),
REGRESSION,
)


def classification(model, test_fraction=0.5):
def classification(model, test_fraction=0.8):
return (
model,
utils.get_classification_model_trainer(test_fraction),
CLASSIFICATION,
)


def classification_binary(model, test_fraction=0.5):
def classification_binary(model, test_fraction=0.8):
return (
model,
utils.get_binary_classification_model_trainer(test_fraction),
CLASSIFICATION,
)


def regression_random(model, test_fraction=0.5):
def regression_random(model, test_fraction=0.8):
return (
model,
utils.get_regression_random_data_model_trainer(test_fraction),
REGRESSION,
)


def classification_random(model, test_fraction=0.5):
def classification_random(model, test_fraction=0.8):
return (
model,
utils.get_classification_random_data_model_trainer(test_fraction),
CLASSIFICATION,
)


def classification_binary_random(model, test_fraction=0.5):
def classification_binary_random(model, test_fraction=0.8):
return (
model,
utils.get_classification_binary_random_data_model_trainer(
Expand All @@ -86,7 +86,7 @@ def classification_binary_random(model, test_fraction=0.5):
)


def regression_bounded(model, test_fraction=0.5):
def regression_bounded(model, test_fraction=0.8):
return (
model,
utils.get_bounded_regression_model_trainer(test_fraction),
Expand Down Expand Up @@ -187,11 +187,11 @@ def regression_bounded(model, test_fraction=0.5):
# XGBoost (tree method "hist")
regression(xgboost.XGBRegressor(**XGBOOST_HIST_PARAMS),
test_fraction=0.5),
test_fraction=0.8),
classification(xgboost.XGBClassifier(**XGBOOST_HIST_PARAMS),
test_fraction=0.5),
test_fraction=0.8),
classification_binary(xgboost.XGBClassifier(**XGBOOST_HIST_PARAMS),
test_fraction=0.5),
test_fraction=0.8),
# XGBoost (LINEAR)
regression(xgboost.XGBRegressor(**XGBOOST_PARAMS_LINEAR)),
Expand Down

0 comments on commit 809c91e

Please sign in to comment.