odtlearn.utils.callback_helpers#

Module Contents#

Functions#

get_left_exp_integer(solver, main_grb_obj, n, i)

get_right_exp_integer(solver, main_grb_obj, n, i)

get_target_exp_integer(main_grb_obj, n, i)

get_cut_integer(solver, main_grb_obj, left, right, ...)

get_cut_expression(master, solver, X, b, w, path, xi, ...)

get_all_terminal_paths(master, b, w[, terminal_nodes, ...])

find all terminal paths

get_nominal_path(master, b, w, i)

Get the nominal path for a correctly classified point

shortest_path_solver(master, i, label, terminal_nodes, ...)

odtlearn.utils.callback_helpers.get_left_exp_integer(solver, main_grb_obj, n, i)[source]#
odtlearn.utils.callback_helpers.get_right_exp_integer(solver, main_grb_obj, n, i)[source]#
odtlearn.utils.callback_helpers.get_target_exp_integer(main_grb_obj, n, i)[source]#
odtlearn.utils.callback_helpers.get_cut_integer(solver, main_grb_obj, left, right, target, i)[source]#
odtlearn.utils.callback_helpers.get_cut_expression(master, solver, X, b, w, path, xi, v, i, f_theta_indices)[source]#
odtlearn.utils.callback_helpers.get_all_terminal_paths(master, b, w, terminal_nodes=[], path_dict={}, feature_path_dict={}, assignment_dict={}, cutoff_dict={}, curr_node=1, curr_path=[1], curr_feature_path=[], curr_cutoff_path=[])[source]#

find all terminal paths

odtlearn.utils.callback_helpers.get_nominal_path(master, b, w, i)[source]#

Get the nominal path for a correctly classified point

odtlearn.utils.callback_helpers.shortest_path_solver(master, i, label, terminal_nodes, terminal_path_dict, terminal_features_dict, terminal_assignments_dict, terminal_cutoffs_dict, initial_xi, initial_mins, initial_maxes)[source]#