mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:06:31 +08:00
[xgb] re-enable xgboost_ray tests (#13416)
* re-enable * fix * update xgb_ray version
This commit is contained in:
@@ -1,26 +1,28 @@
|
||||
# --------------------------------------------------------------------
|
||||
# Tests from the python/ray/util/sgd/tests directory.
|
||||
# Tests from the python/ray/util/xgboost directory.
|
||||
# Please keep these sorted alphabetically.
|
||||
# --------------------------------------------------------------------
|
||||
# py_test(
|
||||
# name = "simple_example",
|
||||
# size = "small",
|
||||
# srcs = ["simple_example.py"],
|
||||
# deps = [":xgb_lib"],
|
||||
# tags = ["exclusive"],
|
||||
# )
|
||||
py_test(
|
||||
name = "simple_example",
|
||||
size = "small",
|
||||
srcs = ["simple_example.py"],
|
||||
deps = [":xgb_lib"],
|
||||
tags = ["exclusive"],
|
||||
)
|
||||
|
||||
py_test(
|
||||
name = "simple_tune",
|
||||
size="small",
|
||||
srcs = ["simple_tune.py"],
|
||||
deps = [":xgb_lib"],
|
||||
tags = ["exclusive"]
|
||||
)
|
||||
|
||||
# This is a dummy test dependency that causes the above tests to be
|
||||
# re-run if any of these files changes.
|
||||
py_library(
|
||||
name = "xgb_lib",
|
||||
srcs = glob(["**/*.py"]),
|
||||
)
|
||||
|
||||
# py_test(
|
||||
# name = "simple_tune",
|
||||
# size="small",
|
||||
# srcs = ["simple_tune.py"],
|
||||
# deps = [":xgb_lib"],
|
||||
# tags = ["exlcusive"]
|
||||
# )
|
||||
|
||||
# # This is a dummy test dependency that causes the above tests to be
|
||||
# # re-run if any of these files changes.
|
||||
# py_library(
|
||||
# name = "xgb_lib",
|
||||
# srcs = glob(["**/*.py"], exclude=["tests/*.py"]),
|
||||
# )
|
||||
|
||||
@@ -31,7 +31,7 @@ def main():
|
||||
train_set,
|
||||
evals=[(test_set, "eval")],
|
||||
evals_result=evals_result,
|
||||
ray_params=RayParams(max_actor_restarts=1),
|
||||
ray_params=RayParams(max_actor_restarts=1, num_actors=1),
|
||||
verbose_eval=False)
|
||||
|
||||
bst.save_model("simple.xgb")
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# So we separate its own requirements file.
|
||||
|
||||
tune-sklearn==0.2.1
|
||||
xgboost_ray==0.0.1
|
||||
xgboost_ray==0.0.2
|
||||
Reference in New Issue
Block a user