Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,6 +96,76 @@ def map_categorical_features():
|
|
| 96 |
'poor': 0,
|
| 97 |
'excellent': 1,
|
| 98 |
'medium': 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
}
|
|
@@ -177,6 +247,7 @@ def main():
|
|
| 177 |
'public speaking points': public speaking points
|
| 178 |
}
|
| 179 |
|
|
|
|
| 180 |
# Convert categorical to numerical
|
| 181 |
try:
|
| 182 |
numerical_input = convert_categorical_to_numerical(input_data, mappings)
|
|
|
|
| 96 |
'poor': 0,
|
| 97 |
'excellent': 1,
|
| 98 |
'medium': 2
|
| 99 |
+
},
|
| 100 |
+
'Interested subjects':{
|
| 101 |
+
'programming':0,
|
| 102 |
+
'Management':1,
|
| 103 |
+
'data engineering':2,
|
| 104 |
+
'networks':3,
|
| 105 |
+
'Software Engineering':4,
|
| 106 |
+
'cloud computing':5,
|
| 107 |
+
'parallel computing':6,
|
| 108 |
+
'IOT':7,
|
| 109 |
+
'Computer Architecture':8,
|
| 110 |
+
'hacking':9
|
| 111 |
+
},
|
| 112 |
+
'interested career area ':{
|
| 113 |
+
'testing':0,
|
| 114 |
+
'system developer':1,
|
| 115 |
+
'Business process analyst':2,
|
| 116 |
+
'security':3,
|
| 117 |
+
'developer':4,
|
| 118 |
+
'cloud computing':5
|
| 119 |
+
},
|
| 120 |
+
'Type of company want to settle in?':{
|
| 121 |
+
'BPA':0,
|
| 122 |
+
'Cloud Services':1,
|
| 123 |
+
'product development':2,
|
| 124 |
+
'Testing and Maintainance Services':3,
|
| 125 |
+
'SAaS services':4,
|
| 126 |
+
'Web Services':5,
|
| 127 |
+
'Finance':6,
|
| 128 |
+
'Sales and Marketing':7,
|
| 129 |
+
'Product based':8,
|
| 130 |
+
'Service Based':9
|
| 131 |
+
},
|
| 132 |
+
'Taken inputs from seniors or elders':{
|
| 133 |
+
'yes':0,
|
| 134 |
+
'no':1
|
| 135 |
+
},
|
| 136 |
+
'Interested Type of Books':{
|
| 137 |
+
'Series':0,
|
| 138 |
+
'Autobiographies':1,
|
| 139 |
+
'Travel':2,
|
| 140 |
+
'Guide':3,
|
| 141 |
+
'Health':4,
|
| 142 |
+
'Journals':5,
|
| 143 |
+
'Anthology':6,
|
| 144 |
+
'Dictionaries':7,
|
| 145 |
+
'Prayer books':8,
|
| 146 |
+
'Art':9,
|
| 147 |
+
'Encyclopedias':10,
|
| 148 |
+
'Religion-Spirituality':11,
|
| 149 |
+
'Action and Adventure':12,
|
| 150 |
+
'Comics':13,
|
| 151 |
+
'Horror':14,
|
| 152 |
+
'Satire':15,
|
| 153 |
+
'Self help':16,
|
| 154 |
+
'History':17,
|
| 155 |
+
'Cookbooks':18,
|
| 156 |
+
'Math':19,
|
| 157 |
+
'Biographies':20,
|
| 158 |
+
'Drama':21,
|
| 159 |
+
'Diaries':22,
|
| 160 |
+
'Science fiction':23,
|
| 161 |
+
'Poetry':24,
|
| 162 |
+
'Romance':25,
|
| 163 |
+
'Science':26,
|
| 164 |
+
"Trilogy":27,
|
| 165 |
+
"Fantasy":28,
|
| 166 |
+
"Childrens"
|
| 167 |
+
|
| 168 |
+
|
| 169 |
}
|
| 170 |
|
| 171 |
}
|
|
|
|
| 247 |
'public speaking points': public speaking points
|
| 248 |
}
|
| 249 |
|
| 250 |
+
|
| 251 |
# Convert categorical to numerical
|
| 252 |
try:
|
| 253 |
numerical_input = convert_categorical_to_numerical(input_data, mappings)
|