-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
More in-memory input support for column split #9685
Conversation
tests/python/test_with_arrow.py
Outdated
@@ -101,6 +100,7 @@ def test_arrow_survival(self): | |||
np.testing.assert_equal(y_np_low, y_lower_bound.to_pandas().values) | |||
|
|||
|
|||
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider creating a function in python_package/xgboost/testing/__init__.py
as def is_win
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -943,12 +944,17 @@ def project_root(path: str) -> str: | |||
|
|||
|
|||
def run_with_rabit(world_size: int, test_fn: Callable) -> None: | |||
tracker = RabitTracker(host_ip="127.0.0.1", n_workers=world_size) | |||
tracker.start(world_size) | |||
exception_queue: queue.Queue = queue.Queue() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a lock here? Or GIL is handling it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Queue
itself is synchronized. https://docs.python.org/3/library/queue.html
tests/python/test_with_pandas.py
Outdated
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows") | ||
class TestPandasColumnSplit: | ||
@staticmethod | ||
def verify_pandas(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance we can reuse the pandas test instead of copying the code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
test_dmatrix.py
andtest_with_pandas.py
withblack