MOSTLY AI supports two data structures: single subject tables and subject table - linked table datasets. The guidelines below help you convert your dataset into one of these formats, ensuring a carefree synthetic data generation process.
|CSV files have a maximum filesize of 5 Gb if you upload them with MOSTLY AI’s user interface.|
Make sure that the file names and column names don’t contain any special characters. Here you can think of
, or similar characters.
Escape sequences and characters, such as
\\, etc., may negatively affect the job’s performance. We recommend removing them.
Verify that your dates and timestamps follow the ISO standard.
Ensure that your CSV files use commas (,) or semicolons (;) as column separators.
When synthesizing a subject table and a linked table, please ensure that you don’t have duplicate primary keys in the subject table.
We recommend that subject tables have more than 5000 subjects.
The minimum size is 100 subjects. However, the more subjects there are available, the better the training algorithm can generalize their features, which results in a decreased privacy risk.
The maximum number of subjects and columns is determined by your license.
Each subject must refer to a distinct real world entity.
Each row describes one subject.
Each row can be treated independently.
The rows' order carries no information, and the contents of one row do not affect other rows.
Please ensure that the column names do not contain any privacy-sensitive information.
Avoid column names such as
vendor_b_purchases, etc.. Not only would vendor names already appear in the metadata, but they could also slip through rare category protection (e.g., there’s a
vendor_acolumn, but this vendor only appeared five times in the whole dataset). You can solve this problem by simply having a
vendorcolumn with the vendor names in it.
A subject is an entity or individual whose privacy you are going to protect. A subject table, therefore, contains records that describe these subjects.
Each row in a subject table describes the profile of a unique subject. They contain fields that tell something about them, such as their name, gender, height, place of residence, or income.
In practice, two or more real-world entities may have identical features when they’re described as subjects in the subject table. Conversely, a customer can make several online purchases using different accounts or without logging in to their account. This results in a subject table that contains multiple records with different identifiers for the same person.
MOSTLY AI delivers the most accurate results if the subject table reflects the real world as closely as possible. If real-world entities share identical properties, then this should be left as such. But if multiple records contain the same contact details, it’s plausible that it’s the same person and could be considered for merging.
Below you’ll find an example of a subject table. You can use it as a guideline to create your own.
This structure is ideal for processing lists, sequences, or time-series data.
It consists of two tables, a subject table that satisfies the requirements stated in section 1.1. Single subject table, and a linked table.
Each record in the subject table must have a unique ID number (primary key).
Each record in the linked table must contain the ID of the subject that it’s linked to.
Avoid unnecessarily large numbers of records per subject.
MOSTLY AI can process lists, sequences, or time-series data when they’re formatted as subject table-linked table datasets. Here you can think of shopping lists, insurance claims, patient health records, or time-series data, such as online shopping journeys, purchase histories, or financial transactions.
Linked tables contain events, and MOSTLY AI processes these as properties of the subjects in your subject table. Therefore, they cannot exist without subjects, but subjects can have zero events. This relationship guarantees the subjects` privacy during synthesization, which is why these types of data need to be formatted into a subject table and a separate linked table.
The image below shows the columns that these tables must have to make this relationship. Each record in your linked table must have a field that specifies to which subject it belongs.
MOSTLY AI automatically links two tables if the subject table contains a column called
Below you’ll find an example of a basic customer journey dataset with two subjects. Alice Doe made a purchase after visiting the store twice, and Bob Joe was flagged as a churned customer after he no longer showed up for five days.
id firstName lastName 1 Alice Doe 2 Bob Joe
users_id event_time event_type 1 2020-04-01 visit 1 2020-04-03 visit 1 2020-04-05 purchase 2 2020-03-13 visit 2 2020-03-18 churn
|If you have a single table with event data, please split it into a subject and linked table accordingly.|
We recommend splitting the contents of your fields by their features whenever possible.
For instance, the column
street address may contain addresses that all have the same form —
123 example street. In this case, you can split them into the street name and number. MOSTLY AI can then treat street names as a text column and the numbers as numerical variables, which results in improved accuracy of the generated synthetic data.
|To learn how your CSV file needs to be formatted, please read the CSV file requirements for further details.|