Source

orange-modelmaps / archive / tmp.py

import pickle

import orange
import orngTree
import orngEnsemble

from tools import *

pickle.load(open(ROOT + "dst/breast-knn-510.res", 'rb'))

#
#m = loadModel(ROOT + "dst/breast-tree-500-clustered") 
#r0 = m.results[m.items[0]["uuid"].value]
#c0 = r0[3]
#

#pickle.dump(c0, file(ROOT + "tree.pck", "wb"))

#r0 = results[results.keys()[0]]
#method, vizr_result, projection_points, classifier, attrs = r0

#
#dataL = orange.ExampleTable(ROOT + "dst/breast-linproj-501.tab")
#dataR = orange.ExampleTable(ROOT + "dst/breast-radviz-501.tab")
#dataP = orange.ExampleTable(ROOT + "dst/breast-polyviz-501.tab")
#dataT = orange.ExampleTable(ROOT + "dst/breast-tree-500.tab")
#dataB = orange.ExampleTable(ROOT + "dst/breast-bayes-510.tab")
#dataK = orange.ExampleTable(ROOT + "dst/breast-knn-510.tab")
#
#def getatt(data):
#    att = [','.join(sorted(ex['attributes'].value.split(', '))) for ex in data]
#    return att, set(att)
#
#attL, attsL = getatt(dataL)
#attR, attsR = getatt(dataR)
#attP, attsP = getatt(dataP)
#attT, attsT = getatt(dataT)
#attB, attsB = getatt(dataB)
#attK, attsK = getatt(dataK)
#
#print len(attL), len(set(attL))
#print len(attR), len(set(attR))
#print len(attP), len(set(attP))
#print len(attT), len(set(attT))
#print len(attB), len(set(attB))
#print len(attK), len(set(attK))
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.