1. Miha Stajdohar
  2. orange-modelmaps

Source

orange-modelmaps / orangecontrib / modelmaps / widgets / OWModelMap.py

Diff from to

File orangecontrib/modelmaps/widgets/OWModelMap.py

 
 from Orange import classification, misc, modelmaps, network, utils
 from Orange.network.community import CommunityDetection
-from OWNxCanvasQt import OWNxCanvas
+from Orange.network.widgets.OWNxCanvasQt import OWNxCanvas
 
 from orngScaleLinProjData import *
-from OWNxExplorer import *
 from OWkNNOptimization import OWVizRank
-from OWNxHist import *
 from OWDistributions import OWDistributionGraph
 
+from Orange.network.widgets.OWNxExplorer import *
+from Orange.network.widgets.OWNxHist import *
+
+
 from PyQt4 import QtCore
 
+NAME = "Model Map"
+DESCRIPTIPN = "Visualization and analysis of prediction models"
+ICON = "icons/Network.png"
+PRIORITY = 6520
+
+INPUTS = [("Community Detection", CommunityDetection, "set_community"),
+          ("Distances", misc.SymMatrix, "set_matrix", Default),
+          ("Model Subset", data.Table, "set_models_subset")]
+
+OUTPUTS = [("Model", modelmaps.Model),
+           ("Classifier", classification.Classifier),
+           ("Selected Models", data.Table)]
+
+REPLACES = ["_modelmaps.widgets.OWModelMap.OWModelMap"]
+
+
 dir = utils.environ.widget_install_dir
 
 ICON_PATHS = [("TREE", "Classify/icons/ClassificationTree"),