MCPcopy Index your code
hub / github.com/Giyn/DataMiningVisualizationSystem / KNNTraining

Function KNNTraining

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

Source from the content-addressed store, hash-verified

74 return model, ssler
75
76def KNNTraining(x, y) :
77
78 ssler = StandardScaler()
79
80 ssler.fit(x)
81
82 x = ssler.transform(x)
83
84 model = KNN(x, y)
85
86 print(model.fit(x, y))
87
88 return model, ssler
89
90def NBayesTraining(x, y, textColumns) :
91

Callers 1

fitFunction · 0.85

Calls 3

fitMethod · 0.95
KNNClass · 0.85
transformMethod · 0.80

Tested by

no test coverage detected