Spaces:
Sleeping
Sleeping
marintosti12 commited on
Commit ·
67092ff
1
Parent(s): 1e22a1f
fix(folder) : rename test folder
Browse files
README.md
CHANGED
|
@@ -112,10 +112,10 @@ classDiagram
|
|
| 112 |
+Int note_evaluation_actuelle
|
| 113 |
+String heure_supplementaires
|
| 114 |
+Int augementation_salaire_precedente
|
| 115 |
-
%% Trace optionally which model handled the request
|
| 116 |
-
.. Traceability ..
|
| 117 |
}
|
| 118 |
|
|
|
|
|
|
|
| 119 |
class MLOutput {
|
| 120 |
+String(36) id
|
| 121 |
+DateTime created_at
|
|
@@ -125,8 +125,57 @@ classDiagram
|
|
| 125 |
+String error
|
| 126 |
}
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
%% Relations
|
| 129 |
-
|
| 130 |
~~~
|
| 131 |
|
| 132 |
### 5. Lancer l’API
|
|
|
|
| 112 |
+Int note_evaluation_actuelle
|
| 113 |
+String heure_supplementaires
|
| 114 |
+Int augementation_salaire_precedente
|
|
|
|
|
|
|
| 115 |
}
|
| 116 |
|
| 117 |
+
|
| 118 |
+
|
| 119 |
class MLOutput {
|
| 120 |
+String(36) id
|
| 121 |
+DateTime created_at
|
|
|
|
| 125 |
+String error
|
| 126 |
}
|
| 127 |
|
| 128 |
+
class EmployeeDataset {
|
| 129 |
+
+BigInteger id
|
| 130 |
+
+DateTime created_at
|
| 131 |
+
+Integer id_employee
|
| 132 |
+
|
| 133 |
+
+Integer age
|
| 134 |
+
+String genre
|
| 135 |
+
+Integer revenu_mensuel
|
| 136 |
+
+String statut_marital
|
| 137 |
+
+String departement
|
| 138 |
+
+String poste
|
| 139 |
+
|
| 140 |
+
+Integer nombre_experiences_precedentes
|
| 141 |
+
+Integer nombre_heures_travailless
|
| 142 |
+
+Integer annee_experience_totale
|
| 143 |
+
+Integer annees_dans_l_entreprise
|
| 144 |
+
+Integer annees_dans_le_poste_actuel
|
| 145 |
+
|
| 146 |
+
+Integer a_quitte_l_entreprise
|
| 147 |
+
|
| 148 |
+
+Integer nombre_participation_pee
|
| 149 |
+
+Integer nb_formations_suivies
|
| 150 |
+
+Integer nombre_employee_sous_responsabilite
|
| 151 |
+
|
| 152 |
+
+Integer code_sondage
|
| 153 |
+
+Integer distance_domicile_travail
|
| 154 |
+
+Integer niveau_education
|
| 155 |
+
+String domaine_etude
|
| 156 |
+
|
| 157 |
+
+String ayant_enfants
|
| 158 |
+
+String frequence_deplacement
|
| 159 |
+
|
| 160 |
+
+Integer annees_depuis_la_derniere_promotion
|
| 161 |
+
+Integer annes_sous_responsable_actuel
|
| 162 |
+
+Integer satisfaction_employee_environnement
|
| 163 |
+
+Integer note_evaluation_precedente
|
| 164 |
+
+Integer niveau_hierarchique_poste
|
| 165 |
+
+Integer satisfaction_employee_nature_travail
|
| 166 |
+
+Integer satisfaction_employee_equipe
|
| 167 |
+
+Integer satisfaction_employee_equilibre_pro_perso
|
| 168 |
+
|
| 169 |
+
+String eval_number
|
| 170 |
+
+Integer note_evaluation_actuelle
|
| 171 |
+
+String heure_supplementaires
|
| 172 |
+
+Integer augementation_salaire_precedente
|
| 173 |
+
|
| 174 |
+
+String source_file
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
%% Relations
|
| 178 |
+
MLInput "1" --> "0..*" MLOutput
|
| 179 |
~~~
|
| 180 |
|
| 181 |
### 5. Lancer l’API
|
alembic/env.py
CHANGED
|
@@ -9,7 +9,7 @@ from sqlalchemy import pool
|
|
| 9 |
from src.config.db import Base
|
| 10 |
from dotenv import load_dotenv, find_dotenv
|
| 11 |
load_dotenv(find_dotenv())
|
| 12 |
-
|
| 13 |
config = context.config
|
| 14 |
if config.config_file_name is not None:
|
| 15 |
fileConfig(config.config_file_name)
|
|
@@ -21,7 +21,6 @@ def get_url() -> str:
|
|
| 21 |
return url
|
| 22 |
|
| 23 |
def run_migrations_offline() -> None:
|
| 24 |
-
"""Mode offline : pas d'engine, juste l'URL."""
|
| 25 |
context.configure(
|
| 26 |
url=get_url(),
|
| 27 |
target_metadata=target_metadata,
|
|
@@ -33,7 +32,6 @@ def run_migrations_offline() -> None:
|
|
| 33 |
context.run_migrations()
|
| 34 |
|
| 35 |
def do_run_migrations(connection) -> None:
|
| 36 |
-
"""Configuration commune (online) une fois connecté."""
|
| 37 |
context.configure(
|
| 38 |
connection=connection,
|
| 39 |
target_metadata=target_metadata,
|
|
@@ -43,7 +41,6 @@ def do_run_migrations(connection) -> None:
|
|
| 43 |
context.run_migrations()
|
| 44 |
|
| 45 |
async def run_migrations_online() -> None:
|
| 46 |
-
"""Mode online : engine async."""
|
| 47 |
connectable: AsyncEngine = create_async_engine(
|
| 48 |
get_url(),
|
| 49 |
poolclass=pool.NullPool,
|
|
|
|
| 9 |
from src.config.db import Base
|
| 10 |
from dotenv import load_dotenv, find_dotenv
|
| 11 |
load_dotenv(find_dotenv())
|
| 12 |
+
|
| 13 |
config = context.config
|
| 14 |
if config.config_file_name is not None:
|
| 15 |
fileConfig(config.config_file_name)
|
|
|
|
| 21 |
return url
|
| 22 |
|
| 23 |
def run_migrations_offline() -> None:
|
|
|
|
| 24 |
context.configure(
|
| 25 |
url=get_url(),
|
| 26 |
target_metadata=target_metadata,
|
|
|
|
| 32 |
context.run_migrations()
|
| 33 |
|
| 34 |
def do_run_migrations(connection) -> None:
|
|
|
|
| 35 |
context.configure(
|
| 36 |
connection=connection,
|
| 37 |
target_metadata=target_metadata,
|
|
|
|
| 41 |
context.run_migrations()
|
| 42 |
|
| 43 |
async def run_migrations_online() -> None:
|
|
|
|
| 44 |
connectable: AsyncEngine = create_async_engine(
|
| 45 |
get_url(),
|
| 46 |
poolclass=pool.NullPool,
|
tests/{test_home.py → functional/test_home.py}
RENAMED
|
File without changes
|
tests/{test_predict.py → functional/test_predict.py}
RENAMED
|
File without changes
|