Decision tree training.

This commit is contained in:
Marcel Keller
2022-11-09 11:21:34 +11:00
parent 90336561f8
commit cd25c2e9f1
187 changed files with 2357 additions and 329 deletions

View File

@@ -311,6 +311,7 @@ def BitDecField(a, k, m, kappa, bits_to_compute=None):
@instructions_base.ret_cisc
def Pow2(a, l, kappa):
comparison.program.curr_tape.require_bit_length(l - 1)
m = int(ceil(log(l, 2)))
t = BitDec(a, m, m, kappa)
return Pow2_from_bits(t)