No more neuralWeights in the repo
This commit is contained in:
parent
5e6dc9ffe2
commit
558b9d4eba
@ -1259,8 +1259,11 @@ def saveWeights(weights):
|
||||
f.write(json.dumps(weights))
|
||||
|
||||
def loadWeights():
|
||||
with open('neuralWeights.json', 'r') as f:
|
||||
weights = json.loads(f.read())
|
||||
try:
|
||||
with open('neuralWeights.json', 'r') as f:
|
||||
weights = json.loads(f.read())
|
||||
except IOError:
|
||||
weights = {"topList": 0.15, "recommender": 0.30, "author": 0.70, "series": 0.05, "tag": 0.05, "pagerank": 0.05, "mu": 0.50, "sigma": 0.30, "bias": 0.25}
|
||||
return weights
|
||||
|
||||
def cliInterface():
|
||||
|
@ -1 +0,0 @@
|
||||
{"topList": 0.0014870629350744668, "recommender": 0.30850613710659763, "author": 0.7875500722234223, "series": 0.02573529043327304, "tag": 0.021428418737707844, "pagerank": 0.035929371002174276, "mu": 0.5195918262356081, "sigma": 0.5461473078015796, "bias": 0.28135362350363}
|
Loading…
Reference in New Issue
Block a user