Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Patients are not displayed #3

Open
brichnim opened this issue Oct 16, 2018 · 0 comments
Open

Patients are not displayed #3

brichnim opened this issue Oct 16, 2018 · 0 comments

Comments

@brichnim
Copy link

Dear contributors,
I have a problem when executing the app on my example of heart disease prediction.
I have my deployments table correctly displayed. I can select the model that corresponds to my schema. But when I select the model, Nothing is displayed. It is supposed to show me the patients (Alice, Gregory, etc.).
I think it is stopped at this stage (in the bundle.js file):
'div',
{ className: _style2.default.group },
_react2.default.createElement(
'h3',
null,
'Select a Deployment 3'
),
_react2.default.createElement(_DeploymentsTable2.default, { data: this.state.deployments, onChoose: this.setScoringHref, className: 'center', selected: this.state.scoringHref && this.state.scoringHref.id, loading: this.state.deploymentsLoading })

My model schema is as follows (diagnosis is of type int):
module.exports = {
"model-schema": [
{"name": "age", "type": "decimal(31,6)"},
{"name": "sex", "type": "decimal(31,6)"},
{"name": "chest_pain", "type": "decimal(31,6)"},
{"name": "blood pressure", "type": "decimal(31,6)"},
{"name": "serum_cholestoral", "type": "decimal(31,6)"},
{"name": "fasting_blood_sugar", "type": "decimal(31,6)"},
{"name": "electrocardiographic", "type": "decimal(31,6)"},
{"name": "max_heart_rate", "type": "decimal(31,6)"},
{"name": "induced_angina", "type": "decimal(31,6)"},
{"name": "ST_depression", "type": "decimal(31,6)"},
{"name": "slope", "type": "decimal(31,6)"},
{"name": "vessels", "type": "string"},
{"name": "thal", "type": "string"}
],
"label": "diagnosis",
"label-values": [
{"title": "Level 0", "value": "0"},
{"title": "Level 1", "value": "1"},
{"title": "Level 2", "value": "2"},
{"title": "Level 3", "value": "3"},
{"title": "Level 4", "value": "4"}
],
"model-input": [
{"name": "Gregory", "icon": "gregory", "data": [63.0,1.0,1.0,145.0,233.0,1.0,2.0,150.0,0.0,2.3,3.0,"0.0","6.0"]},
{"name": "Alice", "icon": "alice", "data": [41.0,0.0,2.0,130.0,204.0,0.0,2.0,172.0,0.0,1.4,1.0,"0.0","3.0"]},
{"name": "Joanna", "icon": "joanna", "data": [48.0,0.0,3.0,130.0,275.0,0.0,0.0,139.0,0.0,0.2,1.0,"0.0","3.0"]},
{"name": "Alexander", "icon": "alexander", "data": [53.0,1.0,4.0,140.0,203.0,1.0,2.0,155.0,1.0,3.1,3.0,"0.0","7.0"]},
{"name": "Bill", "icon": "alexander", "data": [52.0,1.0,3.0,172.0,199.0,1.0,0.0,162.0,0.0,0.5,1.0,"0.0","7.0"]},
{"name": "Olivia", "icon": "alice", "data": [65.0,0.0,4.0,150.0,225.0,0.0,2.0,114.0,0.0,1.0,2.0,"3.0","7.0"]},
{"name": "Mark", "icon": "gregory", "data": [59.0,1.0,3.0,150.0,212.0,1.0,0.0,157.0,0.0,1.6,1.0,"0.0","3.0"]},
{"name": "Emma", "icon": "joanna", "data": [61.0,0.0,4.0,130.0,330.0,0.0,2.0,169.0,0.0,0.0,1.0,"0.0","3.0"]}
],
"model-prediction-mapping": {
"0": "Level 0",
"1": "Level 1",
"2": "Level 2",
"3": "Level 3",
"4": "Level 4"
}
};

I suppose that it is not creating the scoringHref, or may be I missed something.
Thank you for your guidance.

Best regards,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant