scikit-learn tag

21 questions


1 answers
75 views
0
The length of the data has been reduced since the one-hot encoder was turned.

import pandas as pdfrom sklearn.model_selection import train_test_splitmushroom = pd.read_csv(../data/mushroom.csv, header = None)mushroom[0] = mushroom[0].replace(p, float(1))mushroom[0] = mushroom[0...

2 years ago
« - 3 -

© 2024 OneMinuteCode. All rights reserved.