Skip to content

Commit

Permalink
[Train] Remove deprecated mosaic and sklearn trainer code (ray-projec…
Browse files Browse the repository at this point in the history
…t#47901)

**Both trainers are now hard-deprecated.** This PR removes the code
paths that confuses Ray train users on Mosaic and Sklearn. This should
have been done a while ago.

Signed-off-by: Superskyyy <yihaochen@apache.org>
Signed-off-by: ujjawal-khare <ujjawal.khare@dream11.com>
  • Loading branch information
Superskyyy authored and ujjawal-khare committed Oct 15, 2024
1 parent 60c8554 commit 0befe07
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 626 deletions.
3 changes: 0 additions & 3 deletions python/ray/air/_internal/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
AIR_TRAINERS = {
"HorovodTrainer",
"LightGBMTrainer",
"MosaicTrainer",
"SklearnTrainer",
"TensorflowTrainer",
"TorchTrainer",
"XGBoostTrainer",
"HuggingFaceTrainer", # Deprecated: Remove in 2.7.
}

# searchers implemented by Ray Tune.
Expand Down
8 changes: 0 additions & 8 deletions python/ray/train/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,6 @@ py_test(
deps = [":train_lib", ":conftest"]
)

py_test(
name = "test_sklearn_predictor",
size = "small",
srcs = ["tests/test_sklearn_predictor.py"],
tags = ["team:ml", "exclusive", "ray_air"],
deps = [":train_lib", ":conftest"]
)

py_test(
name = "test_storage",
size = "small",
Expand Down
123 changes: 0 additions & 123 deletions python/ray/train/examples/mosaic_cifar10_example.py

This file was deleted.

3 changes: 0 additions & 3 deletions python/ray/train/mosaic/__init__.py

This file was deleted.

68 changes: 0 additions & 68 deletions python/ray/train/mosaic/_mosaic_utils.py

This file was deleted.

30 changes: 0 additions & 30 deletions python/ray/train/mosaic/mosaic_trainer.py

This file was deleted.

9 changes: 0 additions & 9 deletions python/ray/train/sklearn/__init__.py

This file was deleted.

64 changes: 0 additions & 64 deletions python/ray/train/sklearn/sklearn_checkpoint.py

This file was deleted.

Loading

0 comments on commit 0befe07

Please sign in to comment.