Do not return internal value for get_params. (#8634)

This commit is contained in:
Jiaming Yuan
2023-01-05 17:48:26 +08:00
committed by GitHub
parent 26c9882e23
commit e68a152d9e
4 changed files with 73 additions and 47 deletions

View File

@@ -115,7 +115,6 @@ class TestPandas:
# test Index as columns
df = pd.DataFrame([[1, 1.1], [2, 2.2]], columns=pd.Index([1, 2]))
print(df.columns, isinstance(df.columns, pd.Index))
Xy = xgb.DMatrix(df)
np.testing.assert_equal(np.array(Xy.feature_names), np.array(["1", "2"]))