Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using Boston dataset in tests and examples #494

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update utils.py
  • Loading branch information
StrikerRUS authored Jan 26, 2022
commit 85525c694a2c9ba8e447ffa2ad277a9c1c411a10
4 changes: 2 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ def __init__(self, dataset_name, test_fraction):
self.name = "train_model_regression_bounded"
self.X, self.y = datasets.load_diabetes(return_X_y=True)
self.y = np.arctan(self.y) / np.pi + 0.5 # (0; 1)
elif dataset_name == "diabetes":
elif dataset_name == "diabetes_w_missing_values":
self.name = "train_model_regression_w_missing_values"
self.X, self.y = datasets.load_diabetes(return_X_y=True)
additional_test_data = np.array([
@@ -237,7 +237,7 @@ def assert_code_equal(actual, expected):
get_bounded_regression_model_trainer = partial(ModelTrainer.get_instance, "diabetes_y_bounded")


get_regression_w_missing_values_model_trainer = partial(ModelTrainer.get_instance, "diabetes")
get_regression_w_missing_values_model_trainer = partial(ModelTrainer.get_instance, "diabetes_w_missing_values")


get_classification_random_w_missing_values_model_trainer = partial(