You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sven Geboers
afdfe298cd
fix: switch to Lasso regression for better axis stability
...
- Replace Ridge with Lasso (L1) regression to concentrate weights on
fewer dimensions, improving stability measurement
- Default alpha changed to 0.1 (Lasso needs smaller values than Ridge)
- Fix dimension alignment issues in semantic drift and centroid computation
- Add dimension alignment in compute_semantic_drift and _generate_report
Results with Lasso alpha=0.1:
- 9/10 axes now stable (>0.7): [1, 2, 3, 4, 5, 7, 8, 9, 10]
- Axis 6 reordered (0.25-0.5 range)
- Axis 8 shows inflection points in 2016→2017→2018
- Overtone shift detected on all stable axes (1.3-1.9 range)
2 months ago
.github/ workflows
chore(deploy): rewrite ansible for motief on motief.sgeboers.nl, remove drone
3 months ago
.mindmodel
chore: confirm deletion of stale files
2 months ago
analysis
fix: correct axis 4 theme to match actual party positions (NSC/BBB vs D66/CDA/JA21)
2 months ago
ansible
fix: add health check wait to ansible deploy
2 months ago
data
Add debug st.info before st.plotly_chart to diagnose invisible chart
3 months ago
docs
docs: add SVD theme divergence solution doc and validation hook
2 months ago
migrations
feat(similarity): add precomputed similarity cache, fix fusion N+1, add 429 retry
3 months ago
packages/@ansible/ example
feat(ansible-example): add @ansible/example package, tests, CI, publish & deploy workflows, docs and changelog
3 months ago
pages
UI improvements + add axis orientation test
3 months ago
pipeline
chore: commit remaining modified files from refactoring
2 months ago
reports/ drift
feat: add motion semantic drift analysis script
2 months ago
scripts
fix: switch to Lasso regression for better axis stability
2 months ago
similarity
Refactor tests: replace sys.modules hacks with real DI + in-memory DB
3 months ago
src
Add debug st.info before st.plotly_chart to diagnose invisible chart
3 months ago
tests
refactor: replace axis stability with Ridge regression weights
2 months ago
thoughts
chore: commit remaining modified files from refactoring
2 months ago
tools
Add debug st.info before st.plotly_chart to diagnose invisible chart
3 months ago
.gitignore
chore: commit remaining modified files from refactoring
2 months ago
.pre-commit-config.yaml
chore(format): add pre-commit and formatter configs
3 months ago
.python-version
feat(pipeline): implement parliamentary embedding pipeline MVP
3 months ago
AGENTS.md
docs: add AGENTS.md with docs/solutions reference and SVD label best practice
2 months ago
ARCHITECTURE.md
chore: commit remaining modified files from refactoring
2 months ago
CODE_STYLE.md
feat(ansible-example): add @ansible/example package, tests, CI, publish & deploy workflows, docs and changelog
3 months ago
Dockerfile
feat: add StemAtlas Streamlit app, explorer, Docker deployment, blog charts
3 months ago
Home.py
UI improvements + add axis orientation test
3 months ago
README.md
feat(ansible-example): add @ansible/example package, tests, CI, publish & deploy workflows, docs and changelog
3 months ago
ai_provider.py
feat: complete parliamentary embedding pipeline with full historical coverage
3 months ago
api_client.py
feat: complete parliamentary embedding pipeline with full historical coverage
3 months ago
app.py
feat(pipeline): implement parliamentary embedding pipeline MVP
3 months ago
config.py
feat(pipeline): implement parliamentary embedding pipeline MVP
3 months ago
database.py
fix: quiz seed from motions with actual individual MP votes
3 months ago
docker-compose.yml
deploy to server
3 months ago
explorer.py
fix: add semantic left_pole/right_pole labels to SVD axes
2 months ago
explorer_helpers.py
refactor(trajectory): fix code quality issues in centroid diagnostics
3 months ago
pyproject.toml
feat: add motion semantic drift analysis script
2 months ago
requirements-dev.txt
chore(deps): move pytest to dev-dependencies
3 months ago
streamlit_index.html
Add debug st.info before st.plotly_chart to diagnose invisible chart
3 months ago
summarizer.py
feat(pipeline): implement parliamentary embedding pipeline MVP
3 months ago
uv.lock
feat: add motion semantic drift analysis script
2 months ago
stemwijzer
A small project that uses QWEN embeddings for semantic features. The codebase includes an example Ansible package under packages/@ansible/example and helper scripts for deployment.
Embeddings
This project uses QWEN embeddings (model: qwen/qwen3-embedding-4b) via OpenRouter-compatible APIs.
Preferred environment variable: OPENROUTER_API_KEY with a fallback to OPENAI_API_KEY.
Publishing and deploying the Ansible package
Package location: packages/@ansible/example — this contains the Ansible playbooks and packaging used by CI.
To publish the package (CI): create a git tag for the version and provide NPM_TOKEN as a secret to the CI runner so it can publish to npm.
To deploy the package (CI): set the following repository secrets in your CI pipeline:
DEPLOY_HOST (default: motief.sgeboers.nl)
DEPLOY_SSH_KEY (private key for the webapps user)
DEPLOY_USER (default: webapps)
Defaults
DEPLOY_HOST: motief.sgeboers.nl
DEPLOY_USER: webapps
See docs/deployment/ansible-package-deploy.md for more detailed deploy instructions and defaults.