feat(region): idee/proposte regionali /regione/idee (#230, F3) - #246
Merged
Conversation
Motore puro region/ideas.py: aggrega i candidati Copilota con la copertura reale dei comuni → priorita = valore pesato dal gap (un dataset mancante in piu comuni e di alto valore sale in cima; es. 'rifiuti mancante in 12/30 comuni'). Candidati iniettati (nessuna dipendenza dal catalogo nel core). Backend: /regione/idee usa prioritize(load_catalog()) + regional_ideas sui comuni della regione. Core 395, backend 509, lint OK. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
F3 del cruscotto: quali dataset, mancanti in più comuni, sbloccherebbero più valore a livello regionale.
opendata_core/region/ideas.py:regional_ideas(candidates, comuni)→priorita = valore × (0.3 + 0.7·gap)dove gap = frazione di comuni che NON coprono la categoria HVD del candidato. Candidati iniettati (il core non dipende dal catalogo).RegionIdeariporta copertura, comuni_mancanti e motivo (es. «mancante in 12/30 comuni»).GET /regione/idee: usaprioritize(load_catalog())del Copilota +regional_ideassui comuni della regione.Test
Core (
test_region_ideas.py, 5): mancante-ovunque primo, coperto < mancante a parità di valore, no-HVD = copertura non misurabile, ordinamento, regione vuota. Backend (test_region_backend.py):/regione/ideeordinato + copertura sui comuni della regione. Core 395, backend 509, lint OK.Parte di #227 · prossima F4 (#231 UI).
🤖 Generated with Claude Code