Commits

Miha Stajdohar committed 234f4b9

Fixed some more imports.

Comments (0)

Files changed (2)

_modelmaps/__init__.py

 
 from Orange import data, feature
 
-from Orange.modelmaps.model import *
-from Orange.modelmaps.modelmap import *
+#from Orange.modelmaps.model import *
+#from Orange.modelmaps.modelmap import *
 
 
 #ROOT = "/home/miha/work/res/metamining/"

_modelmaps/modelmap.py

 import numpy as np
 
 import orngVizRank as vr
+import model
 
 from operator import itemgetter
 from orngScaleData import getVariableValuesSorted
-from Orange.modelmaps.model import Model
 
 from Orange import data, distance, ensemble, feature, misc, projection
 from Orange.classification.knn import kNNLearner
                     instance_classes.append(testset[tcn].get_class())
                     tcn += 1
 
-        return Model(type(learner).__name__,
+        return model.Model(type(learner).__name__,
                      learner(data),
                      np.array(probabilities),
                      {val: i for i, val in enumerate(self.data_d.domain.class_var.values)},
             if len(table) > 2000:
                 break
 
-        return Model(method,
+        return model.Model(method,
                      None, #learner(table),
                      np.array(probabilities),
                      {val: i for i, val in enumerate(self.data_d.domain.class_var.values)},
                         probabilities.append(list(prob))
                         instance_predictions.append(cl.value)
 
-                    models.append(Model("RF",
+                    models.append(model.Model("RF",
                                         c,
                                         np.array(probabilities),
                                         {val: k for k, val in enumerate(test.domain.class_var.values)},
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.