Skip to content

Commit

Permalink
Shorten test_joblib (ray-project#8273)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoakes authored May 1, 2020
1 parent bf07407 commit d4e6470
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/ray/tests/test_joblib.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def test_svm_single_node(shutdown_only):
}

model = SVC(kernel="rbf")
search = RandomizedSearchCV(
model, param_space, cv=3, n_iter=50, verbose=10)
search = RandomizedSearchCV(model, param_space, cv=3, n_iter=2, verbose=10)
register_ray()
with joblib.parallel_backend("ray"):
search.fit(digits.data, digits.target)
Expand All @@ -64,8 +63,7 @@ def test_svm_multiple_nodes(ray_start_cluster_2_nodes):
}

model = SVC(kernel="rbf")
search = RandomizedSearchCV(
model, param_space, cv=5, n_iter=100, verbose=10)
search = RandomizedSearchCV(model, param_space, cv=5, n_iter=2, verbose=10)
register_ray()
with joblib.parallel_backend("ray"):
search.fit(digits.data, digits.target)
Expand Down Expand Up @@ -123,7 +121,7 @@ def test_sklearn_benchmarks(ray_start_cluster_2_nodes):

# Create train-test split.
print("Creating train-test split...")
n_train = 6000
n_train = 100
X_train = X[:n_train]
y_train = y[:n_train]
register_ray()
Expand Down

0 comments on commit d4e6470

Please sign in to comment.