Пример #1
0
import numpy as np
import dp_penalty_minibatch
params = dp_penalty_minibatch.MinibatchPenaltyParams(tau=0.7,
                                                     prop_sigma=np.repeat(
                                                         0.0010, 2),
                                                     r_clip_bound=1,
                                                     batch_size=1000,
                                                     ocu=False,
                                                     grw=False)
Пример #2
0
import numpy as np
import dp_penalty_minibatch
params = dp_penalty_minibatch.MinibatchPenaltyParams(tau=0.8,
                                                     prop_sigma=np.repeat(
                                                         8 * 0.0035, 10),
                                                     r_clip_bound=2,
                                                     batch_size=1200,
                                                     ocu=True,
                                                     grw=True)
Пример #3
0
import numpy as np
import dp_penalty_minibatch
params = dp_penalty_minibatch.MinibatchPenaltyParams(
    tau = 2.0,
    prop_sigma = np.repeat(0.04, 2),
    r_clip_bound = 4,
    batch_size = 1000,
    ocu = True,
    grw = True
)
Пример #4
0
import numpy as np
import dp_penalty_minibatch
params = dp_penalty_minibatch.MinibatchPenaltyParams(tau=0.7,
                                                     prop_sigma=np.repeat(
                                                         8 * 0.0025, 10),
                                                     r_clip_bound=2,
                                                     batch_size=1200,
                                                     ocu=False,
                                                     grw=False)