MCPcopy Create free account
hub / github.com/PyGCL/PyGCL / SVMEvaluator

Class SVMEvaluator

GCL/eval/svm.py:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class SVMEvaluator(BaseSKLearnEvaluator):
6 def __init__(self, linear=True, params=None):
7 if linear:
8 self.evaluator = LinearSVC()
9 else:
10 self.evaluator = SVC()
11 if params is None:
12 params = {'C': [0.001, 0.01, 0.1, 1, 10, 100, 1000]}
13 super(SVMEvaluator, self).__init__(self.evaluator, params)

Callers 4

testFunction · 0.90
testFunction · 0.90
testFunction · 0.90
testFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected