I\'m working on the following code for performing Random Forest Classification on train and test sets;
from sklearn.ensemble import RandomForestClassifier
fr
It seems like the header that includes the column names have 1 more column than the data itself (1435 columns on header vs. 1434 on data).
You could either:
1) Eliminate 1 column from the header that doesn't make sense with data
OR
2) Use the skip header from genfromtxt()
for example, np.genfromtxt('myfile', skip_header=*how many lines to skip*, delimiter=' ')
more information found in the documentation.