Skip to content

Instantly share code, notes, and snippets.

@shaypal5
Last active January 16, 2022 18:10
Show Gist options
  • Save shaypal5/347b80dcd9620f224cd0e3a9c242c10e to your computer and use it in GitHub Desktop.
Save shaypal5/347b80dcd9620f224cd0e3a9c242c10e to your computer and use it in GitHub Desktop.
Deepchecks Phishing URLs Example: Preprocessing
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