Skip to content

Commit

Permalink
fix: pass input_data in xgboost integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko committed Jul 29, 2024
1 parent 5dc247c commit 4b6fd17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/integration/api/test_main_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ def test_pandas_input_for_api():

train_features = pd.DataFrame(train_data.features)
train_target = pd.Series(train_data.target.reshape(-1))

test_features = pd.DataFrame(test_data.features)
test_target = pd.Series(test_data.target.reshape(-1))

# task selection, initialisation of the framework
Expand All @@ -177,7 +175,7 @@ def test_pandas_input_for_api():
baseline_model.fit(features=train_features, target=train_target, predefined_model='xgboost')

# evaluate the prediction with test data
prediction = baseline_model.predict(features=test_features)
prediction = baseline_model.predict(features=test_data)

assert len(prediction) == len(test_target)

Expand Down

0 comments on commit 4b6fd17

Please # to comment.