Python Forum
GradientBoostingClassifier and hashed values
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GradientBoostingClassifier and hashed values
#1
Hi,

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)  
Reply
#2
Is that from some sort of package? What's a GradientBoostingClassifier?
Reply
#3
Hi nilamo,

its a method in machine learning to classify information to see if they are of use or not.

from sklearn.ensemble import GradientBoostingClassifier
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020