Skip to content

Instantly share code, notes, and snippets.

@kyogesh
Created August 31, 2015 12:02
Show Gist options
  • Save kyogesh/d3b95a2ebcf80ac09683 to your computer and use it in GitHub Desktop.
Save kyogesh/d3b95a2ebcf80ac09683 to your computer and use it in GitHub Desktop.
n [5]: _request_pdapi_data(**req_dict)
************** request **************
Sending request to http://asheablapp-p01.advisory.com/prod/models/pdapi/
{"taken_in_major": false, "course_cd": ["ENGL1101"], "institution_id": "gsu_9990", "request_type": "grades", "grad_in_major": false, "chart_type": "grad_rate_by_grade"}
Out[5]:
{u'result': {u'final_grade': [u'A+',
u'A',
u'A-',
u'B+',
u'B',
u'B-',
u'C+',
u'C',
u'C-',
u'D+',
u'D',
u'D-',
u'F',
u'P',
u'W'],
u'grad_lower': [0.203101013991277,
0.465519263686384,
0.273222954550387,
0.266785519488792,
0.456994310726844,
0.221688031572717,
0.213193057519814,
0.406364778894922,
0.0376007175339121,
0,
0.10217737486215,
0,
0.0681318272589583,
0.390510120556421,
0.22121788309848],
u'grad_mean': [0.229977147176191,
0.47174332291356,
0.285980160987603,
0.280867914867584,
0.462576499529327,
0.239800941672734,
0.23667105512822,
0.414534813858356,
0.110668837577678,
0.20939628975265,
0.130241637109766,
0.4187925795053,
0.0857343204472338,
0.476114671158956,
0.248125683295297],
u'grad_upper': [0.257179721883145,
0.477968665330118,
0.29878739763314,
0.295013455991483,
0.468160058714636,
0.258051805634318,
0.260386525065128,
0.422711720040706,
0.191714333578536,
0.720411304846717,
0.159086877260796,
1,
0.103834464426003,
0.561925342885361,
0.275322664636338],
u'grads': [213,
11654,
1372,
1093,
14172,
507,
294,
5784,
6,
0,
69,
0,
80,
61,
242],
u'info_gain': [0,
0.00250412615478646,
0.000443881597525508,
0,
0.00395584976100882,
0.00215659801557178,
0.0012983460256375,
0.00631406755057062,
0.0060898076167285,
0.00608364789433768,
0.00429883225816119,
0.00429883225816119,
0.000852800258795972,
0.0010691105157965,
0],
u'n': [927,
24704,
4798,
3892,
30637,
2115,
1243,
13953,
57,
1,
532,
0,
937,
128,
976],
u'order': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]},
u'version': u'90b92ec',
u'yhat_id': u'0384ce22-b5ce-4fa3-9398-63cea7a2e90f',
u'yhat_model': u'pdapi'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment