Jan-18-2018, 03:27 PM
Hi,
I noticed that my GradientBoostingClassifier treats my hash content as values and not
as class. Why would that be?
I noticed that my GradientBoostingClassifier treats my hash content as values and not
as class. Why would that be?
test_df['agency_name'] = test_df['agency_name'].apply(hash) test_df['inspector_name'] = test_df['inspector_name'].apply(hash) test_df.fillna(value=0, inplace=True) X_train, X_test, y_train, y_test = train_test_split(test_df.iloc[:,:-1], test_df.iloc[:,-1], random_state=0) clftwo = GradientBoostingClassifier(random_state = 0) clftwo.fit(X_train1, y_train1)