34;
            elif self.mode == &#34;exp_range&#34;:
                self.scale_fn = lambda x: gamma ** (x)
                self.scale_mode = &#34;iterations&#34;
        else:
            self.scale_fn = scale_fn
            self.scale_mode = scale_mode
        self.clr_iterations = 0.0
        self.trn_iterations = 0.0
        self.history = {}

        # restoring weights due to CRF bug
        self.best_weights = None

        # LR reduction
        self.verbose = verbose
        self.patience = reduc