Skip to content
Snippets Groups Projects
Unverified Commit d4cfbe04 authored by ThanKarab's avatar ThanKarab Committed by GitHub
Browse files

Merge pull request #10 from madgik/dev_refactor_result

Dev refactor result
parents 504d9db8 626d6d8b
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ def Rfunction_confusionmatrix(inputjson): ...@@ -147,7 +147,7 @@ def Rfunction_confusionmatrix(inputjson):
"type": "application/vnd.dataresource+json"} "type": "application/vnd.dataresource+json"}
jsonResult = { "result": [ ResultOverall, ResultClassNames ] } jsonResult = [ ResultOverall, ResultClassNames ]
return jsonResult return jsonResult
def main(): def main():
...@@ -184,10 +184,13 @@ def main(): ...@@ -184,10 +184,13 @@ def main():
print(' "type": "application/json"') print(' "type": "application/json"')
print(' } , ... ') print(' } , ... ')
print('] }') print('] }')
statistics.append(result) statistics.append(result[0])
statistics.append(result[1])
finalResult={ "result" : statistics }
outputFile = open(opts.get("-o"), "w") outputFile = open(opts.get("-o"), "w")
outputFile.write(json.dumps(statistics)) outputFile.write(json.dumps(finalResult))
outputFile.close outputFile.close
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -116,8 +116,8 @@ def main(): ...@@ -116,8 +116,8 @@ def main():
results = [] results = []
for i in xrange(len(inputJson)): for i in xrange(len(inputJson)):
try: try:
result = {'result': [{'data': heatmap(inputJson[i]['result'][0]['data'], title, result = {'data': heatmap(inputJson[i]['result'][0]['data'], title,
xtitle, ytitle),'type': 'application/vnd.highcharts+json'}]} xtitle, ytitle),'type': 'application/vnd.highcharts+json'}
except ValueError: except ValueError:
print("Input file should be:") print("Input file should be:")
print('[{ "result" : [{') print('[{ "result" : [{')
...@@ -127,9 +127,11 @@ def main(): ...@@ -127,9 +127,11 @@ def main():
print('] }') print('] }')
results.append(result) results.append(result)
finalResult = { 'result' : results}
outputFile = open(opts.get('-o'), 'w') outputFile = open(opts.get('-o'), 'w')
outputFile.write(json.dumps(results)) outputFile.write(json.dumps(finalResult))
outputFile.close outputFile.close
......
{"uuid": "66e06fa5-c1f3-48ac-b359-095df8437601", "tags": [], "format-version": "0.1", "name": "Naive Bayes with Cross Validation", "version": 2, "steps": {"0": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "5ec56f6b-3ac9-4250-ace1-3ddbe0e29c96", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 0, "uuid": "a9a57dff-1f53-4936-9f1d-cefd1a1f209b", "errors": null, "name": "Input parameter", "label": "dataset", "inputs": [], "position": {"top": 222.13333129882812, "left": 199.98333740234375}, "annotation": "{\n \"name\": \"dataset\",\n\n \"desc\": \"The names of one or more datasets, in which the algorithm will be executed.\",\n \"type\": \"dataset\",\n \"value\": \"desd-synthdata\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": true\n}", "content_id": null, "type": "parameter_input"}, "1": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "7f7ebc2a-ad70-468d-9380-4b43d24ed3c3", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 1, "uuid": "dd7c6242-1b48-4bcd-8b21-ca9fb6bda7f5", "errors": null, "name": "Input parameter", "label": "pathology", "inputs": [], "position": {"top": 282.1333312988281, "left": 200.98333740234375}, "annotation": "{\n \"name\": \"pathology\",\n \"desc\": \"The name of the pathology in which the dataset belongs to.\",\n \"type\": \"pathology\",\n \"value\": \"dementia\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "2": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "9707ebfa-152c-4bf7-bc8a-df00f417238a", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 2, "uuid": "5f04f970-86d8-49be-a4ff-ccba18f8fee4", "errors": null, "name": "Input parameter", "label": "x", "inputs": [], "position": {"top": 340.1333312988281, "left": 202.98333740234375}, "annotation": "{\n \"name\": \"x\",\n \"desc\": \"Independent variables: A list of variables from database.\",\n \"type\": \"column\",\n \"columnValuesSQLType\": \"\",\n \"columnValuesIsCategorical\": \"\",\n \"value\": \"righthippocampus,lefthippocampus\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": true\n}", "content_id": null, "type": "parameter_input"}, "3": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "bc7ec4ed-32d2-45a8-b93f-93424d425a0b", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 3, "uuid": "fb380ae5-2923-4dde-a811-75fcc84914d7", "errors": null, "name": "Input parameter", "label": "y", "inputs": [], "position": {"top": 398.1333312988281, "left": 210.39999389648438}, "annotation": "{\n \"name\": \"y\",\n \"desc\": \"Dependent variable: A categorical variable form database.\",\n \"type\": \"column\",\n \"columnValuesSQLType\": \"\",\n \"columnValuesIsCategorical\": \"true\",\n \"value\": \"alzheimerbroadcategory\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "4": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "a17d8b52-eff5-42eb-9833-482318273ad5", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 4, "uuid": "59093696-f570-4549-806d-15c55f468a4d", "errors": null, "name": "Input parameter", "label": "kfold", "inputs": [], "position": {"top": 460.13330078125, "left": 205}, "annotation": "{\n \"name\": \"kfold\",\n \"desc\": \"Number of pieces the dataset will be split\",\n \"type\": \"other\",\n \"value\": \"3\",\n \"valueType\": \"integer\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "5": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "73e7abfc-92c6-45a0-a5c0-791b1fd0797d", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 5, "uuid": "d8ded1b9-5e2a-4c55-9a9d-60d74ec940a2", "errors": null, "name": "Input parameter", "label": "alpha", "inputs": [], "position": {"top": 526.13330078125, "left": 203}, "annotation": "{\n \"name\": \"alpha\",\n \"desc\": \"Additive smoothing parameter (0 for no smoothing)\",\n \"type\": \"other\",\n \"value\": \"0.1\",\n \"valueType\": \"real\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "6": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "f3c5695e-d0cf-404d-9cec-3331d510a6c2", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 6, "uuid": "0f6fb62f-238c-404e-b636-230bd0b60207", "errors": null, "name": "Input parameter", "label": "filter", "inputs": [], "position": {"top": 595.13330078125, "left": 202}, "annotation": "{\n \"name\": \"filter\",\n \"desc\": \"\",\n \"type\": \"filter\",\n \"value\": \"\",\n \"valueType\": \"string\",\n \"valueNotBlank\": false,\n \"valueMultiple\": true\n}", "content_id": null, "type": "parameter_input"}, "7": {"tool_id": "CROSS_VALIDATION_K_FOLD", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [], "input_connections": {"kfold": {"output_name": "output", "id": 4}, "dataset": {"output_name": "output", "id": 0}, "filter": {"output_name": "output", "id": 6}, "y": {"output_name": "output", "id": 3}, "x": {"output_name": "output", "id": 2}, "pathology": {"output_name": "output", "id": 1}}, "tool_state": "{\"__page__\": null, \"kfold\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"__rerun_remap_job_id__\": null, \"dataset\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"filter\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"y\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"x\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"pathology\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\"}", "id": 7, "uuid": "d81b7824-eff2-46f1-b72c-86bf2dfb892b", "errors": null, "name": "Cross Validation K Fold", "post_job_actions": {"HideDatasetActionoutput": {"output_name": "output", "action_type": "HideDatasetAction", "action_arguments": {}}}, "label": null, "inputs": [], "position": {"top": 197.01666259765625, "left": 545.6666870117188}, "annotation": "", "content_id": "CROSS_VALIDATION_K_FOLD", "type": "tool"}, "8": {"tool_id": "NAIVE_BAYES_TRAINING", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [], "input_connections": {"x": {"output_name": "output", "id": 2}, "dataset": {"output_name": "output", "id": 0}, "alpha": {"output_name": "output", "id": 5}, "y": {"output_name": "output", "id": 3}, "input": {"output_name": "output", "id": 7}, "pathology": {"output_name": "output", "id": 1}}, "tool_state": "{\"__page__\": null, \"input\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"__rerun_remap_job_id__\": null, \"dataset\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"alpha\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"y\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"x\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"pathology\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\"}", "id": 8, "uuid": "34593fea-e0d1-4bb8-8569-7238d2ec93ee", "errors": null, "name": "Naive Bayes Training", "post_job_actions": {"HideDatasetActionoutput": {"output_name": "output", "action_type": "HideDatasetAction", "action_arguments": {}}}, "label": null, "inputs": [], "position": {"top": 416.66668701171875, "left": 678.36669921875}, "annotation": "", "content_id": "NAIVE_BAYES_TRAINING", "type": "tool"}, "9": {"tool_id": "NAIVE_BAYES_TESTING", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [], "input_connections": {"y": {"output_name": "output", "id": 3}, "input": {"output_name": "output", "id": 8}, "pathology": {"output_name": "output", "id": 1}, "x": {"output_name": "output", "id": 2}, "dataset": {"output_name": "output", "id": 0}}, "tool_state": "{\"__page__\": null, \"__rerun_remap_job_id__\": null, \"dataset\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"x\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"y\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"input\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"pathology\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\"}", "id": 9, "uuid": "18cfcfbd-0b55-452e-b23d-fa63e3508ca2", "errors": null, "name": "Naive Bayes Testing", "post_job_actions": {"HideDatasetActionoutput": {"output_name": "output", "action_type": "HideDatasetAction", "action_arguments": {}}}, "label": null, "inputs": [], "position": {"top": 678.7333374023438, "left": 860.6666259765625}, "annotation": "", "content_id": "NAIVE_BAYES_TESTING", "type": "tool"}, "10": {"tool_id": "HEATMAP_HIGHCHART", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [{"output_name": "output", "uuid": "0cb50cc9-7d1b-4aa4-8b24-b88e7ac38c3e", "label": null}], "input_connections": {"input": {"output_name": "output", "id": 9}}, "tool_state": "{\"__page__\": null, \"title\": \"\\\"Confusion Matrix\\\"\", \"__rerun_remap_job_id__\": null, \"xTitle\": \"\\\"Actual Class\\\"\", \"input\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"yTitle\": \"\\\"Predicted Class\\\"\"}", "id": 10, "uuid": "db4d838c-cd9d-4b61-8618-3649c09fc0ef", "errors": null, "name": "Heatmap Highchart", "post_job_actions": {}, "label": null, "inputs": [], "position": {"top": 432.58331298828125, "left": 1040.4666748046875}, "annotation": "", "content_id": "HEATMAP_HIGHCHART", "type": "tool"}}, "annotation": "", "a_galaxy_workflow": "true"}
\ No newline at end of file
{"uuid": "ba205d86-2619-474e-b8c4-513b03b09579", "tags": [], "format-version": "0.1", "name": "Naive Bayes with Hold Out Validation", "version": 6, "steps": {"0": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "3628d2ec-1a2c-40c0-946e-14fcc441524e", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 0, "uuid": "5ea4c579-63a7-4225-b594-0487a012f7bd", "errors": null, "name": "Input parameter", "label": "dataset", "inputs": [], "position": {"top": 348.8333282470703, "left": 199.98333740234375}, "annotation": "{\n \"name\": \"dataset\",\n \"desc\": \"The names of one or more datasets, in which the algorithm will be executed.\",\n \"type\": \"dataset\",\n \"value\": \"desd-synthdata\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": true\n}", "content_id": null, "type": "parameter_input"}, "1": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "2f5f1b8a-eab1-4dcc-9d57-15d6fd3f97eb", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 1, "uuid": "47993131-1553-4828-a833-57be843efdbb", "errors": null, "name": "Input parameter", "label": "pathology", "inputs": [], "position": {"top": 408.8333282470703, "left": 200.98333740234375}, "annotation": "{\n \"name\": \"pathology\",\n \"desc\": \"The name of the pathology in which the dataset belongs to.\",\n \"type\": \"pathology\",\n \"value\": \"dementia\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "2": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "a6a5c17f-aa28-4346-abe5-63e2e2b27cc0", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 2, "uuid": "b10ffbc5-d291-4c0b-8b1a-664fe9c7668a", "errors": null, "name": "Input parameter", "label": "x", "inputs": [], "position": {"top": 466.8333282470703, "left": 202.98333740234375}, "annotation": "{\n \"name\": \"x\",\n \"desc\": \"Independent variables: A list of variables from database.\",\n \"type\": \"column\",\n \"columnValuesSQLType\": \"\",\n \"columnValuesIsCategorical\": \"\",\n \"value\": \"righthippocampus,lefthippocampus\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": true\n}", "content_id": null, "type": "parameter_input"}, "3": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "2d645e5b-15b2-466a-ac2f-91a70df6e352", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 3, "uuid": "dc3bcb38-d3bc-4ade-b1f2-853a93cccf0c", "errors": null, "name": "Input parameter", "label": "y", "inputs": [], "position": {"top": 526.8333282470703, "left": 210.39999389648438}, "annotation": "{\n \"name\": \"y\",\n \"desc\": \"Dependent variable: A categorical variable form database.\",\n \"type\": \"column\",\n \"columnValuesSQLType\": \"\",\n \"columnValuesIsCategorical\": \"true\",\n \"value\": \"alzheimerbroadcategory\",\n \"valueType\": \"string\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "4": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "40831594-27e9-4c6e-aefa-bdd42ab3b173", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 4, "uuid": "f5ca9b15-86b8-4344-9bc2-9fc3cd26d127", "errors": null, "name": "Input parameter", "label": "alpha", "inputs": [], "position": {"top": 598.8333129882812, "left": 209}, "annotation": "{\n \"name\": \"alpha\",\n \"desc\": \"Additive smoothing parameter (0 for no smoothing)\",\n \"type\": \"other\",\n \"value\": \"0.1\",\n \"valueType\": \"real\",\n \"valueNotBlank\": true,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "5": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "3ff8e5eb-ec36-46c2-b150-98c6ed89e043", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 5, "uuid": "4efe90de-5c9a-46a6-80c2-fc808f3aaffe", "errors": null, "name": "Input parameter", "label": "filter", "inputs": [], "position": {"top": 670.8333129882812, "left": 212}, "annotation": "{\n \"name\": \"filter\",\n \"desc\": \"\",\n \"type\": \"filter\",\n \"value\": \"\",\n \"valueType\": \"string\",\n \"valueNotBlank\": false,\n \"valueMultiple\": true\n}", "content_id": null, "type": "parameter_input"}, "6": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "20d20429-c019-4ce7-97ef-9428032b5e82", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 6, "uuid": "b63749b3-361a-4673-bd92-07bb744434b8", "errors": null, "name": "Input parameter", "label": "testSize", "inputs": [], "position": {"top": 737, "left": 198.3000030517578}, "annotation": "{\n \"name\": \"test_size\",\n \"desc\": \"(Optional). If it is between 0.0 and 1.0, it represents the proportion of the dataset to include in the test split. If it is not given, the value is set to the complement of the train size.\",\n \"type\": \"other\",\n \"value\": \"0.25\",\n \"valueType\": \"real\",\n \"valueNotBlank\": false,\n \"valueMultiple\": false,\n \"valueMin\": 0.0,\n \"valueMax\": 1.0\n}", "content_id": null, "type": "parameter_input"}, "7": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "76c5bf8f-371b-4812-a31b-78a4abd2d4d3", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 7, "uuid": "5739cbe8-b547-4c4e-ade0-93e5ca430c27", "errors": null, "name": "Input parameter", "label": "trainSize", "inputs": [], "position": {"top": 808, "left": 272.29998779296875}, "annotation": "{\n \"name\": \"train_size\",\n \"desc\": \"(Optional). If it is between 0.0 and 1.0, it represents the proportion of the dataset to include in the train split. If None, the value is automatically set to the complement of the test size.\",\n \"type\": \"other\",\n \"value\": \"\",\n \"valueType\": \"real\",\n \"valueNotBlank\": false,\n \"valueMultiple\": false,\n \"valueMin\": 0.0,\n \"valueMax\": 1.0\n}", "content_id": null, "type": "parameter_input"}, "8": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "d2838507-cedc-4a96-9388-3d9daf60e810", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 8, "uuid": "b172eb6f-3bd1-4f85-b402-0de697a371dd", "errors": null, "name": "Input parameter", "label": "randomState", "inputs": [], "position": {"top": 873, "left": 316.29998779296875}, "annotation": "{\n \"name\": \"random_state\",\n \"desc\": \"(Optional). It is the seed used by the random number generator.\",\n \"type\": \"other\",\n \"value\": \"\",\n \"valueType\": \"integer\",\n \"valueNotBlank\": false,\n \"valueMultiple\": false\n}", "content_id": null, "type": "parameter_input"}, "9": {"tool_id": null, "tool_version": null, "outputs": [], "workflow_outputs": [{"output_name": "output", "uuid": "88478641-78ec-4033-8ab2-79be70a37731", "label": null}], "input_connections": {}, "tool_state": "{\"optional\": false, \"parameter_type\": \"text\"}", "id": 9, "uuid": "277099e3-6af5-4d74-bcba-03fc8fa99ad5", "errors": null, "name": "Input parameter", "label": "shuffle", "inputs": [], "position": {"top": 937, "left": 375.29998779296875}, "annotation": "{\n \"name\": \"shuffle\",\n \"desc\": \"(Optional). Whether or not to shuffle the data before splitting.\",\n \"type\": \"other\",\n \"value\": \"False\",\n \"valueType\": \"string\",\n \"valueNotBlank\": false,\n \"valueMultiple\": false,\n \"valueEnumerations\": [\n \"True\",\n \"False\"\n ]\n}", "content_id": null, "type": "parameter_input"}, "10": {"tool_id": "HOLD_OUT_VALIDATION", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [], "input_connections": {"train_size": {"output_name": "output", "id": 7}, "shuffle": {"output_name": "output", "id": 9}, "dataset": {"output_name": "output", "id": 0}, "filter": {"output_name": "output", "id": 5}, "random_state": {"output_name": "output", "id": 8}, "test_size": {"output_name": "output", "id": 6}, "y": {"output_name": "output", "id": 3}, "x": {"output_name": "output", "id": 2}, "pathology": {"output_name": "output", "id": 1}}, "tool_state": "{\"train_size\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"shuffle\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"__page__\": null, \"__rerun_remap_job_id__\": null, \"dataset\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"filter\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"random_state\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"test_size\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"y\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"x\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"pathology\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\"}", "id": 10, "uuid": "36354bf6-58e4-42c9-b43c-5fe52ec2b536", "errors": null, "name": "Hold Out Validation", "post_job_actions": {"HideDatasetActionoutput": {"output_name": "output", "action_type": "HideDatasetAction", "action_arguments": {}}}, "label": null, "inputs": [], "position": {"top": 180, "left": 613.7999877929688}, "annotation": "", "content_id": "HOLD_OUT_VALIDATION", "type": "tool"}, "11": {"tool_id": "NAIVE_BAYES_TRAINING", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [], "input_connections": {"x": {"output_name": "output", "id": 2}, "dataset": {"output_name": "output", "id": 0}, "alpha": {"output_name": "output", "id": 4}, "y": {"output_name": "output", "id": 3}, "input": {"output_name": "output", "id": 10}, "pathology": {"output_name": "output", "id": 1}}, "tool_state": "{\"__page__\": null, \"input\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"__rerun_remap_job_id__\": null, \"dataset\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"alpha\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"y\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"x\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"pathology\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\"}", "id": 11, "uuid": "ceafefe9-3441-48b6-9beb-9576a194b785", "errors": null, "name": "Naive Bayes Training", "post_job_actions": {"HideDatasetActionoutput": {"output_name": "output", "action_type": "HideDatasetAction", "action_arguments": {}}}, "label": null, "inputs": [], "position": {"top": 543.3666687011719, "left": 678.36669921875}, "annotation": "", "content_id": "NAIVE_BAYES_TRAINING", "type": "tool"}, "12": {"tool_id": "NAIVE_BAYES_TESTING", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [], "input_connections": {"y": {"output_name": "output", "id": 3}, "input": {"output_name": "output", "id": 11}, "pathology": {"output_name": "output", "id": 1}, "x": {"output_name": "output", "id": 2}, "dataset": {"output_name": "output", "id": 0}}, "tool_state": "{\"__page__\": null, \"__rerun_remap_job_id__\": null, \"dataset\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"x\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"y\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"input\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"pathology\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\"}", "id": 12, "uuid": "c09e2412-3ad7-467f-adca-eb3d4acb2ce0", "errors": null, "name": "Naive Bayes Testing", "post_job_actions": {"HideDatasetActionoutput": {"output_name": "output", "action_type": "HideDatasetAction", "action_arguments": {}}}, "label": null, "inputs": [], "position": {"top": 805.433349609375, "left": 860.6666870117188}, "annotation": "", "content_id": "NAIVE_BAYES_TESTING", "type": "tool"}, "13": {"tool_id": "HEATMAP_HIGHCHART", "tool_version": "1.0.0", "outputs": [{"type": "json", "name": "output"}], "workflow_outputs": [{"output_name": "output", "uuid": "6c45b130-bbad-484e-abff-60c58adb5246", "label": null}], "input_connections": {"input": {"output_name": "output", "id": 12}}, "tool_state": "{\"__page__\": null, \"title\": \"\\\"Confusion Matrix\\\"\", \"__rerun_remap_job_id__\": null, \"xTitle\": \"\\\"Actual Class\\\"\", \"input\": \"{\\\"__class__\\\": \\\"ConnectedValue\\\"}\", \"yTitle\": \"\\\"Predicted Class\\\"\"}", "id": 13, "uuid": "5d6281ba-c6b4-4061-93ce-e3ede6d42abc", "errors": null, "name": "Heatmap Highchart", "post_job_actions": {}, "label": null, "inputs": [], "position": {"top": 559.2833404541016, "left": 1040.4666748046875}, "annotation": "", "content_id": "HEATMAP_HIGHCHART", "type": "tool"}}, "annotation": "", "a_galaxy_workflow": "true"}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment