mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 05:57:57 -05:00
Decision tree training.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user