Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/o/r/Orange-2.7.2/docs/reference/rst/code/som-classifier.py   Orange(Download)
import Orange
import random
learner = Orange.projection.som.SOMSupervisedLearner(map_shape=(4, 4))
iris = Orange.data.Table("iris.tab")
classifier = learner(iris)
random.seed(50)
for d in random.sample(iris, 5):
    print "%-15s originally %-15s" % (classifier(d), d.getclass())

src/o/r/Orange-2.7.2/Orange/testing/unit/tests/test_som.py   Orange(Download)
    def setUp(self):
        self.learner = som.SOMSupervisedLearner()
 
    @test_on_data
    def test_learner_on(self, dataset):