Last active
January 16, 2022 18:10
-
-
Save shaypal5/347b80dcd9620f224cd0e3a9c242c10e to your computer and use it in GitHub Desktop.
Deepchecks Phishing URLs Example: Preprocessing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from deepchecks.datasets.classification.phishing import get_url_preprocessor | |
pipeline = get_url_preprocessor() | |
train_df = pipeline.fit_transform(raw_train_df) | |
train_X = train_df.drop('target', axis=1) | |
train_y = train_df['target'] | |
test_df = pipeline.transform(raw_test_df) | |
test_X = test_df.drop('target', axis=1) | |
test_y = test_df['target'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment