Skip to content

Commit

Permalink
pandas.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 2, 2024
1 parent 0ad8cd4 commit bc99eb5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/python/test_with_pandas.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import sys
from typing import Type

import numpy as np
import pytest
from test_dmatrix import set_base_margin_info

import xgboost as xgb
from xgboost import testing as tm
from xgboost.core import DataSplitMode
from xgboost.testing.data import pd_arrow_dtypes, pd_dtypes
from xgboost.testing.data import pd_arrow_dtypes, pd_dtypes, run_base_margin_info

try:
import pandas as pd
Expand Down Expand Up @@ -336,7 +334,7 @@ def test_pandas_weight(self, data_split_mode=DataSplitMode.ROW):
np.testing.assert_array_equal(data.get_weight(), w)

def test_base_margin(self):
set_base_margin_info(pd.DataFrame, xgb.DMatrix, "hist")
run_base_margin_info(pd.DataFrame, xgb.DMatrix, "cpu")

def test_cv_as_pandas(self):
dm, _ = tm.load_agaricus(__file__)
Expand Down

0 comments on commit bc99eb5

Please sign in to comment.