Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,21 @@ Overall, the data does not meet the criteria for Naive Bayes because the feature
|
|
| 15 |
|
| 16 |
Using decision trees for this case is crucial because it offers clear interpretability of the classification logic. It will be able to differentiate legitimate vs illegitimate websites.
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
### Hyperparameters
|
| 19 |
|
| 20 |
<details>
|
|
|
|
| 15 |
|
| 16 |
Using decision trees for this case is crucial because it offers clear interpretability of the classification logic. It will be able to differentiate legitimate vs illegitimate websites.
|
| 17 |
|
| 18 |
+
## How to use the model
|
| 19 |
+
|
| 20 |
+
In your notebook, paste the following code:
|
| 21 |
+
|
| 22 |
+
from huggingface_hub import hf_hub_download
|
| 23 |
+
hf_hub_download(repo_id="CSC310-fall25/training_classification_phishing", filename="model.pkl",local_dir='.')
|
| 24 |
+
dt_loaded = sio.load('model.pkl')
|
| 25 |
+
|
| 26 |
+
This will load the model.
|
| 27 |
+
|
| 28 |
+
You can download the appropriate test data by pasting this code:
|
| 29 |
+
|
| 30 |
+
hf_hub_download(repo_id="CSC310-fall25/training_classification_phishing", filename="phishing_test.csv",local_dir='.')
|
| 31 |
+
phishing_test = pd.read_csv('phishing_test.csv')
|
| 32 |
+
|
| 33 |
### Hyperparameters
|
| 34 |
|
| 35 |
<details>
|