JobHopping is a class which is used to predict where a scholar may hop to.
predict(name_squence, ntop=3)
Get a scholar's possible future affiliation according to a list(squence) of affiliation's name where he had worked.
a list of the scholar's institution he had worded
How many possible affiliations will the method return.
A list of dictionaries
{
'name': the most likely future affiliation's name
'p': the probability
}
j = JobHopping()
aff = j.predict(['tsinghua university','mazandaran university','birsa agricultural university'])
aff
:
[
{
'name': 'university of michigan',
'p': 0.33
},
{
'name': 'university of cambridge',
'p': 0.33
},
{
'name': 'university of california berkeley',
'p': 0.33
}
]
An online version of method predict
The scholar's name
The scholar's affiliation name
In the Response
object, there will be three fields.
0
: Success
1
: There are some errors.
success
: Success
If there are some errors, you will get the error infomation.
The return value from the method.
https://innovaapi.aminer.cn/tools/v1/predict/career?per_name=XXX&org_name=XXX
Return Value:
{
"status": 0,
"message": "success",
"data": [
{
"name": "university of michigan",
"p": 0.33
},
{
"name": "university of california berkeley",
"p": 0.33
},
{
"name": "stanford university",
"p": 0.33
}
]
}