# Model description
This is a Decision tree model trained on a phishing URL detection dataset. The dataset contains features from URLs and their webpage content. The model is trained to classify whether a website is legitimate (label 1) or an act of phishing (label 0).
## Intended uses & limitations
This model is made for educational purposes and is not ready to be used in production.
## Training Procedure
With this dataset, I will be using a decision tree to predict whether certain websites are legitimate or an act of phishing. This is because Naive Bayes assumes feature independence, which is not true for this case. Decision trees split data based on actual patterns, which is useful for phishing detection.
Overall, the data does not meet the criteria for Naive Bayes because the features are not independent.
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 and also give an answer to why.
### Hyperparameters
Click to expand
| Hyperparameter | Value |
| :----------------------: | :----: |
| ccp_alpha | 0.0 |
| class_weight | None |
| criterion | gini |
| max_depth | 2 |
| max_features | None |
| max_leaf_nodes | None |
| min_impurity_decrease | 0.0 |
| min_samples_leaf | 0.2 |
| min_samples_split | 0.2 |
| min_weight_fraction_leaf | 0.0 |
| monotonic_cst | None |
| random_state | 67 |
| splitter | random |
DecisionTreeClassifier(max_depth=2, min_samples_leaf=0.2, min_samples_split=0.2,random_state=67, splitter='random')In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
DecisionTreeClassifier(max_depth=2, min_samples_leaf=0.2, min_samples_split=0.2,random_state=67, splitter='random')