diff --git a/workflows/ilp/db/package_data.json b/workflows/ilp/db/package_data.json index 7a45352ca22b49488ee5a1387f4abb3ca8021bc8..bc5c91bcf67cbc039077fd77a1e5dad2133530fb 100644 --- a/workflows/ilp/db/package_data.json +++ b/workflows/ilp/db/package_data.json @@ -1,6 +1,6 @@ [ { - "pk": 20, + "pk": 19, "model": "workflows.category", "fields": { "uid": "ed859be5-cc13-46b9-b249-c8f026732c1c", @@ -12,10 +12,10 @@ } }, { - "pk": 111, + "pk": 102, "model": "workflows.abstractwidget", "fields": { - "category": 20, + "category": 19, "treeview_image": "", "name": "Aleph", "is_streaming": false, @@ -27,6 +27,7 @@ "post_interact_action": "", "user": null, "visualization_view": "", + "streaming_visualization_view": "", "action": "ilp_aleph", "wsdl_method": "", "wsdl": "", @@ -37,10 +38,10 @@ } }, { - "pk": 211, + "pk": 188, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "mode", "short_name": "mod", "uid": "00b174f3-250d-4c47-9a60-b515e5260e0c", @@ -55,80 +56,80 @@ } }, { - "pk": 67, + "pk": 62, "model": "workflows.abstractoption", "fields": { "uid": "8e5631e5-6497-4720-9e26-5936619caf5c", - "abstract_input": 211, + "abstract_input": 188, "value": "induce", "name": "induce" } }, { - "pk": 68, + "pk": 63, "model": "workflows.abstractoption", "fields": { "uid": "92f66b17-02fd-4bb6-b4cb-03bb54b403f6", - "abstract_input": 211, + "abstract_input": 188, "value": "induce_constraints", "name": "induce_constraints" } }, { - "pk": 69, + "pk": 64, "model": "workflows.abstractoption", "fields": { "uid": "ce82b005-81e4-4997-80c3-05731651869a", - "abstract_input": 211, + "abstract_input": 188, "value": "induce_cover", "name": "induce_cover" } }, { - "pk": 70, + "pk": 65, "model": "workflows.abstractoption", "fields": { "uid": "968d079a-871c-4cae-b15e-c8e7b61f3b8c", - "abstract_input": 211, + "abstract_input": 188, "value": "induce_features", "name": "induce_features" } }, { - "pk": 71, + "pk": 66, "model": "workflows.abstractoption", "fields": { "uid": "0103c466-0e2e-47fe-b182-0a034beb7eed", - "abstract_input": 211, + "abstract_input": 188, "value": "induce_max", "name": "induce_max" } }, { - "pk": 72, + "pk": 67, "model": "workflows.abstractoption", "fields": { "uid": "78cb938d-16b8-4c7c-b712-b59e27aa837d", - "abstract_input": 211, + "abstract_input": 188, "value": "induce_modes", "name": "induce_modes" } }, { - "pk": 73, + "pk": 68, "model": "workflows.abstractoption", "fields": { "uid": "45f5cc84-b097-439a-9363-d2299c540913", - "abstract_input": 211, + "abstract_input": 188, "value": "induce_tree", "name": "induce_tree" } }, { - "pk": 212, + "pk": 189, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "pos", "short_name": "pos", "uid": "03788382-f3b9-4580-8e85-b600874ef643", @@ -143,10 +144,10 @@ } }, { - "pk": 213, + "pk": 190, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "neg", "short_name": "neg", "uid": "01529349-3300-41c5-8585-3f7a90175120", @@ -161,10 +162,10 @@ } }, { - "pk": 214, + "pk": 191, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "b", "short_name": "b", "uid": "2ec81e9e-d911-46a1-a95d-2eaf349443a8", @@ -179,10 +180,10 @@ } }, { - "pk": 215, + "pk": 192, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "settings", "short_name": "set", "uid": "bfe16b08-89b1-4835-875c-6b0302fb1da3", @@ -197,10 +198,10 @@ } }, { - "pk": 216, + "pk": 193, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "minpos", "short_name": "mps", "uid": "cdeaa39a-7eeb-40eb-9443-8519cb841d2e", @@ -215,10 +216,10 @@ } }, { - "pk": 217, + "pk": 194, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "noise", "short_name": "noi", "uid": "61292a9b-ff5b-4a7e-8baf-e6810cb50dcd", @@ -233,10 +234,10 @@ } }, { - "pk": 218, + "pk": 195, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "clauselength", "short_name": "cln", "uid": "546d3a62-b499-4e61-a9b1-4f89f24ba01f", @@ -251,10 +252,10 @@ } }, { - "pk": 219, + "pk": 196, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "depth", "short_name": "dpt", "uid": "3541b804-e8f3-42c5-b022-c0b7a51f05e1", @@ -269,10 +270,10 @@ } }, { - "pk": 220, + "pk": 197, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "evalfn", "short_name": "efn", "uid": "27ed0924-8fa9-4cad-b033-c0a98db9f366", @@ -287,130 +288,130 @@ } }, { - "pk": 74, + "pk": 69, "model": "workflows.abstractoption", "fields": { "uid": "abd779d2-8276-4b2d-909d-2b6053d1f30f", - "abstract_input": 220, + "abstract_input": 197, "value": "accuracy", "name": "accuracy" } }, { - "pk": 75, + "pk": 70, "model": "workflows.abstractoption", "fields": { "uid": "2ec2f418-657b-44f7-a420-83cb4f4baed5", - "abstract_input": 220, + "abstract_input": 197, "value": "auto_m", "name": "auto_m" } }, { - "pk": 76, + "pk": 71, "model": "workflows.abstractoption", "fields": { "uid": "66261b29-3313-4f85-b8ab-f277e49eb40b", - "abstract_input": 220, + "abstract_input": 197, "value": "compression", "name": "compression" } }, { - "pk": 77, + "pk": 72, "model": "workflows.abstractoption", "fields": { "uid": "427cd0aa-6d3c-457e-8762-cdc7ec6b8512", - "abstract_input": 220, + "abstract_input": 197, "value": "coverage", "name": "coverage" } }, { - "pk": 78, + "pk": 73, "model": "workflows.abstractoption", "fields": { "uid": "bdf9d407-95af-4b42-b923-a027c45b0f26", - "abstract_input": 220, + "abstract_input": 197, "value": "entropy", "name": "entropy" } }, { - "pk": 79, + "pk": 74, "model": "workflows.abstractoption", "fields": { "uid": "ddc2bde8-7143-4e8f-9e6b-cdcaea871e27", - "abstract_input": 220, + "abstract_input": 197, "value": "gini", "name": "gini" } }, { - "pk": 80, + "pk": 75, "model": "workflows.abstractoption", "fields": { "uid": "0c4fd002-57a6-40b5-ac0f-e98cc62aa957", - "abstract_input": 220, + "abstract_input": 197, "value": "laplace", "name": "laplace" } }, { - "pk": 81, + "pk": 76, "model": "workflows.abstractoption", "fields": { "uid": "2d764051-9dca-42f2-b131-2a87576c21d7", - "abstract_input": 220, + "abstract_input": 197, "value": "mestimate", "name": "mestimate" } }, { - "pk": 82, + "pk": 77, "model": "workflows.abstractoption", "fields": { "uid": "0684bf39-09a5-4499-8939-51a58fcc2446", - "abstract_input": 220, + "abstract_input": 197, "value": "pbayes", "name": "pbayes" } }, { - "pk": 83, + "pk": 78, "model": "workflows.abstractoption", "fields": { "uid": "ecfbee4f-ce81-40ed-80a2-d53e04e9c7d3", - "abstract_input": 220, + "abstract_input": 197, "value": "posonly", "name": "posonly" } }, { - "pk": 84, + "pk": 79, "model": "workflows.abstractoption", "fields": { "uid": "775058c3-7763-4af7-bcf4-b629d1c0e6f1", - "abstract_input": 220, + "abstract_input": 197, "value": "sd", "name": "sd" } }, { - "pk": 85, + "pk": 80, "model": "workflows.abstractoption", "fields": { "uid": "14e08667-f530-43e6-b932-b8e2ac394ea4", - "abstract_input": 220, + "abstract_input": 197, "value": "wracc", "name": "wracc" } }, { - "pk": 221, + "pk": 198, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "i", "short_name": "i", "uid": "48905a20-0192-40c0-82de-2389e8fdc88e", @@ -425,10 +426,10 @@ } }, { - "pk": 222, + "pk": 199, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "language", "short_name": "lan", "uid": "9de49bde-7518-4116-8606-eccc134d1d8f", @@ -443,10 +444,10 @@ } }, { - "pk": 223, + "pk": 200, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "m", "short_name": "m", "uid": "b07b2b85-bc8f-4dfc-aaf8-800b94077312", @@ -461,10 +462,10 @@ } }, { - "pk": 224, + "pk": 201, "model": "workflows.abstractinput", "fields": { - "widget": 111, + "widget": 102, "name": "max_features", "short_name": "mxf", "uid": "4a275a37-e6bc-4b22-816d-b45e2ac791e2", @@ -479,10 +480,10 @@ } }, { - "pk": 128, + "pk": 113, "model": "workflows.abstractoutput", "fields": { - "widget": 111, + "widget": 102, "name": "theory", "short_name": "the", "variable": "theory", @@ -492,10 +493,10 @@ } }, { - "pk": 112, + "pk": 103, "model": "workflows.abstractwidget", "fields": { - "category": 20, + "category": 19, "treeview_image": "", "name": "RSD", "is_streaming": false, @@ -507,6 +508,7 @@ "post_interact_action": "", "user": null, "visualization_view": "", + "streaming_visualization_view": "", "action": "ilp_rsd", "wsdl_method": "", "wsdl": "", @@ -517,10 +519,10 @@ } }, { - "pk": 225, + "pk": 202, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "examples", "short_name": "ex", "uid": "817a82dc-2264-4181-a31a-6a7ff2b6c882", @@ -535,10 +537,10 @@ } }, { - "pk": 226, + "pk": 203, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "b", "short_name": "b", "uid": "746dac3a-bcf9-4546-b0cb-ccfea866707a", @@ -553,10 +555,10 @@ } }, { - "pk": 227, + "pk": 204, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "clauselength", "short_name": "cln", "uid": "d840e1d9-5bd1-4004-94ec-6acd5b3c9910", @@ -571,10 +573,10 @@ } }, { - "pk": 228, + "pk": 205, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "pos", "short_name": "pos", "uid": "676ef826-7dd9-415a-8a8a-d82146dcc95a", @@ -589,10 +591,10 @@ } }, { - "pk": 229, + "pk": 206, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "depth", "short_name": "dpt", "uid": "bed46927-aa71-46a4-9022-8219cd2f59ca", @@ -607,10 +609,10 @@ } }, { - "pk": 230, + "pk": 207, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "neg", "short_name": "neg", "uid": "0b46921d-50fe-46b1-a1e4-67c918160a7f", @@ -625,10 +627,10 @@ } }, { - "pk": 231, + "pk": 208, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "negation", "short_name": "neg", "uid": "bfff50a5-ed9b-4e3f-bfb0-e6d135a60f38", @@ -643,40 +645,40 @@ } }, { - "pk": 86, + "pk": 81, "model": "workflows.abstractoption", "fields": { "uid": "45656c1d-a666-4689-a37d-79a7d3b9c603", - "abstract_input": 231, + "abstract_input": 208, "value": "later", "name": "later" } }, { - "pk": 87, + "pk": 82, "model": "workflows.abstractoption", "fields": { "uid": "230d9101-6512-4f09-8a83-727be3fa4c74", - "abstract_input": 231, + "abstract_input": 208, "value": "none", "name": "none" } }, { - "pk": 88, + "pk": 83, "model": "workflows.abstractoption", "fields": { "uid": "79eec714-165c-4d67-9eb5-8f0ebe9a374f", - "abstract_input": 231, + "abstract_input": 208, "value": "now", "name": "now" } }, { - "pk": 232, + "pk": 209, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "settings", "short_name": "set", "uid": "a1660c9f-952d-4f29-9f23-9b0be5fe8cea", @@ -691,10 +693,10 @@ } }, { - "pk": 233, + "pk": 210, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "min_coverage", "short_name": "mcv", "uid": "0864df0d-3e46-4af2-9ea3-2ccbfe33034a", @@ -709,10 +711,10 @@ } }, { - "pk": 234, + "pk": 211, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "filtering", "short_name": "flt", "uid": "f510c2a1-454f-4ef8-b346-aba39a41ce24", @@ -727,30 +729,30 @@ } }, { - "pk": 89, + "pk": 84, "model": "workflows.abstractoption", "fields": { "uid": "56d3293d-9d78-437e-821d-e478018e1988", - "abstract_input": 234, + "abstract_input": 211, "value": "false", "name": "false" } }, { - "pk": 90, + "pk": 85, "model": "workflows.abstractoption", "fields": { "uid": "1b3a141e-2da8-4e58-9e2d-4055ee8e8470", - "abstract_input": 234, + "abstract_input": 211, "value": "true", "name": "true" } }, { - "pk": 235, + "pk": 212, "model": "workflows.abstractinput", "fields": { - "widget": 112, + "widget": 103, "name": "subgroups", "short_name": "sg", "uid": "1c982c21-0b97-40d1-a35e-30ba16342b00", @@ -765,10 +767,10 @@ } }, { - "pk": 129, + "pk": 114, "model": "workflows.abstractoutput", "fields": { - "widget": 112, + "widget": 103, "name": "features", "short_name": "frs", "variable": "features", @@ -778,10 +780,10 @@ } }, { - "pk": 130, + "pk": 115, "model": "workflows.abstractoutput", "fields": { - "widget": 112, + "widget": 103, "name": "arff", "short_name": "arf", "variable": "arff", @@ -791,10 +793,10 @@ } }, { - "pk": 131, + "pk": 116, "model": "workflows.abstractoutput", "fields": { - "widget": 112, + "widget": 103, "name": "rules", "short_name": "rul", "variable": "rules", @@ -804,10 +806,10 @@ } }, { - "pk": 135, + "pk": 226, "model": "workflows.abstractwidget", "fields": { - "category": 20, + "category": 19, "treeview_image": "", "name": "SDM-Aleph", "is_streaming": false, @@ -819,6 +821,7 @@ "post_interact_action": "", "user": null, "visualization_view": "", + "streaming_visualization_view": "", "action": "ilp_sdmaleph", "wsdl_method": "", "wsdl": "", @@ -829,10 +832,10 @@ } }, { - "pk": 323, + "pk": 596, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "examples", "short_name": "ex", "uid": "b82c4d43-f585-456f-824b-6ce47e27866f", @@ -847,10 +850,10 @@ } }, { - "pk": 324, + "pk": 597, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "mapping", "short_name": "map", "uid": "cd4ab84b-91c7-42ed-bbb2-66c4a2d36fe0", @@ -865,10 +868,10 @@ } }, { - "pk": 325, + "pk": 598, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "ontology", "short_name": "ont", "uid": "22bfc647-3185-44dd-8f7f-89fc4cc4dd87", @@ -883,10 +886,10 @@ } }, { - "pk": 326, + "pk": 599, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "relation", "short_name": "rel", "uid": "d22cec50-3393-4e9b-8ef3-228e959dc574", @@ -901,10 +904,10 @@ } }, { - "pk": 327, + "pk": 600, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "positive class val", "short_name": "pcl", "uid": "ad84f724-9935-4a3a-90b2-a4af70721477", @@ -919,10 +922,10 @@ } }, { - "pk": 328, + "pk": 601, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "cutoff", "short_name": "cut", "uid": "0e5b7e98-aaa2-481d-b2d1-5b339a05b754", @@ -937,10 +940,10 @@ } }, { - "pk": 329, + "pk": 602, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "minimum TP", "short_name": "min", "uid": "b2bbe491-8cf3-4ec7-b7a5-f52426ab9285", @@ -955,10 +958,10 @@ } }, { - "pk": 330, + "pk": 603, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "maximum FP", "short_name": "noi", "uid": "87adfb36-8ca2-4c60-b404-c81e05485e00", @@ -973,10 +976,10 @@ } }, { - "pk": 331, + "pk": 604, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "clause length", "short_name": "cl", "uid": "f51f11b5-a9c4-43cd-a337-a9f6e6e64992", @@ -991,10 +994,10 @@ } }, { - "pk": 332, + "pk": 605, "model": "workflows.abstractinput", "fields": { - "widget": 135, + "widget": 226, "name": "data format", "short_name": "fmt", "uid": "e3ae46df-56bf-4137-97bc-a98214dd6525", @@ -1009,10 +1012,10 @@ } }, { - "pk": 165, + "pk": 263, "model": "workflows.abstractoutput", "fields": { - "widget": 135, + "widget": 226, "name": "theory", "short_name": "the", "variable": "theory", @@ -1022,10 +1025,10 @@ } }, { - "pk": 136, + "pk": 227, "model": "workflows.abstractwidget", "fields": { - "category": 20, + "category": 19, "treeview_image": "", "name": "SDM-SEGS", "is_streaming": false, @@ -1037,6 +1040,7 @@ "post_interact_action": "", "user": 1, "visualization_view": "", + "streaming_visualization_view": "", "action": "call_webservice", "wsdl_method": "sdmsegs", "wsdl": "http://vihar.ijs.si:8096/", @@ -1047,10 +1051,10 @@ } }, { - "pk": 333, + "pk": 606, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "Timeout", "short_name": "to", "uid": "d8412f16-25bd-4109-8208-12be9bd4fa17", @@ -1065,10 +1069,10 @@ } }, { - "pk": 334, + "pk": 607, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "Send empty strings to webservices", "short_name": "ses", "uid": "0efe46b1-f1f4-4811-aacf-5f97a23e925d", @@ -1083,10 +1087,10 @@ } }, { - "pk": 335, + "pk": 608, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "ont3", "short_name": "ont", "uid": "5b1a953e-0cf6-401b-81ce-f1773e0ca1f9", @@ -1101,10 +1105,10 @@ } }, { - "pk": 336, + "pk": 609, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "ont2", "short_name": "ont", "uid": "3b0d4d2e-177e-4054-81d1-a841f4761f94", @@ -1119,10 +1123,10 @@ } }, { - "pk": 337, + "pk": 610, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "ont1", "short_name": "ont", "uid": "5a86e8aa-9230-4bd3-80f2-3b2bc2ebc2b8", @@ -1137,10 +1141,10 @@ } }, { - "pk": 338, + "pk": 611, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "generalTerms", "short_name": "gen", "uid": "141f075c-3634-4d6e-8254-fd9afbaa0eb7", @@ -1155,10 +1159,10 @@ } }, { - "pk": 339, + "pk": 612, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "interactions", "short_name": "int", "uid": "303998af-0f97-4895-b5fb-1ec57f0ab706", @@ -1173,10 +1177,10 @@ } }, { - "pk": 340, + "pk": 613, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "maxNumTerms", "short_name": "max", "uid": "8cbf4e91-616c-4b35-a16e-86c6ca1e2dd4", @@ -1191,10 +1195,10 @@ } }, { - "pk": 341, + "pk": 614, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "ont4", "short_name": "ont", "uid": "0c790fc0-5f7f-4117-9b9f-dae365eb88f4", @@ -1209,10 +1213,10 @@ } }, { - "pk": 342, + "pk": 615, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "mapping", "short_name": "map", "uid": "e9b6fee9-ca19-4aaf-9acf-9ecb98f11f5b", @@ -1227,10 +1231,10 @@ } }, { - "pk": 343, + "pk": 616, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "weightGSEA", "short_name": "wei", "uid": "3e15d380-742f-4134-8093-097e053bdccb", @@ -1245,10 +1249,10 @@ } }, { - "pk": 344, + "pk": 617, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "wracc_k", "short_name": "wra", "uid": "cb312cf6-2e82-4f17-8f36-8b0f8d17a8e0", @@ -1263,10 +1267,10 @@ } }, { - "pk": 345, + "pk": 618, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "maximalPvalue", "short_name": "max", "uid": "b2b31c12-b1aa-4b7f-ace7-005035b92ed7", @@ -1281,10 +1285,10 @@ } }, { - "pk": 346, + "pk": 619, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "legacy", "short_name": "leg", "uid": "15610106-cd5b-4dee-a3d1-ead67a3dc546", @@ -1299,10 +1303,10 @@ } }, { - "pk": 347, + "pk": 620, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "maxReported", "short_name": "max", "uid": "86a886d5-7acc-41b4-9f01-09505385550c", @@ -1317,10 +1321,10 @@ } }, { - "pk": 348, + "pk": 621, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "dataFormat", "short_name": "dat", "uid": "3ffa0341-a80e-47f5-bf77-488ef678dafa", @@ -1335,10 +1339,10 @@ } }, { - "pk": 349, + "pk": 622, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "minimalSetSize", "short_name": "min", "uid": "c71c5076-fc5b-4b4e-823c-68350224caef", @@ -1353,10 +1357,10 @@ } }, { - "pk": 350, + "pk": 623, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "weightFisher", "short_name": "wei", "uid": "fd4cc0d1-621d-43da-b03a-e938b104011d", @@ -1371,10 +1375,10 @@ } }, { - "pk": 351, + "pk": 624, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "posClassVal", "short_name": "pos", "uid": "f78ab9ea-d0aa-41e4-afc2-383f0c74ce5d", @@ -1389,10 +1393,10 @@ } }, { - "pk": 352, + "pk": 625, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "cutoff", "short_name": "cut", "uid": "5a8a4fce-7d56-43c8-9a88-1cc35969d27f", @@ -1407,10 +1411,10 @@ } }, { - "pk": 353, + "pk": 626, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "inputData", "short_name": "inp", "uid": "4b925bc7-8605-472b-856d-35c0ec4441d2", @@ -1425,10 +1429,10 @@ } }, { - "pk": 354, + "pk": 627, "model": "workflows.abstractinput", "fields": { - "widget": 136, + "widget": 227, "name": "weightPAGE", "short_name": "wei", "uid": "22268dfd-5362-45b8-bcec-8bbfa547b826", @@ -1443,10 +1447,10 @@ } }, { - "pk": 166, + "pk": 264, "model": "workflows.abstractoutput", "fields": { - "widget": 136, + "widget": 227, "name": "rules", "short_name": "rls", "variable": "rules", @@ -1456,10 +1460,10 @@ } }, { - "pk": 137, + "pk": 228, "model": "workflows.abstractwidget", "fields": { - "category": 20, + "category": 19, "treeview_image": "", "name": "SDM-SEGS Rule Viewer", "is_streaming": false, @@ -1471,6 +1475,7 @@ "post_interact_action": "", "user": null, "visualization_view": "ilp_sdmsegs_rule_viewer", + "streaming_visualization_view": "", "action": "ilp_sdmsegs_rule_viewer", "wsdl_method": "", "wsdl": "", @@ -1481,10 +1486,10 @@ } }, { - "pk": 355, + "pk": 628, "model": "workflows.abstractinput", "fields": { - "widget": 137, + "widget": 228, "name": "SDM-SEGS rules", "short_name": "rls", "uid": "06cc9c5e-9250-423b-9c1e-6468f965284a", @@ -1499,10 +1504,121 @@ } }, { - "pk": 113, + "pk": 200, "model": "workflows.abstractwidget", "fields": { - "category": 20, + "category": 19, + "treeview_image": "", + "name": "Wordification", + "is_streaming": false, + "uid": "63f936a1-6841-44c5-8340-8e4f3fef4f6a", + "interaction_view": "", + "image": "", + "package": "ilp", + "static_image": "wordification.jpg", + "post_interact_action": "", + "user": null, + "visualization_view": "", + "streaming_visualization_view": "", + "action": "ilp_wordification", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, + "description": "" + } + }, + { + "pk": 531, + "model": "workflows.abstractinput", + "fields": { + "widget": 200, + "name": "target_table", + "short_name": "odt", + "uid": "f1b77c89-ed7b-4181-9f62-c2001fd7c388", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "target_table", + "parameter": false, + "order": 1, + "description": "Orange data table" + } + }, + { + "pk": 532, + "model": "workflows.abstractinput", + "fields": { + "widget": 200, + "name": "feature n-grams", + "short_name": "fng", + "uid": "b5eea832-1712-4db1-a677-92deca4e7a75", + "default": "1", + "required": false, + "multi": false, + "parameter_type": "text", + "variable": "f_ngram_size", + "parameter": true, + "order": 2, + "description": "Construct words out of upto n features" + } + }, + { + "pk": 533, + "model": "workflows.abstractinput", + "fields": { + "widget": 200, + "name": "other_tables", + "short_name": "lot", + "uid": "72854a26-f7bf-46a3-988e-61caaeabdc7a", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "other_tables", + "parameter": false, + "order": 3, + "description": "List of Orange data tables" + } + }, + { + "pk": 534, + "model": "workflows.abstractinput", + "fields": { + "widget": 200, + "name": "context", + "short_name": "ctx", + "uid": "8f02978b-e0d7-45c5-ab74-6a0e8728654d", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "context", + "parameter": false, + "order": 4, + "description": "Context" + } + }, + { + "pk": 233, + "model": "workflows.abstractoutput", + "fields": { + "widget": 200, + "name": "Document corpus", + "short_name": "crp", + "variable": "corpus", + "uid": "43b6d258-31a8-4ec8-a22a-e8927eeca602", + "order": 1, + "description": "Result of wordification for main target table" + } + }, + { + "pk": 229, + "model": "workflows.abstractwidget", + "fields": { + "category": 19, "treeview_image": "", "name": "Wordification", "is_streaming": false, @@ -1514,6 +1630,7 @@ "post_interact_action": "", "user": null, "visualization_view": "", + "streaming_visualization_view": "", "action": "ilp_wordification", "wsdl_method": "", "wsdl": "", @@ -1524,10 +1641,10 @@ } }, { - "pk": 236, + "pk": 629, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "target_table", "short_name": "odt", "uid": "81dce274-b516-4121-b7a2-f6352da1183b", @@ -1542,10 +1659,10 @@ } }, { - "pk": 237, + "pk": 630, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "other_tables", "short_name": "lot", "uid": "8bf57c55-4c0c-451a-91e4-36fca2e61cfe", @@ -1560,10 +1677,10 @@ } }, { - "pk": 238, + "pk": 631, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "context", "short_name": "ctx", "uid": "d3035919-8ecf-408f-812b-2d5cb84029e9", @@ -1578,10 +1695,10 @@ } }, { - "pk": 239, + "pk": 632, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "noise", "short_name": "noi", "uid": "2a5f9df6-1ab1-4c0b-ae1a-8fa2ba9fcc92", @@ -1596,10 +1713,10 @@ } }, { - "pk": 240, + "pk": 633, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "clauselength", "short_name": "cln", "uid": "8c282c42-ad00-4cdc-b4ef-e788f329702e", @@ -1614,10 +1731,10 @@ } }, { - "pk": 241, + "pk": 634, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "depth", "short_name": "dpt", "uid": "b9cdf1a0-65c1-44ba-8203-873392939fbc", @@ -1632,10 +1749,10 @@ } }, { - "pk": 242, + "pk": 635, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "evalfn", "short_name": "efn", "uid": "4cf0000d-c4c7-4af3-bb6b-9d571d2a18d1", @@ -1650,10 +1767,10 @@ } }, { - "pk": 243, + "pk": 636, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "i", "short_name": "i", "uid": "ae429c42-e945-4191-a576-f2a5ad5defe8", @@ -1668,10 +1785,10 @@ } }, { - "pk": 244, + "pk": 637, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "language", "short_name": "lan", "uid": "2ddde27d-f3fe-4fc5-a8c1-73e5a8d6354e", @@ -1686,10 +1803,10 @@ } }, { - "pk": 245, + "pk": 638, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "m", "short_name": "m", "uid": "835b85dd-7047-4f05-b60c-649e4814a711", @@ -1704,10 +1821,10 @@ } }, { - "pk": 246, + "pk": 639, "model": "workflows.abstractinput", "fields": { - "widget": 113, + "widget": 229, "name": "max_features", "short_name": "mxf", "uid": "e4a6db3f-2610-4cdd-b75f-5f8bf9939473", @@ -1722,10 +1839,10 @@ } }, { - "pk": 132, + "pk": 265, "model": "workflows.abstractoutput", "fields": { - "widget": 113, + "widget": 229, "name": "Document corpus", "short_name": "crp", "variable": "corpus", @@ -1733,5 +1850,105 @@ "order": 1, "description": "Result of wordification for main target table" } + }, + { + "pk": 18, + "model": "workflows.category", + "fields": { + "uid": "ed2728bc-3fd5-4244-9876-f6a757d1b922", + "parent": null, + "workflow": null, + "user": null, + "order": 1, + "name": "Performance Evaluation" + } + }, + { + "pk": 109, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "", + "name": "Benchmark", + "is_streaming": false, + "uid": "e1cbb004-bf2a-4759-8437-dc88a207a5c4", + "interaction_view": "", + "image": "", + "package": "ilp", + "static_image": "wordification.jpg", + "post_interact_action": "", + "user": null, + "visualization_view": "", + "streaming_visualization_view": "", + "action": "benchmark", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, + "description": "" + } + }, + { + "pk": 463, + "model": "workflows.abstractinput", + "fields": { + "widget": 109, + "name": "Inp", + "short_name": "inp", + "uid": "9b13d7e8-ad7c-42ff-80b6-cc6da10e2a46", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "in_att", + "parameter": false, + "order": 1, + "description": "Construct words out of upto n features" + } + }, + { + "pk": 221, + "model": "workflows.abstractinput", + "fields": { + "widget": 109, + "name": "start_time", + "short_name": "tim", + "uid": "f9b697a4-8909-49f5-8de8-d09759061221", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "start_time", + "parameter": false, + "order": 2, + "description": "Start time" + } + }, + { + "pk": 234, + "model": "workflows.abstractoutput", + "fields": { + "widget": 109, + "name": "Output", + "short_name": "out", + "variable": "out_att", + "uid": "efe0366c-87f3-435d-a8b2-521d2418a1c4", + "order": 1, + "description": "Output" + } + }, + { + "pk": 125, + "model": "workflows.abstractoutput", + "fields": { + "widget": 109, + "name": "Start time", + "short_name": "tim", + "variable": "time_diff", + "uid": "98bdde2f-df1f-49bd-988c-aaa82d86f8f2", + "order": 2, + "description": "Start time" + } } ] \ No newline at end of file diff --git a/workflows/ilp/library.py b/workflows/ilp/library.py index 39beef253bb545bb509c21756030c83b9c7b667d..17eb82af7b3178281a6496383c72e4e3851b6ee1 100644 --- a/workflows/ilp/library.py +++ b/workflows/ilp/library.py @@ -89,5 +89,7 @@ def ilp_wordification(input_dict): target_table = input_dict.get('target_table',None) other_tables = input_dict.get('other_tables', None) context = input_dict.get('context', None) - wordification = Wordification(target_table,other_tables,context) + word_att_length = int(input_dict.get('f_ngram_size', 1)) + wordification = Wordification(target_table,other_tables,context,word_att_length) + return {'corpus' : wordification.wordify()} diff --git a/workflows/ilp/wordification/wordification.py b/workflows/ilp/wordification/wordification.py index 5b63b2aa756b1fe38ee00b3b5b8d8573f8e449a5..45af17395b43a2bf3e0bbcb02125671749d24389 100644 --- a/workflows/ilp/wordification/wordification.py +++ b/workflows/ilp/wordification/wordification.py @@ -2,7 +2,7 @@ from collections import defaultdict import string class Wordification(object): - def __init__(self,target_table,other_tables,context): + def __init__(self,target_table,other_tables,context,word_att_length): """ Wordification object constructor. @@ -12,57 +12,133 @@ class Wordification(object): self.target_table=target_table self.other_tables=other_tables self.context=context + self.word_att_length=word_att_length self.connecting_tables=defaultdict(list) self.cached_sentences=defaultdict(dict) self.lll=defaultdict(int) + + #finds table connections for primary_table in [target_table]+other_tables: for secondary_table in [target_table]+other_tables: if (primary_table.name,secondary_table.name) in self.context.connected: for primary_key,foreign_key in self.context.connected[(primary_table.name,secondary_table.name)]: if self.context.pkeys[primary_table.name] == primary_key: - self.connecting_tables[primary_table].append((secondary_table,foreign_key)) + self.connecting_tables[primary_table].append((secondary_table,foreign_key,None)) + #else: + # self.connecting_tables[primary_table].append((secondary_table,primary_key,foreign_key)) + + + + + self.index_by_value={} + for table in [target_table]+other_tables: + self.index_by_value[table.name]={} + for sec_t,sec_fkey,prim_fkey in [item for sublist in self.connecting_tables.values() for item in sublist]: + #if sec_t==table: + if not prim_fkey: + self.index_by_value[sec_t.name][sec_fkey]=defaultdict(list) + for ex in sec_t: + self.index_by_value[sec_t.name][sec_fkey][str(ex[str(sec_fkey)])].append(ex) + else: + if not prim_fkey in self.index_by_value[sec_t.name]: + self.index_by_value[sec_t.name][prim_fkey]=defaultdict(list) + + for ex in sec_t: + self.index_by_value[sec_t.name][prim_fkey][str(ex[str(prim_fkey)])].append(ex) + + print self.connecting_tables def wordify(self): """ Applies the wordification methodology on the target table """ - s=string.join(["!"+str(ex.get_class())+" "+string.join(self.wordify_example(self.target_table,ex)," ") for ex in self.target_table],"\n") - print sorted(self.lll.items(),key=lambda k: [k[1],k[0]],reverse=True) - return s - def wordify_example(self,data,ex): + #class + wordification on every example of the main table + + a=[] + for i,ex in enumerate(self.target_table): + a.append("!"+str(ex.get_class())+" "+string.join(self.wordify_example(self.target_table,ex)," ")) + + s=string.join(a,"\n") + #print sorted(self.lll.items(),key=lambda k: [k[1],k[0]],reverse=True) + #print a + #print "s" + return s#[0:10000000] + + def wordify_example(self,data,ex,searched_connections=set([])): """ Recursively constructs the 'wordification' document for the given example. @param data The given examples ExampleTable @param ex Example for which the document is constructed """ + debug=False data_name=str(data.name) + if data_name=="ring_strucs": + print data_name + if debug: + print "======================================" + print "example:",ex + print "table name:", data_name + print "searched_connections:",len(searched_connections),searched_connections + print "connecting_tables:",len(self.connecting_tables[data]),self.connecting_tables[data] + ex_pkey_value=data.name in self.context.pkeys and ex[str(self.context.pkeys[data.name])] self.lll[data_name+" "+str(ex_pkey_value)]+=1 if not data_name in self.cached_sentences or not str(ex_pkey_value) in self.cached_sentences[data.name]: #else: - print data_name,str(ex_pkey_value) + #print data_name,str(ex_pkey_value) words=[] #word list for every example - + if debug: + print "words:",len(words) #Construct words (tableName_attributeName_attributeValue) from the given table for att in data.domain.attributes: if not str(att.name) in self.context.pkeys[data.name] and not str(att.name) in self.context.fkeys[data.name]: words.append(self.att_to_s(data.name)+"_"+self.att_to_s(att.name)+"_"+self.att_to_s(ex[att])) - #Apply the wordification methodology recursively on all connecting tables - for sec_t,sec_fkey in self.connecting_tables[data]: - for sec_ex in sec_t: - if ex_pkey_value and sec_ex[str(sec_fkey)]==ex_pkey_value: - words+=self.wordify_example(sec_t,sec_ex) - #print words + #words from pairs of attributes + single_words=words[:] + if self.word_att_length>1: + for i,att1 in enumerate(single_words): + for j,att2 in enumerate(single_words): + if i2: + for i,att1 in enumerate(single_words): + for j,att2 in enumerate(single_words): + for k,att3 in enumerate(single_words): + if iTableReferenced tableColumnReferenced column - {% for tables, cols in context.connected.items %} + {% for tables, cols in connections.items %} {% for cols_inner in cols %} {{tables.0}}{{tables.1}}{{cols_inner.0}}{{cols_inner.1}} {% endfor %} diff --git a/workflows/perfeval/db/package_data.json b/workflows/perfeval/db/package_data.json index a46de22758d5744ceb0c5cd8b0d028415427de94..2b73bb681948843e968ab2bc536f84e0373c4519 100644 --- a/workflows/perfeval/db/package_data.json +++ b/workflows/perfeval/db/package_data.json @@ -1,510 +1,516 @@ [ { - "pk": 48, - "model": "workflows.category", - "fields": { - "uid": "ed2728bc-3fd5-4244-9876-f6a757d1b922", - "parent": null, - "workflow": null, - "user": null, - "order": 1, + "pk": 18, + "model": "workflows.category", + "fields": { + "uid": "ed2728bc-3fd5-4244-9876-f6a757d1b922", + "parent": null, + "workflow": null, + "user": null, + "order": 1, "name": "Performance Evaluation" } - }, - { - "pk": 120, - "model": "workflows.abstractwidget", - "fields": { - "category": 48, - "treeview_image": "treeview/aggregate-icon.png", - "name": "Aggregate Detection Results", - "is_streaming": false, - "uid": "17cf3814-1edd-4c0c-84dd-e1198c033584", - "interaction_view": "", - "image": "images/aggregate-icon.png", - "package": "perfeval", - "static_image": "", - "post_interact_action": "", - "user": null, - "visualization_view": "", - "action": "aggr_results", - "wsdl_method": "", - "wsdl": "", - "interactive": false, - "has_progress_bar": false, - "order": 1, + }, + { + "pk": 96, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "treeview/aggregate-icon.png", + "name": "Aggregate Detection Results", + "is_streaming": false, + "uid": "17cf3814-1edd-4c0c-84dd-e1198c033584", + "interaction_view": "", + "image": "images/aggregate-icon.png", + "package": "perfeval", + "static_image": "", + "post_interact_action": "", + "user": null, + "visualization_view": "", + "streaming_visualization_view": "", + "action": "aggr_results", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, "description": "" } - }, - { - "pk": 267, - "model": "workflows.abstractinput", - "fields": { - "widget": 120, - "name": "Positive Indices", - "short_name": "psi", - "uid": "91cfd170-b37a-457e-9077-285c6e88a408", - "default": "", - "required": false, - "multi": false, - "parameter_type": null, - "variable": "pos_inds", - "parameter": false, - "order": 1, + }, + { + "pk": 177, + "model": "workflows.abstractinput", + "fields": { + "widget": 96, + "name": "Positive Indices", + "short_name": "psi", + "uid": "91cfd170-b37a-457e-9077-285c6e88a408", + "default": "", + "required": false, + "multi": false, + "parameter_type": null, + "variable": "pos_inds", + "parameter": false, + "order": 1, "description": "" } - }, - { - "pk": 268, - "model": "workflows.abstractinput", - "fields": { - "widget": 120, - "name": "Detected Instances", - "short_name": "dti", - "uid": "da95100a-ec91-46d7-9244-b642aab9bf0d", - "default": "", - "required": false, - "multi": true, - "parameter_type": null, - "variable": "detected_inds", - "parameter": false, - "order": 2, + }, + { + "pk": 178, + "model": "workflows.abstractinput", + "fields": { + "widget": 96, + "name": "Detected Instances", + "short_name": "dti", + "uid": "da95100a-ec91-46d7-9244-b642aab9bf0d", + "default": "", + "required": false, + "multi": true, + "parameter_type": null, + "variable": "detected_inds", + "parameter": false, + "order": 2, "description": "" } - }, + }, { - "pk": 125, - "model": "workflows.abstractoutput", + "pk": 110, + "model": "workflows.abstractoutput", "fields": { - "widget": 120, - "name": "Aggregated Detection Results", - "short_name": "adr", - "variable": "aggr_dict", - "uid": "d5a86b48-af73-486a-9f0b-6d15261fa743", - "order": 1, + "widget": 96, + "name": "Aggregated Detection Results", + "short_name": "adr", + "variable": "aggr_dict", + "uid": "d5a86b48-af73-486a-9f0b-6d15261fa743", + "order": 1, "description": "" } - }, - { - "pk": 107, - "model": "workflows.abstractwidget", - "fields": { - "category": 48, - "treeview_image": "treeview/Evaluate.png", - "name": "Evaluate Detection Algorithms", - "is_streaming": false, - "uid": "0b604a1d-f188-4e74-bcda-188829c507c0", - "interaction_view": "", - "image": "images/Evaluate.png", - "package": "perfeval", - "static_image": "", - "post_interact_action": "", - "user": null, - "visualization_view": "", - "action": "eval_noise_detection", - "wsdl_method": "", - "wsdl": "", - "interactive": false, - "has_progress_bar": false, - "order": 1, + }, + { + "pk": 97, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "treeview/Evaluate.png", + "name": "Evaluate Detection Algorithms", + "is_streaming": false, + "uid": "0b604a1d-f188-4e74-bcda-188829c507c0", + "interaction_view": "", + "image": "images/Evaluate.png", + "package": "perfeval", + "static_image": "", + "post_interact_action": "", + "user": null, + "visualization_view": "", + "streaming_visualization_view": "", + "action": "eval_noise_detection", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, "description": "" } - }, - { - "pk": 245, - "model": "workflows.abstractinput", - "fields": { - "widget": 107, - "name": "Noisy Instances", - "short_name": "nid", - "uid": "a386be60-c5ad-4565-bbab-3fb41266d233", - "default": "", - "required": true, - "multi": false, - "parameter_type": null, - "variable": "noisy_inds", - "parameter": false, - "order": 1, + }, + { + "pk": 179, + "model": "workflows.abstractinput", + "fields": { + "widget": 97, + "name": "Noisy Instances", + "short_name": "nid", + "uid": "a386be60-c5ad-4565-bbab-3fb41266d233", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "noisy_inds", + "parameter": false, + "order": 1, "description": "" } - }, - { - "pk": 246, - "model": "workflows.abstractinput", - "fields": { - "widget": 107, - "name": "Detected Noise", - "short_name": "dni", - "uid": "345a8672-386a-4bc5-b7ff-d7a3a9ee4b0c", - "default": "", - "required": true, - "multi": true, - "parameter_type": null, - "variable": "detected_noise", - "parameter": false, - "order": 2, + }, + { + "pk": 180, + "model": "workflows.abstractinput", + "fields": { + "widget": 97, + "name": "Detected Noise", + "short_name": "dni", + "uid": "345a8672-386a-4bc5-b7ff-d7a3a9ee4b0c", + "default": "", + "required": true, + "multi": true, + "parameter_type": null, + "variable": "detected_noise", + "parameter": false, + "order": 2, "description": "" } - }, - { - "pk": 247, - "model": "workflows.abstractinput", - "fields": { - "widget": 107, - "name": "Beta parameter for F-mesure ", - "short_name": "bfm", - "uid": "d6d32949-4eb8-47b5-86fc-2d4026ef54b1", - "default": "1", - "required": false, - "multi": false, - "parameter_type": "text", - "variable": "f_beta", - "parameter": true, - "order": 3, + }, + { + "pk": 181, + "model": "workflows.abstractinput", + "fields": { + "widget": 97, + "name": "Beta parameter for F-mesure ", + "short_name": "bfm", + "uid": "d6d32949-4eb8-47b5-86fc-2d4026ef54b1", + "default": "1", + "required": false, + "multi": false, + "parameter_type": "text", + "variable": "f_beta", + "parameter": true, + "order": 3, "description": "" } - }, + }, { - "pk": 113, - "model": "workflows.abstractoutput", + "pk": 111, + "model": "workflows.abstractoutput", "fields": { - "widget": 107, - "name": "Noise Detection Performance", - "short_name": "ndp", - "variable": "nd_eval", - "uid": "8254f904-c735-4965-aef4-6ef613ebd5e8", - "order": 1, + "widget": 97, + "name": "Noise Detection Performance", + "short_name": "ndp", + "variable": "nd_eval", + "uid": "8254f904-c735-4965-aef4-6ef613ebd5e8", + "order": 1, "description": "" } - }, - { - "pk": 119, - "model": "workflows.abstractwidget", - "fields": { - "category": 48, - "treeview_image": "treeview/EvaluateRepeated.png", - "name": "Evaluate Repeated Detection", - "is_streaming": false, - "uid": "5b52c563-3302-429f-9232-4f003e8c11f0", - "interaction_view": "", - "image": "images/EvaluateRepeated.png", - "package": "perfeval", - "static_image": "", - "post_interact_action": "", - "user": null, - "visualization_view": "", - "action": "eval_batch", - "wsdl_method": "", - "wsdl": "", - "interactive": false, - "has_progress_bar": false, - "order": 1, + }, + { + "pk": 98, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "treeview/EvaluateRepeated.png", + "name": "Evaluate Repeated Detection", + "is_streaming": false, + "uid": "5b52c563-3302-429f-9232-4f003e8c11f0", + "interaction_view": "", + "image": "images/EvaluateRepeated.png", + "package": "perfeval", + "static_image": "", + "post_interact_action": "", + "user": null, + "visualization_view": "", + "streaming_visualization_view": "", + "action": "eval_batch", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, "description": "" } - }, - { - "pk": 265, - "model": "workflows.abstractinput", - "fields": { - "widget": 119, - "name": "Algorithm Performances", - "short_name": "aps", - "uid": "3b202ce7-d565-4f45-ae82-3f040f10499c", - "default": "", - "required": true, - "multi": false, - "parameter_type": null, - "variable": "perfs", - "parameter": false, - "order": 1, + }, + { + "pk": 182, + "model": "workflows.abstractinput", + "fields": { + "widget": 98, + "name": "Algorithm Performances", + "short_name": "aps", + "uid": "3b202ce7-d565-4f45-ae82-3f040f10499c", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "perfs", + "parameter": false, + "order": 1, "description": "" } - }, - { - "pk": 266, - "model": "workflows.abstractinput", - "fields": { - "widget": 119, - "name": "F-measure Beta-parameter", - "short_name": "btp", - "uid": "c584ebf0-a9b4-4877-b503-2abef8c7dd72", - "default": "1", - "required": true, - "multi": false, - "parameter_type": "text", - "variable": "beta", - "parameter": true, - "order": 2, + }, + { + "pk": 183, + "model": "workflows.abstractinput", + "fields": { + "widget": 98, + "name": "F-measure Beta-parameter", + "short_name": "btp", + "uid": "c584ebf0-a9b4-4877-b503-2abef8c7dd72", + "default": "1", + "required": true, + "multi": false, + "parameter_type": "text", + "variable": "beta", + "parameter": true, + "order": 2, "description": "" } - }, + }, { - "pk": 124, - "model": "workflows.abstractoutput", + "pk": 112, + "model": "workflows.abstractoutput", "fields": { - "widget": 119, - "name": "Performance Results", - "short_name": "prs", - "variable": "perf_results", - "uid": "1e4b9502-809e-46ab-ab12-728edaf4c3f3", - "order": 1, + "widget": 98, + "name": "Performance Results", + "short_name": "prs", + "variable": "perf_results", + "uid": "1e4b9502-809e-46ab-ab12-728edaf4c3f3", + "order": 1, "description": "" } - }, - { - "pk": 121, - "model": "workflows.abstractwidget", - "fields": { - "category": 48, - "treeview_image": "treeview/results-table.png", - "name": "Evaluation Results to Table", - "is_streaming": false, - "uid": "9b6d7a11-1bd9-41b6-ac6d-343fcf31ee1e", - "interaction_view": "", - "image": "images/results-table.png", - "package": "perfeval", - "static_image": "", - "post_interact_action": "", - "user": null, - "visualization_view": "eval_to_table_view", - "action": "eval_to_table", - "wsdl_method": "", - "wsdl": "", - "interactive": false, - "has_progress_bar": false, - "order": 1, + }, + { + "pk": 99, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "treeview/results-table.png", + "name": "Evaluation Results to Table", + "is_streaming": false, + "uid": "9b6d7a11-1bd9-41b6-ac6d-343fcf31ee1e", + "interaction_view": "", + "image": "images/results-table.png", + "package": "perfeval", + "static_image": "", + "post_interact_action": "", + "user": null, + "visualization_view": "eval_to_table_view", + "streaming_visualization_view": "", + "action": "eval_to_table", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, "description": "" } - }, - { - "pk": 269, - "model": "workflows.abstractinput", - "fields": { - "widget": 121, - "name": "Evaluation Results", - "short_name": "evr", - "uid": "37860143-3d94-4f29-9d73-2e817497c46b", - "default": "", - "required": true, - "multi": false, - "parameter_type": null, - "variable": "eval_results", - "parameter": false, - "order": 1, + }, + { + "pk": 184, + "model": "workflows.abstractinput", + "fields": { + "widget": 99, + "name": "Evaluation Results", + "short_name": "evr", + "uid": "37860143-3d94-4f29-9d73-2e817497c46b", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "eval_results", + "parameter": false, + "order": 1, "description": "" } - }, - { - "pk": 220, - "model": "workflows.abstractwidget", - "fields": { - "category": 48, - "treeview_image": "treeview/Bar-chart-icon.png", - "name": "Performance Chart", - "is_streaming": false, - "uid": "4c667e7a-82fe-4dc3-8f70-48fc261e0eee", - "interaction_view": "", - "image": "images/Bar-chart-icon.png", - "package": "perfeval", - "static_image": "", - "post_interact_action": "", - "user": null, - "visualization_view": "eval_bar_chart_view", - "action": "eval_bar_chart", - "wsdl_method": "", - "wsdl": "", - "interactive": false, - "has_progress_bar": false, - "order": 1, + }, + { + "pk": 100, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "treeview/Bar-chart-icon.png", + "name": "Performance Chart", + "is_streaming": false, + "uid": "4c667e7a-82fe-4dc3-8f70-48fc261e0eee", + "interaction_view": "", + "image": "images/Bar-chart-icon.png", + "package": "perfeval", + "static_image": "", + "post_interact_action": "", + "user": null, + "visualization_view": "eval_bar_chart_view", + "streaming_visualization_view": "", + "action": "eval_bar_chart", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, "description": "" } - }, - { - "pk": 642, - "model": "workflows.abstractinput", - "fields": { - "widget": 220, - "name": "Evaluation Results", - "short_name": "evr", - "uid": "cf7561c5-a1ff-42bf-905b-92330ff39ae4", - "default": "", - "required": true, - "multi": false, - "parameter_type": null, - "variable": "eval_results", - "parameter": false, - "order": 1, + }, + { + "pk": 185, + "model": "workflows.abstractinput", + "fields": { + "widget": 100, + "name": "Evaluation Results", + "short_name": "evr", + "uid": "cf7561c5-a1ff-42bf-905b-92330ff39ae4", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "eval_results", + "parameter": false, + "order": 1, "description": "" } - }, - { - "pk": 108, - "model": "workflows.abstractwidget", - "fields": { - "category": 48, - "treeview_image": "treeview/viper600-60_1.png", - "name": "VIPER: Visual Performance Evaluation", - "is_streaming": false, - "uid": "4098a678-2d14-4cbe-808d-2d150a7c2341", - "interaction_view": "", - "image": "images/viper600-60_1.png", - "package": "perfeval", - "static_image": "", - "post_interact_action": "", - "user": null, - "visualization_view": "pr_space_view", - "action": "pr_space", - "wsdl_method": "", - "wsdl": "", - "interactive": false, - "has_progress_bar": false, - "order": 1, + }, + { + "pk": 101, + "model": "workflows.abstractwidget", + "fields": { + "category": 18, + "treeview_image": "treeview/viper600-60_1.png", + "name": "VIPER: Visual Performance Evaluation", + "is_streaming": false, + "uid": "4098a678-2d14-4cbe-808d-2d150a7c2341", + "interaction_view": "", + "image": "images/viper600-60_1.png", + "package": "perfeval", + "static_image": "", + "post_interact_action": "", + "user": null, + "visualization_view": "pr_space_view", + "streaming_visualization_view": "", + "action": "pr_space", + "wsdl_method": "", + "wsdl": "", + "interactive": false, + "has_progress_bar": false, + "order": 1, "description": "" } - }, - { - "pk": 274, - "model": "workflows.abstractinput", - "fields": { - "widget": 108, - "name": "ε-proximity evaluation parameter [%]", - "short_name": "eps", - "uid": "1a17f990-5041-47c3-b47a-492a03fc6d21", - "default": "0.05", - "required": false, - "multi": false, - "parameter_type": "select", - "variable": "eps", - "parameter": true, - "order": 1, + }, + { + "pk": 186, + "model": "workflows.abstractinput", + "fields": { + "widget": 101, + "name": "ε-proximity evaluation parameter [%]", + "short_name": "eps", + "uid": "1a17f990-5041-47c3-b47a-492a03fc6d21", + "default": "0.05", + "required": false, + "multi": false, + "parameter_type": "select", + "variable": "eps", + "parameter": true, + "order": 1, "description": "" } - }, + }, { - "pk": 44, - "model": "workflows.abstractoption", + "pk": 51, + "model": "workflows.abstractoption", "fields": { - "uid": "a10c7375-7021-4abb-8b50-3f8700806d9b", - "abstract_input": 274, - "value": "0.01", + "uid": "a10c7375-7021-4abb-8b50-3f8700806d9b", + "abstract_input": 186, + "value": "0.01", "name": " 1" } - }, + }, { - "pk": 45, - "model": "workflows.abstractoption", + "pk": 52, + "model": "workflows.abstractoption", "fields": { - "uid": "d8a2826b-2dad-4544-bbce-6aa2434c7c02", - "abstract_input": 274, - "value": "0.02", + "uid": "d8a2826b-2dad-4544-bbce-6aa2434c7c02", + "abstract_input": 186, + "value": "0.02", "name": " 2" } - }, + }, { - "pk": 46, - "model": "workflows.abstractoption", + "pk": 53, + "model": "workflows.abstractoption", "fields": { - "uid": "ba0813b6-23ba-4626-89df-04ce026a87c4", - "abstract_input": 274, - "value": "0.03", + "uid": "ba0813b6-23ba-4626-89df-04ce026a87c4", + "abstract_input": 186, + "value": "0.03", "name": " 3" } - }, + }, { - "pk": 47, - "model": "workflows.abstractoption", + "pk": 54, + "model": "workflows.abstractoption", "fields": { - "uid": "cdd0bfe5-1cf4-4988-8ea2-2f93bfffcde8", - "abstract_input": 274, - "value": "0.04", + "uid": "cdd0bfe5-1cf4-4988-8ea2-2f93bfffcde8", + "abstract_input": 186, + "value": "0.04", "name": " 4" } - }, + }, { - "pk": 48, - "model": "workflows.abstractoption", + "pk": 55, + "model": "workflows.abstractoption", "fields": { - "uid": "9003923c-73e9-4ab2-bb1a-c1cb5af8f289", - "abstract_input": 274, - "value": "0.05", + "uid": "9003923c-73e9-4ab2-bb1a-c1cb5af8f289", + "abstract_input": 186, + "value": "0.05", "name": " 5" } - }, + }, { - "pk": 49, - "model": "workflows.abstractoption", + "pk": 56, + "model": "workflows.abstractoption", "fields": { - "uid": "dcf68d77-c3aa-4044-9800-a3bc568d5b54", - "abstract_input": 274, - "value": "0.06", + "uid": "dcf68d77-c3aa-4044-9800-a3bc568d5b54", + "abstract_input": 186, + "value": "0.06", "name": " 6" } - }, + }, { - "pk": 50, - "model": "workflows.abstractoption", + "pk": 57, + "model": "workflows.abstractoption", "fields": { - "uid": "d3b0473c-d8a3-46c9-8d8c-fa5ecd21461a", - "abstract_input": 274, - "value": "0.07", + "uid": "d3b0473c-d8a3-46c9-8d8c-fa5ecd21461a", + "abstract_input": 186, + "value": "0.07", "name": " 7" } - }, + }, { - "pk": 51, - "model": "workflows.abstractoption", + "pk": 58, + "model": "workflows.abstractoption", "fields": { - "uid": "c0be8ca7-3377-40bf-91a0-a6f2ce152078", - "abstract_input": 274, - "value": "0.08", + "uid": "c0be8ca7-3377-40bf-91a0-a6f2ce152078", + "abstract_input": 186, + "value": "0.08", "name": " 8" } - }, + }, { - "pk": 52, - "model": "workflows.abstractoption", + "pk": 59, + "model": "workflows.abstractoption", "fields": { - "uid": "a383432b-3b92-4293-8d1d-e747bcb4eeba", - "abstract_input": 274, - "value": "0.09", + "uid": "a383432b-3b92-4293-8d1d-e747bcb4eeba", + "abstract_input": 186, + "value": "0.09", "name": " 9" } - }, + }, { - "pk": 54, - "model": "workflows.abstractoption", + "pk": 60, + "model": "workflows.abstractoption", "fields": { - "uid": "60176291-79c8-4042-afc4-55c8a11209d7", - "abstract_input": 274, - "value": "0.1", + "uid": "60176291-79c8-4042-afc4-55c8a11209d7", + "abstract_input": 186, + "value": "0.1", "name": "10" } - }, + }, { - "pk": 75, - "model": "workflows.abstractoption", + "pk": 61, + "model": "workflows.abstractoption", "fields": { - "uid": "a82e638a-928d-4271-89a1-e511e50f43a4", - "abstract_input": 274, - "value": "0", + "uid": "a82e638a-928d-4271-89a1-e511e50f43a4", + "abstract_input": 186, + "value": "0", "name": "Do not use ε-proximity evaluation" } - }, - { - "pk": 248, - "model": "workflows.abstractinput", - "fields": { - "widget": 108, - "name": "Algorithm Performance", - "short_name": "alp", - "uid": "9bd36b53-7c9a-4ce7-a591-acecfe1bdc14", - "default": "", - "required": true, - "multi": false, - "parameter_type": null, - "variable": "performance", - "parameter": false, - "order": 2, + }, + { + "pk": 187, + "model": "workflows.abstractinput", + "fields": { + "widget": 101, + "name": "Algorithm Performance", + "short_name": "alp", + "uid": "9bd36b53-7c9a-4ce7-a591-acecfe1bdc14", + "default": "", + "required": true, + "multi": false, + "parameter_type": null, + "variable": "performance", + "parameter": false, + "order": 2, "description": "" } } diff --git a/workflows/perfeval/library.py b/workflows/perfeval/library.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..db8888eadb46b939e58a2206c621fc7320fa2866 100644 --- a/workflows/perfeval/library.py +++ b/workflows/perfeval/library.py @@ -0,0 +1,6 @@ +def benchmark(input_dict): + import time + in_att = input_dict.get('in_att', None) + start_time= input_dict.get('start_time', None) + time_diff=(time.time()-start_time) if start_time else time.time() + return {'out_att': in_att, 'time_diff': time_diff} diff --git a/workflows/visualization_views.py b/workflows/visualization_views.py index 73115e7cb295b2c3f07f7971baef50741fb39c83..45f2a8dab3d71482f042d95b7a94cf81deb1ad4a 100755 --- a/workflows/visualization_views.py +++ b/workflows/visualization_views.py @@ -123,7 +123,7 @@ def orng_table_to_dict(data): metas.append(data.domain.get_meta(m).name) for a in data.domain.attributes: attrs.append(a.name) - pretty_float = lambda x, a: '%.3f' % x if a.var_type == Orange.feature.Type.Continuous else x + pretty_float = lambda x, a: '%.3f' % x if a.var_type == Orange.feature.Type.Continuous and x!='?' else x for inst in xrange(len(data)): inst_new = [] for a in data.domain.variables: