vaibhavbichave / Phishing-URL-Detection

Phishers use the websites which are visually and semantically similar to those real websites. So, we develop this website to come to know user whether the URL is phishing or not before using it. URL - http://phishing-url-detector-api.herokuapp.com/
140 stars 98 forks source link

> when I run the code it shows like this on the web page... is it because of the version issue... #5

Closed TAMILSELVAM-A closed 1 year ago

TAMILSELVAM-A commented 1 year ago
          > when I run the code it shows like this on the web page... is it because of the version issue...

image

I use python version 3.11.2

HOW CAN I SOLVE THIS ERROR??

Originally posted by @TAMILSELVAM-A in https://github.com/VaibhavBichave/Phishing-URL-Detection/issues/4#issuecomment-1510843459

pavanl1122 commented 1 year ago

how to resolve this issue?

TAMILSELVAM-A commented 1 year ago

how to resolve this issue?

change the import statement of the model before dump that model...

{ from xgboost import XGBClassifier (##CHNAG THIS IMPORT SATEMENT INTO THIS) gbc = GradientBoostingClassifier(max_depth=4,learning_rate=0.7) gbc.fit(X_train,y_train) }

{ from sklearn.ensemble import GradientBoostingClassifier (IMPORT THIS FILE ) gbc = GradientBoostingClassifier(max_depth=4,learning_rate=0.7) gbc.fit(X_train,y_train) }