- Timestamp:
- 10/27/15 11:21:32 (7 months ago)
- Location:
- mystic
- Files:
-
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples/test_svc1.py
r839 r840 12 12 from numpy import * 13 13 import pylab 14 from mystic.svc toolsimport *14 from mystic.svc import * 15 15 16 16 # define the objective function to match standard QP solver -
mystic/examples/test_svc2.py
r839 r840 14 14 from numpy import * 15 15 import pylab 16 from mystic.svc toolsimport *16 from mystic.svc import * 17 17 import os.path 18 18 -
mystic/examples/test_svr1.py
r839 r840 12 12 from numpy import * 13 13 import pylab 14 from mystic.sv mtoolsimport *14 from mystic.svr import * 15 15 16 16 # define the objective function to match standard QP solver -
mystic/examples/test_svr2.py
r839 r840 12 12 from numpy import * 13 13 import pylab 14 from mystic.sv mtoolsimport *14 from mystic.svr import * 15 15 16 16 # define the objective function to match standard QP solver -
mystic/examples_other/qld_svc1.py
r826 r840 12 12 import qld, quapro 13 13 import pylab 14 from mystic.svc toolsimport *14 from mystic.svc import * 15 15 16 16 def myshow(): -
mystic/examples_other/qld_svc2.py
r826 r840 14 14 import qld, quapro 15 15 import pylab 16 from mystic.svc toolsimport *16 from mystic.svc import * 17 17 import os.path, time 18 18 -
mystic/examples_other/qld_svr1.py
r828 r840 12 12 import qld 13 13 import pylab 14 from mystic.sv mtoolsimport *14 from mystic.svr import * 15 15 16 16 from mystic.tools import random_seed -
mystic/examples_other/qld_svr2.py
r828 r840 12 12 import qld 13 13 import pylab 14 from mystic.sv mtoolsimport *14 from mystic.svr import * 15 15 16 16 x = arange(-5, 5.001) -
mystic/mystic/svc.py
r834 r840 53 53 If labels y are provided, then group indicies by label 54 54 """ 55 import mystic.sv mtools as svm56 sv = sv m.SupportVectors(alpha,eps)55 import mystic.svr as svr 56 sv = svr.SupportVectors(alpha,eps) 57 57 if y is None: 58 58 return sv -
mystic/mystic/termination.py
r826 r840 137 137 # Factories that give termination conditions 138 138 def VTR(tolerance=0.005, target=0.0): 139 """cost of last iteration is < tolerance :140 141 cost[-1]<= tolerance"""139 """cost of last iteration is < tolerance from target: 140 141 abs(cost[-1] - target) <= tolerance""" 142 142 doc = "VTR with %s" % {'tolerance':tolerance, 'target':target} 143 143 def _VTR(inst, info=False): … … 262 262 def VTRChangeOverGeneration(ftol=0.005, gtol=1e-6, generations=30, target=0.0): 263 263 """change in cost is < gtol over a number of generations, 264 or cost of last iteration is < ftol :265 266 cost[-g] - cost[-1] <= gtol , where g=generations *or* cost[-1]<= ftol."""264 or cost of last iteration is < ftol from target: 265 266 cost[-g] - cost[-1] <= gtol *or* abs(cost[-1] - target) <= ftol.""" 267 267 doc = "VTRChangeOverGeneration with %s" % {'ftol':ftol, 'gtol':gtol, 268 268 'generations':generations,
Note: See TracChangeset
for help on using the changeset viewer.