savepoint.
This commit is contained in:
parent
d70eac48f0
commit
218df1179f
BIN
src/jit_bayes
BIN
src/jit_bayes
Binary file not shown.
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user