tuners package¶
Subpackages¶
Submodules¶
tuners.cdpg_tuner module¶
tuners.dpg_tuner module¶
tuners.tuner module¶
- class tuners.tuner.Tuner(model, target, proposal=None, context_distribution=<disco.distributions.single_context_distribution.SingleContextDistribution object>, loss=<disco.tuners.losses.kl.KLLoss object>, features=[], track_metrics=['kl', 'tv', 'js'], track_divergence_from_base=False, **params)[source]¶
Bases:
object
Generic tuning class.
- default_params = {'context_sampling_size': 16, 'divergence_evaluation_interval': 16, 'learning_rate': 1.41e-05, 'n_gradient_steps': 1024, 'n_samples_per_step': 1024, 'optimizer': 'Adam', 'proposal_update_metric': 'kl', 'sampling_size': 32, 'scheduler': 'constant', 'scoring_size': 64, 'warmup_steps': 12}¶