Ticket #1345 (new bug)

Opened 8 months ago

Scatter Plot / Vizrank -> Show k-NN Wrong error

Reported by: ales Owned by: ales
Milestone: Component: canvas
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

"Show k-NN Wrong" and "Show k-NN Correct" (in the Manage & Save tab) raise an Value Error

--------------------------------------------------------------------------------
ValueError                                    Traceback (most recent call last):
  File "/Users/aleserjavec/workspace/orange/Orange/OrangeWidgets/OWkNNOptimization.py", line 591, in showKNNWrong
    if self.parentWidget: self.parentWidget.updateGraph()
  File "/Users/aleserjavec/workspace/orange/Orange/OrangeWidgets/Visualize/OWScatterPlot.py", line 386, in updateGraph
    kNNExampleAccuracy, probabilities = self.vizrank.kNNClassifyData(self.graph.createProjectionAsExampleTable([self.graph.attributeNameIndex[self.attrX], self.graph.attributeNameIndex[self.attrY]]))
  File "/Users/aleserjavec/workspace/orange/Orange/orng/orngVizRank.py", line 339, in kNNClassifyData
    probabilities[i] = res.probabilities[0]
ValueError: setting an array element with a sequence.
Note: See TracTickets for help on using tickets.