Spaces:
Runtime error
Runtime error
Aurélie GABU
commited on
Commit
·
77950e7
1
Parent(s):
ad7872f
docs: writting file schemas.py
Browse files- App/schemas.py +35 -0
App/schemas.py
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pydantic import BaseModel
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
class EmployeeFeatures(BaseModel):
|
| 5 |
+
genre: str
|
| 6 |
+
statut_marital: str
|
| 7 |
+
departement: str
|
| 8 |
+
poste: str
|
| 9 |
+
domaine_etude: str
|
| 10 |
+
frequence_deplacement: str
|
| 11 |
+
heure_supplementaires: bool
|
| 12 |
+
evolution_cat_evol: str
|
| 13 |
+
categorie_employe: str
|
| 14 |
+
|
| 15 |
+
satisfaction_employee_nature_travail: int
|
| 16 |
+
nombre_participation_pee: int
|
| 17 |
+
ecart_note_evaluation: int
|
| 18 |
+
revenu_mensuel: int
|
| 19 |
+
distance_domicile_travail: int
|
| 20 |
+
satisfaction_globale: float
|
| 21 |
+
niveau_education: int
|
| 22 |
+
note_evaluation_actuelle: int
|
| 23 |
+
satisfaction_employee_equipe: int
|
| 24 |
+
age: int
|
| 25 |
+
revenu_par_annee_experience_interne: int
|
| 26 |
+
satisfaction_employee_equilibre_pro_perso: int
|
| 27 |
+
nombre_experiences_precedentes: int
|
| 28 |
+
annees_dans_l_entreprise: int
|
| 29 |
+
nb_formations_suivies: int
|
| 30 |
+
revenu_par_annee_experience_totale: int
|
| 31 |
+
ratio_sans_promotion: int
|
| 32 |
+
satisfaction_employee_environnement: int
|
| 33 |
+
exp_hors_entreprise: int
|
| 34 |
+
mobilite_promotion: int
|
| 35 |
+
annees_depuis_la_derniere_promotion: int
|