EmailDomain¶
-
class
getml.preprocessors.
EmailDomain
[source]¶ Bases:
getml.preprocessors.preprocessor._Preprocessor
EmailDomain extracts the domain from e-mail addresses.
For instance, if the e-mail address is ‘some.guy@domain.com’, the preprocessor will automatically extract ‘@domain.com’.
The preprocessor will be applied to all
unused_string
. columns that have the unit “email”.domain = getml.preprocessors.EmailDomain() pipe = getml.pipeline.Pipeline( population=population_placeholder, peripheral=[order_placeholder, trans_placeholder], preprocessors=[domain], feature_learners=[feature_learner_1, feature_learner_2], feature_selectors=feature_selector, predictors=predictor, share_selected_features=0.5 )