Fixed tiny bug when training with --full
This commit is contained in:
parent
54e9f0e8fc
commit
b854b38349
@ -957,6 +957,7 @@ def train(initGamma, full=True):
|
|||||||
if full:
|
if full:
|
||||||
for wt in weights:
|
for wt in weights:
|
||||||
weights[wt] = random.random()
|
weights[wt] = random.random()
|
||||||
|
saveWeights(weights)
|
||||||
gamma = initGamma
|
gamma = initGamma
|
||||||
books = loadBooksFromDB()
|
books = loadBooksFromDB()
|
||||||
bestWeights = copy.copy(weights)
|
bestWeights = copy.copy(weights)
|
||||||
|
Loading…
Reference in New Issue
Block a user