-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpredict_test.py
38 lines (33 loc) · 986 Bytes
/
predict_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import requests
candidate = [{
"gender": "M",
"ssc_p": 71.0,
"ssc_b": 'Central',
"hsc_p": 90.66,
"hsc_b": 'Central',
"hsc_s": 'Science',
"degree_p": 90.0,
"degree_t": 'Sci&Tech',
"etest_p": 90.0,
"mba_p": 90.3,
"specialisation": 'Mkt&Fin',
"workex": 'Yes',
}]
url = "http://0.0.0.0:8000/predict"
result = requests.post(url=url,json=candidate).json()
print('The Model Prediction for placement :',result)
# https://dphi.tech/challenges/data-sprint-42-campus-recruitment/146/data
"""
gender: Gender of the candidate (male/female)
ssc_b: senior secondary board
ssc_p: senior secondary percentage scored
hsc_b: higher secondary board
hsc_p: higher secondary percentage scored
hsc_s: higher secondary subject
degree_p: percentage scored in degree/graduation
etest_p: entrance test percentage scored
mba_p: mba percentage scored
specialization: mba specialization
workex: work experience
status: placed or not placed (target variable)
"""