Full API

.predict()

Apply the trained pipeline to new rows. The target column is not needed.

Signature

python
predictions = model.predict(new_data)

Example

python
new_passengers = pd.read_csv("new_passengers.csv")
predictions = model.predict(new_passengers)
print(predictions)
# 0    1
# 1    0
# 2    1

Returns

A pandas.Series with one prediction per input row.