feat: voeg eduplan/config.yaml toe#14
Open
StevenRamondt wants to merge 6 commits into
Open
Conversation
Alle deployment-specifieke waarden (modelpaden, drempelwaarden, kolomnamen, download-URLs, SHAP-instellingen, LLM-model) verplaatst naar config.yaml. Sluit aan op de splitsing die student-signal's eigen config.yaml beschrijft: "data paths and column names belong in the consuming repo". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bij het trainen van een custom model worden nu ook de fitted KNNImputer en MinMaxScaler naast het model opgeslagen. Bij inferentie (/rank_students, /predict_dropout) wordt de imputer toegepast op inkomende data zodat NaN-waarden consistent worden behandeld als tijdens training. Wacht op student-signal PR #4 (feat/expose-knn-imputer) voor de imputer beschikbaar is via PreparedData.imputer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…der doelkolom - trainer.py: verwijder exclude_columns vóór prepare() zodat Naam/Opleiding/Klas/Mentor niet als one-hot dummies in het model terechtkomen - trainer.py: sla een inferentie-imputer op gefitst op prepared.X_train (post-encoding, zonder Dropout) — de imputer van prepare() bevat de doelkolom en crasht bij inferentie - main.py: _apply_imputer() gebruikt feature_names_in_ zodat alleen de juiste kolommen worden getransformeerd Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Splitst de enkele data-upload in twee: - Upload 1 (historische data met Dropout) → modeltraining - Upload 2 (huidig cohort zonder Dropout) → ranking/voorspelling Voegt _match_kolommen() en _feedback_upload() toe als gedeelde helpers zodat de kolom-matching logica niet gedupliceerd wordt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Plotly interpreteerde Studentnummers (bijv. "420371") als numerieke waarden en maakte een schaal van 350k–450k. Door een "Student "-prefix toe te voegen worden ze altijd als tekst herkend. Co-Authored-By: Claude Sonnet 4.6 <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.
Summary
eduplan/config.yamltoe als centrale plek voor alle deployment-specifieke instellingenbackend/main.py,backend/trainer.pyenshared/data_prep.pyconfig.yamlbeschrijft: "data paths and column names belong in the consuming repo"Verplaatst naar config.yaml:
backend/model.joblib,model_custom.joblib, features JSON)Dropout,Studentnummer, exclude-lijst)gpt-4.1)data_prep.pytrainer.pyTest plan
uv run pytest tests/— 38 passeduv run ruff check— geen fouten/rank_studentsaanroepen🤖 Generated with Claude Code