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

Function LogisticRegressionTraining

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

Source from the content-addressed store, hash-verified

8from MachineLearningAlgorithm.Bayes.TextAnalyzer import *
9
10def LogisticRegressionTraining(x, y) :
11
12 model = LogisticRegression()
13
14 ssler = StandardScaler()
15
16 ssler.fit(x)
17
18 x = ssler.transform(x)
19
20 model.fit(x, y)
21
22 print(model.score(x, y))
23
24 return model, ssler
25
26def LinearRegressionTraining(x, y) :
27

Callers 1

fitFunction · 0.85

Calls 5

fitMethod · 0.95
scoreMethod · 0.95
LogisticRegressionClass · 0.85
transformMethod · 0.80
fitMethod · 0.45

Tested by

no test coverage detected