Skip to content
Ho Dinh Tri

Interactive lab

Small experiments & visual explainers

Client-side demonstrations built from my engineering and research projects. Illustrative examples are explicitly labeled so they are never confused with raw experimental outputs.

1. Why IaC scanners disagree

Read the IaC benchmark case study

Same file, different verdicts

Illustrative example

Three hypothetical scanners read one Kubernetes manifest. Switch views to see why “no finding” is not “pass”.

apiVersion: v1kind: Podmetadata:  name: webspec:  containers:    - name: app      image: nginx:latest      securityContext:        privileged: true
Illustrative verdicts from three hypothetical scanners per security concept
ConceptScanner AScanner BScanner C
FAILFAILFAIL
FAILno findingFAIL
FAILFAILno finding
FAILno findingFAIL
no findingFAILFAIL

Image uses :latest

Scanner B prints nothing because it has no rule for image tags. Its silence says nothing about the file, so the label is not applicable, not pass.

Read naively, the 4 silent cells look like passes.

Illustrative example, not measured data: the scanners are anonymous and the verdicts are invented to show the kinds of disagreement the study looks at. The real work compares 11 Kubernetes scanners on about 9,000 manifests and rescans ~35k Terraform files from 600+ repositories with Checkov and KICS.

2. Multilingual synthetic identity sampling

Read the meddies-faker case study

Benchmark against Faker 40.44

Verified metrics

100,000 generated profiles per country. Slot-type results come from 5,000 Meddies-PII v3 skeletons per language.

Evaluation note: Share of generated phone numbers that are valid mobile numbers for the country.

Faker is the baseline bar; meddies-faker is the accent bar. For age-distribution error, lower is better.

Country-aware synthetic identity preview

Synthetic example

Inspect why multilingual PII training requires country-specific name ordering, scripts, and ID formats.

Full name
Nguyễn Thị Minh Anh
Phone
+84 90 4xx xxxx
Identifier
079 2 04 xxxxxx (CCCD)

Localization challenge: Family name comes first, middle names carry gender and generation patterns, and the first CCCD digits encode province, century and gender, and birth year.

Fictional, hand-written records showing format differences, not real meddies-faker output. Digits are masked so no value can match a real person. The library samples from sourced census, survey and hospital statistics in 18 country packs and 20 languages.

3. Imbalanced ML decision thresholds

Read the fraud detection case study

Held-out test results

Verified metrics

Model vs random guessing on 200 held-out claims. In 5-fold cross-validation: PR-AUC 0.700, ROC-AUC 0.852.

Evaluation note: PR-AUC starts at 0.245 for random guessing here (about one claim in four is fraud), which is why it is reported instead of accuracy.

Class balancing was chosen inside cross-validation (XGBoost class weighting beat SMOTE), and the test claims were scored once, at the end. Solo personal project, Apr - Oct 2026.

Decision threshold trade-off explorer

Illustrative example

Explore how shifting the probability threshold balances caught fraud against investigator review load. The real threshold is chosen to minimise expected cost.

Lower threshold catches more fraud; higher threshold reduces false alarms

Simulated fraud recall

66%

Simulated precision

41%

Claims flagged for review

33%

Educational simulation of the precision-recall trade-off, not the model’s measured curve.