Spaces:
Sleeping
Sleeping
Commit History
-
Rename 分析侠 to Prefero across all source files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c7ac04c
-
Remove login gates, make app fully open-source
Strip MUCHE member login, invitation codes, OTP/SMTP, password hashing, and fuzzy name matching. Everyone can now use the app freely with just a display name. Admin dashboard remains protected behind PREFERO_ADMIN_PASSWORD. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>d5622b5
-
Add HTML report, cross-validation, admin analytics, auto-adaptive data, Slowbro pill fix
- Report page (page 6): interactive HTML report with plotly charts, collapsible sections, utility function formulas, predictions, distribution curves, WTP bar charts - Cross-validation: K-fold CV engine (panel-level splits, OOS log-likelihood, hit rate), UI in Compare page section 8, supports all model types (CL/MXL/GMNL/LC) - Admin analytics: instrumented all pages with log_activity(), rebuilt admin dashboard with charts, filters, model usage stats, error log - Auto-adaptive data: auto-detect wide/long format, guess structural columns, one-click conversion with confirmation card - Slowbro status pill: fixed scroll-away bug using Streamlit header CSS injection - Added ROADMAP.md for future planning (cloud GPU, email OTP, AI report) - 7 new CV tests (scripts/test_cv.py), all 45 tests passing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c62aef1 -
Add full Streamlit app, auth, queue, community, and deployment config
- Multi-page Streamlit app: Data upload, Model config, Results, Compare, Bootstrap, Community - Email OTP + invitation code authentication with username selection - Concurrent user queue (5 slots, 2min idle timeout) with cultural waiting facts - SQLite-backed discussion forum (posts + replies) - Latent Class EM algorithm with performance optimizations (maxiter 300, optimizer reuse) - Bootstrap inference page with distribution histograms - Slowbro mascot branding, multilingual scrolling banner - HF Spaces deployment config (.streamlit/config.toml) - 38 e2e tests + 81 module tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>5ed1762
-
Generalize interaction terms to N-way, any column type
Replace the restrictive HeterogeneityInteraction (2-way, attribute x demographic only) with a flexible InteractionTerm dataclass that supports arbitrary N-way interactions between any numeric columns. This enables attribute x attribute (e.g. price x time), 3-way+ interactions, and removes the respondent-constant restriction on interaction columns. - config.py: Add InteractionTerm(columns: tuple[str, ...]) with name property and validation; keep HeterogeneityInteraction for backward compat - pipeline.py: Generalize interaction loop to multiply N columns together - Model.py: Replace demographic-only UI with flexible interaction builder using st.form + session state (add/remove terms, any numeric column) - test_e2e.py: Update tests 22/26 to use InteractionTerm; add tests 30 (3-way interaction) and 31 (attribute x attribute); all 31 tests pass Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b084d07