def __init__(self, model, max_iter=10000, C=1.0, check_constraints=False, verbose=0, negativity_constraint=None, n_jobs=1, break_on_bad=False, show_loss_every=0, tol=1e-3, inference_cache=0, inactive_threshold=1e-5, inactive_window=50, logger=None, cache_tol='auto', switch_to=None): Pystruct_OneSlackSSVM.__init__(self, model, max_iter=max_iter, C=C, check_constraints=check_constraints, verbose=verbose, negativity_constraint=negativity_constraint, n_jobs=n_jobs, break_on_bad=break_on_bad, show_loss_every=show_loss_every, tol=tol, inference_cache=inference_cache, inactive_threshold=inactive_threshold, inactive_window=inactive_window, logger=logger, cache_tol=cache_tol, switch_to=switch_to)
def __init__(self, model, max_iter=10000, C=1.0, check_constraints=False, verbose=0, negativity_constraint=None, positivity_constraint=None, null_constraints=None, hard_constraints=None, n_jobs=1, break_on_bad=False, show_loss_every=0, tol=1e-3, inference_cache=0, inactive_threshold=1e-5, inactive_window=50, logger=None, cache_tol='auto', switch_to=None, generate_hard_constraints=None, initialize_constraints=None, qp_eps=1e-5): OneSlackSSVM.__init__(self, model, max_iter, C, check_constraints, verbose, negativity_constraint, positivity_constraint, hard_constraints, n_jobs, break_on_bad, show_loss_every, tol, inference_cache, inactive_threshold, inactive_window, logger, cache_tol, switch_to) if (hard_constraints, positivity_constraint, negativity_constraint, generate_hard_constraints) is (None, None, None, None): self.hard_satisfied = True else: # there are hard constraints to satisfy self.hard_satisfied = False self.null_constraints = null_constraints self.generate_hard_constraints = generate_hard_constraints self.initialize_constraints = initialize_constraints self.cutting_constraints = [] self._inference_calls = 0 self.qp_eps = qp_eps self.converged = False