col_gen_estimator.DTreeSubProblemHeuristic

class col_gen_estimator.DTreeSubProblemHeuristic(leaves, nodes, splits, targets, depth, data_rows=None)[source]

TODO: Documentation.

__init__(leaves, nodes, splits, targets, depth, data_rows=None) None[source]
generate_columns(X, y, dual_costs, params='')[source]

TODO: Documentation.

get_reduced_cost(X, y, dual_costs, path, row_satisfies_path_array)[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.