summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-16 18:13:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-16 18:13:56 (GMT)
commitb557de05881c2ee3408bc7487bbce15c67dc20d5 (patch)
treeb89c9a76e9fd04c91fa95a3b7c8d8e1163de846c
parente0419341c4e0e1bd29ea5f6a48f1b9da6deb106c (diff)
Improved accuracy of function names.
-rw-r--r--python/alla_net.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/alla_net.py b/python/alla_net.py
index 0ff0da1..2e6d64c 100644
--- a/python/alla_net.py
+++ b/python/alla_net.py
@@ -155,7 +155,7 @@ class DeepLearning():
return final
- def _normalize_string(self, raw):
+ def _vectorize_string(self, raw):
"""Produce an input using a common input format."""
non_printable = 0
@@ -213,7 +213,7 @@ class DeepLearning():
for raw, encrypted in strings:
- inputs.append( self._normalize_string(raw) )
+ inputs.append( self._vectorize_string(raw) )
outputs.append( [ 1.0 if encrypted else 0.1 ] )