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

Function CART_REGTraining

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

Source from the content-addressed store, hash-verified

58 return model, ssler
59
60def CART_REGTraining(x, y) :
61
62 model = DecisionTree_CART(tree_type='reg')
63
64 ssler = StandardScaler()
65
66 ssler.fit(x)
67
68 x = ssler.transform(x)
69
70 model.fit(x, y)
71
72 print((model.predict(x) == y).sum() / len(y))
73
74 return model, ssler
75
76def KNNTraining(x, y) :
77

Callers 1

fitFunction · 0.85

Calls 5

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

Tested by

no test coverage detected