Skip to main content

Clean up a messy CSV

Problem: load an export whose columns are all strings and give each a proper type. Uses: Khaos and pandas.

Join two exports with no documentation

Problem: two systems export tables and nobody knows which columns link them. Uses: Khaos and pandas.

Deduplicate customer records

Problem: the same person appears under slightly different names and emails. Uses: Khaos and pandas.

Flag unusual transactions

Problem: surface the handful of rows worth a human look. Uses: Khaos alone.

Inputs and outputs for each model

These are real outputs of the v1 models, run through their exported ONNX files on held-out examples. The shapes listed are the exact ONNX inputs and outputs; batch and other named sizes are dynamic.

tab_column_types

Up to 24 sampled cells of a column in (encoded as byte ids with encode_column, shape (1, 24, 40)), a probability for each of 91 semantic types out. Six held-out columns of different types are shown with the model’s top two guesses. Model inputs: chars int64 [batch, cells, 40]
Model outputs: logits float32 [batch, 91]; vector float32 [batch, 256]
Input
Output

tab_key_matching

Two columns in (sampled cells of each plus 11 overlap features from pair_features), the probability that column A is a foreign key of column B out. Model inputs: chars_a int64 [batch, cells, 40]; chars_b int64 [batch, cells, 40]; features float32 [batch, 11]
Model outputs: logit float32 [batch]
Input
Output

tab_entity_dedupe

Two records in, each written as column: value | column: value and tokenized as a pair, the probability that they describe the same entity out. Three duplicate and three non-duplicate bibliographic pairs from the held-out DBLP-ACM benchmark are shown. Model inputs: input_ids int64 [batch, seq]; attention_mask int64 [batch, seq]
Model outputs: logit float32 [batch]
Input
Output

tab_anomaly_scoring

A row of up to 64 scaled numeric cells in. Hide 25% of the cells at random, let the model predict them, and repeat 24 times: the average error on the hidden cells is the row’s anomaly score (higher is more unusual). Scores vary a lot from row to row, so 60 normal and 60 anomalous rows of the held-out 6_cardio table are summarized. Model inputs: values float32 [batch, 64]; visible float32 [batch, 64]; present float32 [batch, 64]; col_ids int64 [batch, 64]
Model outputs: recon float32 [batch, 64]
Input
Output