Cleanup some pylint errors. (#7667)

* Cleanup some pylint errors.

* Cleanup pylint errors in rabit modules.
* Make data iter an abstract class and cleanup private access.
* Cleanup no-self-use for booster.
This commit is contained in:
Jiaming Yuan
2022-02-19 18:53:12 +08:00
committed by GitHub
parent b76c5d54bf
commit f08c5dcb06
5 changed files with 118 additions and 104 deletions

View File

@@ -10,7 +10,7 @@ if sys.platform.startswith("win"):
def test_rabit_tracker():
tracker = RabitTracker(hostIP='127.0.0.1', n_workers=1)
tracker = RabitTracker(host_ip='127.0.0.1', n_workers=1)
tracker.start(1)
worker_env = tracker.worker_envs()
rabit_env = []