Commits

Miha Stajdohar  committed 4ffa0df

Moved some files around.

  • Participants
  • Parent commits 133083e

Comments (0)

Files changed (1)

File examples/projections.py

-from Orange.orng import orngVizRank as vr
-
-import _modelmaps as mm
-import time
-
-starttime = time.time()
-ROOT = "/home/miha/work/res/modelmaps/"
-#ROOT = "/Network/Servers/xgridcontroller.private/lab/mihas/modelmaps/"
-
-build_map = mm.BuildModelMap(ROOT + "tab/zoo.tab")
-
-nfeatures = len(build_map.data_d.domain.features)
-features = mm.get_feature_subsets(build_map.data_d.domain, 100)
-
-max_nfeatures_scatterplot = (nfeatures ** 2 - nfeatures) / 2
-features_scatterplot = mm.get_feature_subsets_scatterplot(build_map.data_d.domain, max_nfeatures_scatterplot)
-
-models = []
-models.extend([build_map.build_projection_model(f, vr.LINEAR_PROJECTION) for f in features])
-models.extend([build_map.build_projection_model(f, vr.RADVIZ) for f in features])
-models.extend([build_map.build_projection_model(f, vr.KNN_IN_ORIGINAL_SPACE) for f in features])
-models.extend([build_map.build_projection_model(f, vr.POLYVIZ) for f in features])
-models.extend([build_map.build_projection_model(attrs, vr.SCATTERPLOT) for attrs in features_scatterplot])
-
-smx = build_map.build_model_matrix(models)
-table = build_map.build_model_data(models)
-
-build_map.save("%s/_projections_/proj_100_" % ROOT, smx=smx, table=table)
-print (time.time() - starttime) / 60