df
--PassengerID (passenger ID) --Survived (train data only) --Pclass (room class)
When I had an item like this
x = df [["Item name 1", "Item name 2", "Item name 3", "Item name 4"]]
Add the item you want to select, such as [["Item"]].
Since the objective function has only one item,
t = df ["objective function item"]
With this kind of feeling, I will train the model after this.
Recommended Posts