Spaces:
Sleeping
Sleeping
Fix name error
Browse filesWrote l1 instead of regularization
- chatbot_constructor.py +1 -1
chatbot_constructor.py
CHANGED
@@ -44,7 +44,7 @@ def train(message: str = "", regularization: float = 0.0001, dropout: float = 0.
|
|
44 |
vocab_size = len(tokenizer.word_index) + 1
|
45 |
inp_len = input_len
|
46 |
if data_hash is None:
|
47 |
-
data_hash = hash_str(data)+"_"+str(
|
48 |
elif message == "!getmodelhash":
|
49 |
return data_hash
|
50 |
else:
|
|
|
44 |
vocab_size = len(tokenizer.word_index) + 1
|
45 |
inp_len = input_len
|
46 |
if data_hash is None:
|
47 |
+
data_hash = hash_str(data)+"_"+str(regularization)+"_"+str(dropout)+"_"+str(learning_rate)+"_"+str(epochs)+"_"+str(emb_size)+"_"+str(inp_len)+"_"+str(kernels_count)+"_"+str(kernel_size)+".keras"
|
48 |
elif message == "!getmodelhash":
|
49 |
return data_hash
|
50 |
else:
|