* DomainBasedMapper
*SDV Enterprise Feature. This feature is available to our licensed users and is not currently in our public library. To learn more about the SDV Enterprise and its extra features, visit our website.
The DomainBasedMapper
creates and applies a consistent mapping between real emails and fake, synthetic emails. The mapping preserves the domain of the email. That is, emails belonging to a domain are mapped to fake emails in the same domain.
Parameters
preserved_domain
: Which parts of the overall email domain to preserve during the transformation phase
(default) | Preserve the full domain, which is everything after the @ sign. For example if the email is |
| Extract only the top domain, which is everything after the . character. For example if the email is |
obfuscate_emails
: Control whether the synthetic email looks realistic or follows random patterns.
(default) | Create realistic-looking usernames and emails such as |
| Obfuscate the usernames and emails to create random values such as |
Setting this to False
may result in emails that correspond to real user emails by complete coincidence. If you are worried about creating emails that accidentally correspond to real users, please set this toTrue
.
Examples
Attributes
After fitting the transformer, you can access the learned values through the attributes.
mapping
: A dictionary that maps the original, real emails to the new, fake email
Last updated