MCPcopy Create free account
hub / github.com/Giyn/DataMiningVisualizationSystem / SVMTraining

Function SVMTraining

App/ModelManager.py:44–58  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

42 return model, ssler
43
44def SVMTraining(x, y) :
45
46 model = SVM()
47
48 ssler = StandardScaler()
49
50 ssler.fit(x)
51
52 x = ssler.transform(x)
53
54 model.fit(x, y)
55
56 print((model.predict(x) == y).sum() / len(y))
57
58 return model, ssler
59
60def CART_REGTraining(x, y) :
61

Callers 1

fitFunction · 0.85

Calls 5

fitMethod · 0.95
predictMethod · 0.95
SVMClass · 0.85
transformMethod · 0.80
fitMethod · 0.45

Tested by

no test coverage detected