KikoDM commited on
Commit
291b4bd
1 Parent(s): 07d2c82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +53 -5
app.py CHANGED
@@ -3,14 +3,62 @@ import pandas as pd
3
  from joblib import load
4
 
5
 
6
- def student(conocer,explicar,metodologia,feedback):
7
  model = load('modelo_entrenado.pkl')
8
  df = pd.DataFrame.from_dict(
9
  {
10
- "Conocer" : [conocer],
11
- "Explicar" : [explicar],
12
- "Metodologia" : [metodologia],
13
- "Feed_back" : [feedback],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  }
16
  )
 
3
  from joblib import load
4
 
5
 
6
+ def humands(Monthlyincome,Age,TotalWorkingYears,DailyRate,HourlyRare,DistanceFromHome,Overtime,YearsAtCompany,MonthlyRate,NumCompaniesWorked):
7
  model = load('modelo_entrenado.pkl')
8
  df = pd.DataFrame.from_dict(
9
  {
10
+ "Monthlyincome" : [Monthlyincome],
11
+ "Age" : [Age],
12
+ "TotalWorkingYears" : [TotalWorkingYears],
13
+ "HourlyRare" : [HourlyRare],
14
+ "DistanceFromHome" : [DistanceFromHome],
15
+ "OverTime_Yes" : [Overtime],
16
+ "OverTime_No" : [!Overtime],
17
+ "YearsAtCompany" : [YearsAtCompany],
18
+ "MonthlyRate" : [MonthlyRate],
19
+ "NumCompaniesWorked" : [NumCompaniesWorked],
20
+ "PercentSalaryHike" : [0],
21
+ "YearsInCurrentRole" : [0],
22
+ "YearsWithCurrManager" : [0],
23
+ "StockOptionLevel" : [0],
24
+ "YearsSinceLastPromotion" : [0],
25
+ "JobSatisfaction" : [0],
26
+ "JobLevel" : [0],
27
+ "TrainingTimesLastYear" : [0],
28
+ "EnvironmentSatisfaction" : [0],
29
+ "WorkLifeBalance" : [0],
30
+ "MaritalStatus_Single" : [0],
31
+ "JobInvolvement" : [0],
32
+ "RelationshipSatisfaction" : [0],
33
+ "Education" : [0],
34
+ "BusinessTravel_Travel_Frequently" : [0],
35
+ "JobRole_Sales Representative" : [0],
36
+ "EducationField_Medical" : [0],
37
+ "Department_Sales" : [0],
38
+ "JobRole_Laboratory Technician" : [0],
39
+ "Department_Research & Development" : [0],
40
+ "Gender_Female" : [0],
41
+ "MaritalStatus_Married" : [0],
42
+ "JobRole_Sales Executive" : [0],
43
+ "EducationField_Technical Degree" : [0],
44
+ "Gender_Male" : [0],
45
+ "EducationField_Life Sciences" : [0],
46
+ "BusinessTravel_Travel_Rarely" : [0],
47
+ "MaritalStatus_Divorced" : [0],
48
+ "JobRole_Research Scientist" : [0],
49
+ "EducationField_Marketing" : [0],
50
+ "PerformanceRating" : [0],
51
+ "EducationField_Other" : [0],
52
+ "JobRole_Human Resources" : [0],
53
+ "BusinessTravel_Non-Travel" : [0],
54
+ "Department_Human Resources" : [0],
55
+ "JobRole_Manufacturing Director" : [0],
56
+ "JobRole_Healthcare Representative" : [0],
57
+ "EducationField_Human Resources" : [0],
58
+ "JobRole_Manager" : [0],
59
+ "JobRole_Research Director" : [0],
60
+
61
+
62
 
63
  }
64
  )