3d0a31a8cbdaf90434d732259fa17bc6bd703a0b,Orange/widgets/classify/owknn.py,OWKNNLearner,__init__,#OWKNNLearner#,24

Before Change


        box.setFlat(True)

        gui.comboBox(box, self, "metric_index",
                     items=["Euclidean", "Manhattan", "Maximal", "Mahalanobis"])
        self.metrics = ["euclidean", "manhattan", "chebyshev", "mahalanobis"]

        self.weights = ["uniform", "distance"]

After Change


        box = gui.widgetBox(self.controlArea, "Neighbors")
        gui.spin(box, self, "n_neighbors", 1, 100, label="Number of neighbors",
                 alignment=Qt.AlignRight)
        gui.comboBox(box, self, "metric_index", label="Metric",
                     orientation="horizontal",
                     items=[i.capitalize() for i in self.metrics])
        gui.comboBox(box, self, "weight_type", label="Weight",
                     orientation="horizontal",
                     items=[i.capitalize() for i in self.weights])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: biolab/orange3
Commit Name: 3d0a31a8cbdaf90434d732259fa17bc6bd703a0b
Time: 2016-04-01
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owknn.py
Class Name: OWKNNLearner
Method Name: __init__


Project Name: biolab/orange3
Commit Name: a1f40a71c71f2d09de8cfa8e63e7a3a9c2478fb3
Time: 2014-12-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/classify/owtreeviewer2d.py
Class Name: OWTreeViewer2D
Method Name: __init__


Project Name: biolab/orange3
Commit Name: 4d56537fc9020329e871b52060e39d010409bcfb
Time: 2016-03-18
Author: wim.bertels@ucll.be
File Name: Orange/widgets/classify/owknn.py
Class Name: OWKNNLearner
Method Name: __init__