Icon

Synthetic Data Generator Example on Titanic Data

This workflows generates synthetic numeric and nominal columns based on the distribution and statistics of the original columns and optionally the relationships between columns in the original data. It either replaces the original data with synthetic values (Example 1), or augments the original data by repeatedly generating synthetic data from it. Furthermore, it evaluates the quality of the data generation by performing an ANOVA test on the synthetic vs. original data.

Annotations and comments
  • Example workflow demonstrating the data generator components
  • Example 1: Anonymize data, keep known dependencies
  • My workflow
  • Compare means and variances in original/generated samples
  • Example 2: Augment data
  • Read titanic data
  • Only age, sex, fare
  • bin numeric columns (bins + equal width)
  • seed
  • empty table?
  • 0: integer 1: long
  • double
  • newvalue
  • req. number of examples > number of rows
  • dependency column?
  • check if numeric column in there
  • dependency columns
  • dependency
  • column to generate
  • one dependency column
  • top: dependency columns bottom: other columns
  • alpha = (mean/sd)^2
  • beta = variance/ mean
  • peak=(alpha-1)*beta
  • uniform gaussian gamma
  • NaN > ?
  • combined string row id
  • only newvalue and row id
  • rows in groups > min-size
  • top: undersampling middle: nothing
  • add rows from previous iteration if exists
  • rows missing
  • rows in original
  • port
  • end loop if the required size is reached
  • under-/ oversampling
  • add row ids when oversampled
  • exclude groups < min-size
  • int: 0 long: 1 double: 2
  • int/long: 0 double: 2 (number of decimals)
  • data_type port_int
  • select noice
  • generated column
  • min size of a dependency group
  • bins for numeric dep column
  • seed-num
  • min-max
  • max
  • min
  • [numeric-column]
  • mean
  • sd
  • Aggregation column "Row0"
  • 0: uniform 1: Gaussian 2: Gamma
  • activate next node
  • Column 0: mean Column 1: sd
  • min,max peak,beta
  • alpha=(mean/sd)^2
  • beta=variance/mean
  • peak= (alpha-1)*beta
  • min,max peak scale
  • min,max, mean,std
  • mean, std
  • top: undersampling middle: nothing bottom: oversampling
  • oversampling
  • uniform use min,max
  • for aggregations > column "rowID"
  • 1: uniform 2: Gaussian 3: Gamma
  • output statistics
  • add dependency groups
  • add dependency columns
  • min, max as column names
  • min,max of column to generate
  • to double
  • bin numeric columns (bins+equal width)
  • remove not binned columns
  • get original row order
  • dummy node
  • if no dependency columns > top
  • dependency columns into one
  • only generated column
  • activate the bottom input only if necessary
  • rowID first
  • row ID as first
  • top: no dependency
  • group size > 0
  • gen. value dep. group
  • gender and dep. group in the same row
  • select noise
  • required category size
  • number of bins
  • row index
  • new cat
  • rename new cat with the old column
  • count of dependency groups
  • only rows in large enough groups
  • nominal values > min-size
  • exclude rows in roups < min-size
  • missing value "missing1234"
  • add rowID column for aggregations
  • new cat only
  • return generated rows/ empty table
  • calculate counts
  • dist of nominal column in dependency groups
  • rows in the current group
  • empty table

Nodes

Extensions

Links