Scénario de test & Cas d'usage
Extraction de règles booléennes pour la classification.
Découvrir toutes les actions de boolRuleCréation de 10 dossiers patients avec diagnostics (cibles) et une table de liaison symptômes-patients.
| 1 | |
| 2 | DATA casuser.patients; |
| 3 | LENGTH pid $10 diagnosis $20; |
| 4 | INPUT pid diagnosis; |
| 5 | DATALINES; |
| 6 | P1 Cardio P2 Neuro P3 Cardio P4 Neuro P5 Cardio P6 Cardio P7 Neuro P8 Neuro P9 Cardio P10 Neuro ; |
| 7 | |
| 8 | RUN; |
| 9 | |
| 10 | DATA casuser.symptomes; |
| 11 | LENGTH pid $10 symptom $20; |
| 12 | INPUT pid symptom; |
| 13 | DATALINES; |
| 14 | P1 douleur_thoracique P1 essoufflement P2 migraine P2 vertiges P3 douleur_thoracique P3 palpitations P4 migraine P4 vision_floue P5 essoufflement P5 fatigue P6 douleur_thoracique P7 vertiges P7 nausee P8 migraine P9 palpitations P10 vision_floue ; |
| 15 | |
| 16 | RUN; |
| 17 |
| 1 | |
| 2 | PROC CAS; |
| 3 | boolRule.brTrain / TABLE={name='symptomes'} docId='pid' termId='symptom' docInfo={ TABLE={name='patients'}, id='pid', targets={'diagnosis'} } casOut={ rules={name='regles_diag', replace=true}, ruleTerms={name='termes_regles', replace=true} }; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | QUIT; |
| 8 |
L'action génère la table 'regles_diag' contenant des règles booléennes (ex: 'douleur_thoracique' & 'essoufflement' -> Cardio). Les tables de sortie sont correctement peuplées.