Hello. Thank you for this app example. It helps a lot.
I am currently testing the best drug selection Watson app. I followed the steps described in https://github.com/pmservice/best-heart-drug-selection/blob/master/README.md.
For this app example, everything runs very well. However, I adapt the code of best-heart-drug-selection to another problem which is the heart disease prediction.
Now that I am able to see my deployed models in the app, I can not select it and it shows the following message: "Data schema of this model is incompatible with data schema expected by this application". To proceed, I modified the following inputs by inserting the right schema (to be checked if I made a mistake):
This schema corresponds to my input data (in an excel file) as follows:
age (decimal),sex (decimal),chest_pain (decimal) ,blood (decimal), pressure(decimal), serum_cholestoral(decimal), fasting_blood_sugar(decimal), electrocardiographic (decimal), max_heart_rate(decimal), induced_angina(decimal), ST_depression(decimal), slope,vessels(decimal), thal(decimal), diagnosis (integer from 0 to 4).
I also made some changes in src/component/scoring.result.jsx as follows:
const gender = scoringValues[1];
const age = scoringValues[0];
const ch_pain = scoringValues[2];
const blood = scoringValues[3];
const serum = scoringValues[4];
const fasting_sugar = scoringValues[5];
const cardioGraph = scoringValues[6];
const heartRate = scoringValues[7];
const engina = scoringValues[8];
const depression = scoringValues[9];
const slope = scoringValues[10];
const vessel = scoringValues[11];
const thal = scoringValues[12];
Hello. Thank you for this app example. It helps a lot.
I am currently testing the best drug selection Watson app. I followed the steps described in https://github.com/pmservice/best-heart-drug-selection/blob/master/README.md. For this app example, everything runs very well. However, I adapt the code of best-heart-drug-selection to another problem which is the heart disease prediction.
Now that I am able to see my deployed models in the app, I can not select it and it shows the following message: "Data schema of this model is incompatible with data schema expected by this application". To proceed, I modified the following inputs by inserting the right schema (to be checked if I made a mistake):
This schema corresponds to my input data (in an excel file) as follows: age (decimal),sex (decimal),chest_pain (decimal) ,blood (decimal), pressure(decimal), serum_cholestoral(decimal), fasting_blood_sugar(decimal), electrocardiographic (decimal), max_heart_rate(decimal), induced_angina(decimal), ST_depression(decimal), slope,vessels(decimal), thal(decimal), diagnosis (integer from 0 to 4).
I also made some changes in src/component/scoring.result.jsx as follows: const gender = scoringValues[1]; const age = scoringValues[0]; const ch_pain = scoringValues[2]; const blood = scoringValues[3]; const serum = scoringValues[4]; const fasting_sugar = scoringValues[5]; const cardioGraph = scoringValues[6]; const heartRate = scoringValues[7]; const engina = scoringValues[8]; const depression = scoringValues[9]; const slope = scoringValues[10]; const vessel = scoringValues[11]; const thal = scoringValues[12];
I also updated the src/components/PersonList.jsx as follows: const gender = scoringValues[1]; const age = scoringValues[0]; const ch_pain = scoringValues[2]; const blood = scoringValues[3]; const serum = scoringValues[4]; const fasting_sugar = scoringValues[5]; const cardioGraph = scoringValues[6]; const heartRate = scoringValues[7]; const engina = scoringValues[8]; const depression = scoringValues[9]; const slope = scoringValues[10]; const vessel = scoringValues[11]; const thal = scoringValues[12];
I really don't know how to resolve this problem. Did I miss something?
Thank for your help.