savepoint.

This commit is contained in:
NunoSempere 2023-05-24 15:58:31 -07:00
parent d70eac48f0
commit 218df1179f
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -138,12 +138,12 @@ proc jitBayesLoop(
let correct_continuation_index = findIndex(considered_continuations, correct_continuation) let correct_continuation_index = findIndex(considered_continuations, correct_continuation)
if correct_continuation_index == -1: if correct_continuation_index == -1:
echo "Correct continuation not found in set of hypotheses of size ", num_hypotheses, "/", seqs.len, ". Increasing size of the set of hypotheses."
var found_concordant_hypothesis = false var found_concordant_hypothesis = false
var concordant_hypotheses: seq[seq[string]] var concordant_hypotheses: seq[seq[string]]
while (not found_concordant_hypothesis) and ( num_hypotheses < seqs.len ): while (not found_concordant_hypothesis) and ( num_hypotheses < seqs.len ):
echo "Correct continuation not found in set of hypotheses of size ", num_hypotheses, "/", seqs.len, ". Increasing size of the set of hypotheses."
num_hypotheses = num_hypotheses + num_hypotheses_step num_hypotheses = num_hypotheses + num_hypotheses_step
if num_hypotheses > seqs.len: if num_hypotheses > seqs.len:
num_hypotheses = seqs.len num_hypotheses = seqs.len
@ -168,7 +168,7 @@ proc jitBayesLoop(
echo "" echo ""
## var observations = @["1", "2", "3", "4", "5", "6"] ## var observations = @["1", "2", "3", "4", "5", "6"]
var observations = @["1", "2", "3", "109", "5", "6"] var observations = @["1", "2", "3", "23"]
echo "## Full prediction with access to all hypotheses (~Solomonoff)" echo "## Full prediction with access to all hypotheses (~Solomonoff)"
echo "## Initial sequence: ", observations echo "## Initial sequence: ", observations
let continuation_probabilities = predictContinuation(seqs, observations) let continuation_probabilities = predictContinuation(seqs, observations)