col_gen_estimator.DTreeSubProblem¶
- class col_gen_estimator.DTreeSubProblem(leaf, nodes, splits, targets, depth, data_rows=None, solver_str='sat')[source]¶
TODO: Documentation.
- update_subproblem(X, y, dual_costs)[source]¶
(Optional) Updates the subproblem model. This is useful when we add more constraints to the master problem. The subproblem needs to be updated to handle new dual cost information. Parameters ———- X : ndarray, shape (n_samples, n_features)
The input.
- yndarray, shape (n_samples,)
The labels.
- dual_costs:
The dual costs and other information needed to update the subproblem.