TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JoseOlivares19/Proyecto-PC3-JavaScript-Avanzado/llms.txt
Use this file to discover all available pages before exploring further.
/predict/utp-risk endpoint evaluates a student’s current academic standing using six performance and engagement metrics and classifies them into one of three risk tiers. The RandomForest model combines the student’s running average, class attendance rate, task completion rate, participation score, weekly study hours, and the grade from the most recent practice exam to produce a composite academic risk score. The response includes confidence, a three-tier probability ranking, and personalised recommendations to help tutors and academic advisors intervene early.
Endpoint
Request Body
Student’s current weighted average grade on the UTP 0–20 scale. Must be between
0.0 and 20.0.Percentage of scheduled class sessions the student has attended. Must be between
0.0 and 100.0. Values below 75 trigger an attendance recommendation.Percentage of assigned tasks submitted on time. Must be between
0.0 and 100.0. Values below 70 trigger a task-completion recommendation.Percentage of participation opportunities (questions, forums, live interactions) the student has engaged with. Must be between
0.0 and 100.0.Average number of self-study hours per week reported or tracked for this student. Must be between
0.0 and 40.0. Values below 6 trigger a study-hours recommendation.Grade obtained in the most recent practice exam (PC), on the UTP 0–20 scale. Must be between
0.0 and 20.0. Values below 12 trigger a revision recommendation.Example Request
Example Response
Response Fields
Human-readable model identifier. Always
"UTP RiskAI" for this endpoint.The top predicted academic risk tier. One of:
| Label | Meaning |
|---|---|
RIESGO_ALTO | High academic risk — immediate advisor intervention recommended |
RIESGO_MEDIO | Moderate risk — monitor weekly and encourage targeted improvement |
RIESGO_BAJO | Low risk — student is on track; maintain current rhythm |
Probability assigned to the top predicted risk class, in the range
0.0 to 1.0.Probability distribution across all three risk labels, sorted in descending order of probability.
Personalised academic recommendations derived from which specific thresholds were crossed in the input fields. If no thresholds are crossed (strong student), a single encouragement message is returned instead.
Echo of the validated request payload as parsed by Pydantic, useful for storing alongside the student record in your academic management system.
All grade fields (
promedio_actual, nota_pc_anterior) use the UTP 0–20 grading scale. The passing threshold is 11. Scores below this level carry the highest individual weight in the model’s composite risk formula.