Description:
This API will return model interpretation.
API Endpoint:
/ws/predictive
Method:
POST
Header:
Field | Value |
SOAPAction | /ws/datasetManagement.wsdl |
Request:
XML Element | Type | Value |
Token | String | Object Token |
Note: To get the token please refer the article for getToken
Request Example:
https://<SMARTENURL>/smarten/API/predictive/getInterpretation?tokenid=token
Response:
A HTML Code is retured as a response which contains below interpretation
Medical Cost Prediction - Interpretation
The model is an excellent fit and predictions are accurate.
Significant predictors and their influence on Medical_charges:
There is a statistically significant association between Medical_charges and the following variables:
Region(southeast)
Region(southwest)
Smoker(yes)
Region(northeast)
Sex(female)
Children
Smoker(no)
BMI
Region(northwest)
Sex(male)
Age
The following variables have a positive impact on Medical_charges:
Region(southeast)
Region(southwest)
Smoker(yes)
Region(northeast)
BMI
Region(northwest)
Sex(male)
Age
The following variables have a negative impact on Medical_charges:
Sex(female)
Children
Smoker(no)
Postman Example:
You can import the example below into Postman.
curl --location --request POST 'https://<SMARTENURL>/smarten/API/predictive/getInterpretation?tokenid=tokenId \
--header 'Cookie: JSESSIONID=KDOoMLL7gn53wSFuUgMxq8YKORR-HJ9hOlzj6a1E.ip-172-31-8-13'
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article