Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Michele Volpato
Alnos
Commits
d52230bb
Commit
d52230bb
authored
Nov 06, 2015
by
Michele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed number of tries when updating table to (number of outputs +1) * number of traces
parent
c56b0130
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
learning/learning.py
learning/learning.py
+3
-2
No files found.
learning/learning.py
View file @
d52230bb
...
...
@@ -70,8 +70,9 @@ class LearningAlgorithm:
trie
=
th
.
make_trie
(
oTraces
)
# Until we tried K times with no results
K
=
len
(
oTraces
)
*
2
# TODO: should not be hardcoded, maybe the number of output is a good indication for this?
# Until we tried K times with no results, where K is the number of
# observable traces times the number of outputs (including quiescence)
K
=
len
(
oTraces
)
*
(
len
(
self
.
_teacher
.
getOutputAlphabet
())
+
1
)
found
=
0
tries
=
0
while
tries
<
K
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment