Skip to content
View Allan-dq's full-sized avatar

Block or report Allan-dq

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Allan-dq/README.md

Hi, I'm Qin (Allan) Dai 👋

Software engineer working across AI / computer vision, backend systems and forecasting & quantitative modeling.
M.S. Applied Mathematics & Statistics, Johns Hopkins University · Los Angeles, CA

  • Now: Software Engineer at Newegg, where I build and run production computer-vision and warehouse automation services
  • Before: credit research & risk analytics at Allianz Asset Management, data analytics at Allianz Partners, front-end engineering at Leroy Merlin China
  • Open source: merged contributions to QuantLib (C++ core and Python bindings), Microsoft PyRIT, statsmodels, PyMC-Marketing and cellpy; details below

Featured projects

Project What it does Stack
FreightLens AI · live demo Freight document and video verification. A pallet detector trained on real warehouse photos (0.55 AP50 on unseen sessions) runs in the browser; a LayoutLMv3 form model reaches 0.80 entity F1 on FUNSD Python · PaddleOCR · LayoutLMv3 · YOLO · FastAPI
Alphabet FP&A Forecast · exec summary Quarterly revenue and P&L forecast from 41 SEC XBRL filings, with a SQL reporting layer and variance bridges. Backtest WAPE 3.2%, vs 14.0% for seasonal naive and 4.0% for zero-shot TimesFM Python · statsforecast · DuckDB · BigQuery
OpenSync Event-driven partner inventory sync (idempotency, outbox, retries/DLQ, LLM-assisted schema mapping). CI replays duplicates, stale versions and an outage → DLQ → replay on real PostgreSQL, Kafka and Redis Java 21 · Spring Boot · Kafka · PostgreSQL · Redis
Mortgage Prepayment Modeling Leakage-aware prepayment hazard on Freddie Mac loan-level data with calendar-time backtests. It drives a QuantLib Hull-White Monte Carlo MBS valuation (OAS, duration, convexity) on an illustrative pool Python · scikit-learn · QuantLib
CreatorKit AI Seven schema-governed agents turn a design brief into a validated, token-compliant prototype; ships an MCP-compatible design-system tool server TypeScript · React · Zod · Playwright
Meridian MMM Case Study Marketing-mix model on Google Meridian's simulated geo data, read out for finance: ROI vs marginal ROI with 90% credible intervals. The last 10% of the budget returns $0.61 per $1 Python · Meridian · JAX
Battery Cycling Data Pipeline ETL, data-quality checks and anomaly detection on 119M rows of public battery-cycler data (169 cells). Reproduces the Severson 2019 early-cycle life model: RMSE 86 cycles (paper: 91) Python · cellpy · DuckDB · MLflow · Docker
Field Robot Log Evaluation Ingest, data-quality checks and evaluation for all 42 public GrandTour legged-robot missions (ETH Zurich), scored against a total-station prism with block-bootstrap intervals. Triage traced one mission's 12× error to a single bad ground-truth sample; a CI regression gate catches 14 of 14 seeded faults Python · DuckDB · Parquet · evo · KISS-ICP

More projects: SoCal ZIP Market Score (0–100 ZIP-by-period market score, nested cross-validation) · Thai Stock Market Chatbot (LLM Q&A with live SET data)

Open-source contributions

  • cellpy (battery-cycler data toolkit): #1201, merged. The Neware .nda/.ndax loader now keeps the measured cell temperature and other auxiliary channels, which it used to drop; tested on the repository's own Neware fixture (issue #1184).
  • QuantLib-SWIG (Python bindings for the QuantLib quant-finance library): #955, merged. Exposes the NaturalCubicFitting bond-curve fitting method to Python and adds the first Python tests for fitted bond discount curves.
  • QuantLib (C++ quant-finance library): #3063 and #3086, merged. #3063 adds the first tests for NaturalCubicFitting (evaluation, knot validation, calibration to bond prices) and fixes a bug they exposed: a negative knot time moved the d(0) = 1 constraint off t = 0, so the constructor now rejects it. #3086 deprecates unconstrained bond-curve fits (constrainAtZero = false): bond prices fix only ratios of discount factors, so such a fit silently returned a zero discount curve or one at an arbitrary level (d(0) = 3.49 and a -22% zero rate in one example).
  • statsmodels (statistics library for Python): #10738 and #11197, merged. #10738 adds krippendorff_alpha to stats.inter_rater: agreement among any number of raters, with missing ratings, for nominal, ordinal, interval and ratio data. Results match the original paper and R. #11197 adds a bootstrap confidence interval for it (resampling subjects); it matches R's irr resample by resample.
  • PyMC-Marketing (Bayesian marketing-mix and customer-lifetime-value library): #3347, merged. HSGP recommendations now size the boundary L from the data's half-range, as approx_hsgp_hyperparams defines it, instead of its center; before, front-loaded time indexes could fall outside [-L, L].
  • PyRIT (Microsoft's AI red-teaming toolkit): #4270 and #4304, merged. I reported that the combined Krippendorff alpha counts every LLM-judge trial as a rater, so repeated trials can inflate it (issue #4129); #4270 explains the combined vs. gold-vs-model alphas in the docs, docstring and GUI, and #4304 makes the alpha helpers keyword-only.

Toolbox

  • Languages: Python · Java · TypeScript · C# · C++ · SQL
  • ML & CV: scikit-learn · OpenCV · YOLO · PaddleOCR · LayoutLMv3 · MLflow · LLM-judge evaluation (inter-rater agreement) · odometry evaluation (evo)
  • Backend & infra: FastAPI · Spring Boot · Kafka · PostgreSQL · Redis · Docker · Kubernetes
  • Quant & finance: forecasting (statsforecast, hierarchical reconciliation) · FP&A modeling · marketing-mix modeling (Meridian) · SQL (DuckDB, BigQuery) · Data Studio dashboards · QuantLib (MBS/OAS, fitted bond curves) · credit risk · time-series validation
  • AI-assisted development: ship with AI coding agents (Claude Code, MCP tooling) under test-gated review

Contact

LinkedIn · [email protected]

Pinned Loading

  1. freightlens-ai freightlens-ai Public

    Reproducible freight document and visual verification with OCR, pallet detection, tracking, and anomaly reconciliation

    Python

  2. alphabet-fpa-forecast alphabet-fpa-forecast Public

    Hierarchical quarterly revenue and P&L forecast for Alphabet from 41 SEC XBRL filings: statsforecast with hierarchical reconciliation, DuckDB + BigQuery SQL layer, backtest vs TimesFM, variance bri…

    Python

  3. OpenSync OpenSync Public

    AI-assisted, event-driven partner inventory synchronization platform built with Java, Spring Boot, Kafka, PostgreSQL, Redis, and LLM-assisted schema mapping.

    Java

  4. mortgage-prepayment-modeling-freddie-mac mortgage-prepayment-modeling-freddie-mac Public

    Leakage-aware mortgage prepayment modeling with public Freddie Mac SFLLD data and QuantLib OAS valuation

    Python

  5. CreatorKit-AI CreatorKit-AI Public

    Agentic design system and generative asset studio for creator workflows.

    TypeScript

  6. meridian-mmm-case-study meridian-mmm-case-study Public

    Marketing-mix model with Google Meridian, read out for finance: channel ROI vs mROI with credible intervals, a 10% budget reallocation, budget optimization and budget-level test (simulated data)

    Python