Ticket #120 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

freeviz generira prevelike anchorje

Reported by: gregor Owned by: janez
Milestone: 1.0 Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

z widgetDebuggingom sem ujel tale exception:

Widget Qt FreeViz Optimization Dialog. Pressed button Optimize Separation Unhandled exception of type <type 'exceptions.OverflowError'> Traceback:

File: OWBaseWidget.py in line 816 Function name: randomlyChangeSettings Code: callback()

File: OWFreeVizOptimization.py in line 261 Function name: optimizeSeparation Code: ns = FreeViz.optimizeSeparation(self, self.stepsBeforeUpdate, singleStep)

File: orngLinProj.py in line 122 Function name: optimizeSeparation Code: return self.optimize_FAST_Separation(steps, singleStep)

File: orngLinProj.py in line 175 Function name: optimize_FAST_Separation Code: self.graph.updateData()

File: OWLinProjGraph.py in line 131 Function name: updateData Code: shownAnchorData = filter(lambda p, r=self.hideRadius2/100: p[0]2+p[1]2>r, self.anchorData)

File: OWLinProjGraph.py in line 131 Function name: <lambda> Code: shownAnchorData = filter(lambda p, r=self.hideRadius2/100: p[0]2+p[1]2>r, self.anchorData) Exception type: <type 'exceptions.OverflowError'> Exception value: (34, 'Result too large')

Widget settings are:

stepsBeforeUpdate: 1

restrain: 2

differentialEvolutionPopSize: 100

s2nSpread: 1

s2nPlaceAttributes: 50

autoSetParameters: False

forceRelation: 1

mirrorSymmetry: False

forceSigma: 1.0

restrain: 2

law: 0

forceRelation: 1

disableAttractive: 0

disableRepulsive: True

useGeneralizedEigenvectors: False

vrednosti self.anchorData so bile v primeru exceptiona:

[(1.6894771847252188e+118, -2.0690128265062208e+102, 'hair'), (-1.132494724677362e+111, 8.2280558021982538e+110, 'feathers'), (-4.866463043401481 e+110, 1.4977433192948502e+111, 'eggs'), (-1.5140107246137901e+111, -4.6596458822506462e+111, 'milk'), (1.9303139962962519e+148, 1.40245521071321 05e+148, 'airborne'), (-1.3998404638611276e+111, 5.6617002474400273e+090, 'aquatic'), (1.9031793509573918e+156, -1.382740736892185e+156, 'predato r'), (1.730297970987194e+111, -5.3253095797150237e+111, 'toothed'), (-1.7302979709871882e+111, -5.3253095797150237e+111, 'backbone'), (-3.9637315 363707645e+111, -2.879819530769389e+111, 'breathes')]

te vrednosti je nastavil orangeom.optimizeAnchorsR (self.restraint = 2).

Change History

comment:1 Changed 6 years ago by janez

  • Status changed from new to closed
  • Resolution set to fixed

Popravljeno, ceprav malo pocersko. Metoda ima (teoreticni) problem, ko se kak anchor prevec pribliza nicli. Takrat ga lahko naeknrat odstreli zelo dalec. Zdaj sem preprosto omejil najvecji dovoljeni premik - malo "porezem", cisto nefizikalno...

Note: See TracTickets for help on using tickets.