small format & refactor
This commit is contained in:
parent
8ec8f1eda9
commit
4228edfb25
BIN
src/jit_bayes
BIN
src/jit_bayes
Binary file not shown.
|
@ -98,10 +98,14 @@ proc predictContinuationWithTruncatedHypotheses(seqs: seq[seq[string]], start: s
|
||||||
let truncated_seqs = seqs[0..<n]
|
let truncated_seqs = seqs[0..<n]
|
||||||
return predictContinuation(truncated_seqs, start)
|
return predictContinuation(truncated_seqs, start)
|
||||||
|
|
||||||
let l = seqs.len
|
proc showPredictionsWithMoreHypotheses() =
|
||||||
for i in 1..10:
|
let l = seqs.len
|
||||||
|
for i in 1..10:
|
||||||
let n = (l.float * (i.float/10.0)).int
|
let n = (l.float * (i.float/10.0)).int
|
||||||
echo "Predictions with ", (100.0 * i.float/10.0).int, "% of the hypotheses"
|
echo "Predictions with ", (100.0 * i.float/10.0).int, "% of the hypotheses"
|
||||||
let predictions = predictContinuationWithTruncatedHypotheses(seqs, start, n)
|
let predictions = predictContinuationWithTruncatedHypotheses(seqs, start, n)
|
||||||
print predictions
|
print predictions
|
||||||
|
|
||||||
|
## showPredictionsWithMoreHypotheses()
|
||||||
|
|
||||||
|
proc jitBayesLoop(seqs: seq[seq[string]], observations: seq[string]) =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user