Ticket #874 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Unpickled SVMClassifier's prediction

Reported by: ales Owned by: ales
Milestone: Future Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:


differs from the original one but only with GetValue flag. If passed GetBoth, the values and distributions are the same. Investigate.

Change History

comment:1 Changed 3 years ago by ales


import Orange
import cPickle
data = Orange.data.Table("iris")
cl = Orange.classification.svm.SVMLearner(data)
cl_clone = cPickle.loads(cPickle.dumps(cl))
indices = [70, 83, 119, 134] # This is where the values differ.
#for i, ex in enumerate(data):
for i, ex in zip(indices, [data[i] for i in indices]):
   if cl(ex) != cl_clone(ex):
      print i, cl(ex), cl_clone(ex)

comment:2 Changed 3 years ago by ales

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

In [11318]:

(The changeset message doesn't reference this ticket)

Note: See TracTickets for help on using tickets.