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

Function pushModel

App/PoolManager.py:12–24  ·  view source on GitHub ↗
(model, ssler)

Source from the content-addressed store, hash-verified

10dataPool = []
11
12def pushModel(model, ssler) :
13
14 if(len(modelPool) >= MAXN) :
15 for i in range(0, 10) :
16 modelPool.pop(0)
17
18 key = str(hash(model) + hash(ssler))
19
20 modelPool.append([key, model, ssler])
21
22 print("modelPool :{0}".format(len(modelPool), MAXN))
23
24 return key
25
26
27def pushDataSet(dataSet, discrete, textColumns, key):

Callers 1

fitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected