Changeset 3677:8db49e3de744 in orange
 Timestamp:
 05/21/07 14:47:11 (7 years ago)
 Branch:
 default
 Convert:
 bf9ec51bb6275648c8174c72515061a329352d05
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

orange/orngSVM.py
r3672 r3677 201 201 for j in range(i+1, len(classes)): 202 202 w={} 203 print i,j, j1, i204 203 coefInd=j1 205 204 for svInd in apply(range, svRanges[i]): … … 214 213 weights.append(w) 215 214 return weights 216 215 216 def exampleWeightedSum(example, weights): 217 sum=0 218 for attr, w in weights.items(): 219 sum+=float(example[attr])*w 220 return sum 221 217 222 import math 218 223 class KernelWrapper:
Note: See TracChangeset
for help on using the changeset viewer.