SYMBOL INDEX (499 symbols across 91 files) FILE: baseline/funsearch/bin_packing_utils.py function l1_bound (line 2205) | def l1_bound(items: Tuple[int, ...], capacity: int) -> float: function l1_bound_dataset (line 2218) | def l1_bound_dataset(instances: dict) -> float: FILE: baseline/funsearch/funsearch_bin_packing_llm_api.py function _trim_preface_of_body (line 20) | def _trim_preface_of_body(sample: str) -> str: class LLMAPI (line 57) | class LLMAPI(sampler.LLM): method __init__ (line 61) | def __init__(self, samples_per_prompt: int, trim=True): method draw_samples (line 69) | def draw_samples(self, prompt: str) -> Collection[str]: method _draw_sample (line 73) | def _draw_sample(self, content: str) -> str: class Sandbox (line 106) | class Sandbox(evaluator.Sandbox): method __init__ (line 114) | def __init__(self, verbose=False, numba_accelerate=True): method run (line 124) | def run( method _compile_and_run_function (line 173) | def _compile_and_run_function(self, program, function_to_run, function... FILE: baseline/funsearch/funsearch_bin_packing_local_llm.py function _trim_preface_of_body (line 15) | def _trim_preface_of_body(sample: str) -> str: class LocalLLM (line 52) | class LocalLLM(sampler.LLM): method __init__ (line 56) | def __init__(self, samples_per_prompt: int, batch_inference: bool = Tr... method draw_samples (line 71) | def draw_samples(self, prompt: str) -> Collection[str]: method _do_request (line 94) | def _do_request(self, content: str) -> str: class Sandbox (line 117) | class Sandbox(evaluator.Sandbox): method __init__ (line 125) | def __init__(self, verbose=False, numba_accelerate=True): method run (line 135) | def run( method _compile_and_run_function (line 184) | def _compile_and_run_function(self, program, function_to_run, function... FILE: baseline/funsearch/implementation/code_manipulation.py class Function (line 41) | class Function: method __str__ (line 54) | def __str__(self) -> str: method __setattr__ (line 69) | def __setattr__(self, name: str, value: str) -> None: class Program (line 82) | class Program: method __str__ (line 90) | def __str__(self) -> str: method find_function_index (line 95) | def find_function_index(self, function_name: str) -> int: method get_function (line 111) | def get_function(self, function_name: str) -> Function: class ProgramVisitor (line 116) | class ProgramVisitor(ast.NodeVisitor): method __init__ (line 122) | def __init__(self, sourcecode: str): method visit_FunctionDef (line 128) | def visit_FunctionDef(self, # pylint: disable=invalid-name method return_program (line 178) | def return_program(self) -> Program: function text_to_program (line 182) | def text_to_program(text: str) -> Program: function text_to_function (line 197) | def text_to_function(text: str) -> Function: function _tokenize (line 206) | def _tokenize(code: str) -> Iterator[tokenize.TokenInfo]: function _untokenize (line 213) | def _untokenize(tokens: Sequence[tokenize.TokenInfo]) -> str: function _yield_token_and_is_call (line 219) | def _yield_token_and_is_call(code: str) -> Iterator[tuple[tokenize.Token... function rename_function_calls (line 247) | def rename_function_calls(code: str, source_name: str, target_name: str)... function get_functions_called (line 269) | def get_functions_called(code: str) -> MutableSet[str]: function yield_decorated (line 276) | def yield_decorated(code: str, module: str, name: str) -> Iterator[str]: FILE: baseline/funsearch/implementation/config.py class ProgramsDatabaseConfig (line 27) | class ProgramsDatabaseConfig: class Config (line 47) | class Config: class ClassConfig (line 69) | class ClassConfig: FILE: baseline/funsearch/implementation/evaluator.py class _FunctionLineVisitor (line 31) | class _FunctionLineVisitor(ast.NodeVisitor): method __init__ (line 34) | def __init__(self, target_function_name: str) -> None: method visit_FunctionDef (line 38) | def visit_FunctionDef(self, node: Any) -> None: # pylint: disable=inv... method function_end_line (line 45) | def function_end_line(self) -> int: function _trim_function_body (line 51) | def _trim_function_body(generated_code: str) -> str: function _sample_to_program (line 85) | def _sample_to_program( class Sandbox (line 108) | class Sandbox(ABC): method run (line 115) | def run( function _calls_ancestor (line 132) | def _calls_ancestor(program: str, function_to_evolve: str) -> bool: class Evaluator (line 144) | class Evaluator: method __init__ (line 147) | def __init__( method analyse (line 165) | def analyse( FILE: baseline/funsearch/implementation/evaluator_accelerate.py function add_numba_decorator (line 8) | def add_numba_decorator( FILE: baseline/funsearch/implementation/funsearch.py function _extract_function_names (line 33) | def _extract_function_names(specification: str) -> Tuple[str, str]: function main (line 51) | def main( FILE: baseline/funsearch/implementation/profile.py class Profiler (line 15) | class Profiler: method __init__ (line 16) | def __init__( method _write_tensorboard (line 52) | def _write_tensorboard(self): method _write_json (line 75) | def _write_json(self, programs: code_manipulation.Function): method register_function (line 89) | def register_function(self, programs: code_manipulation.Function): method _record_and_verbose (line 101) | def _record_and_verbose(self, sample_orders: int): FILE: baseline/funsearch/implementation/programs_database.py function _softmax (line 41) | def _softmax(logits: np.ndarray, temperature: float) -> np.ndarray: function _reduce_score (line 56) | def _reduce_score(scores_per_test: ScoresPerTest) -> float: function _get_signature (line 65) | def _get_signature(scores_per_test: ScoresPerTest) -> Signature: class Prompt (line 71) | class Prompt: class ProgramsDatabase (line 86) | class ProgramsDatabase: method __init__ (line 89) | def __init__( method get_prompt (line 115) | def get_prompt(self) -> Prompt: method _register_program_in_island (line 121) | def _register_program_in_island( method register_program (line 149) | def register_program( method reset_islands (line 172) | def reset_islands(self) -> None: class Island (line 195) | class Island: method __init__ (line 198) | def __init__( method register_program (line 216) | def register_program( method get_prompt (line 230) | def get_prompt(self) -> tuple[str, int]: method _generate_prompt (line 261) | def _generate_prompt( class Cluster (line 299) | class Cluster: method __init__ (line 302) | def __init__(self, score: float, implementation: code_manipulation.Fun... method score (line 308) | def score(self) -> float: method register_program (line 312) | def register_program(self, program: code_manipulation.Function) -> None: method sample_program (line 317) | def sample_program(self) -> code_manipulation.Function: FILE: baseline/funsearch/implementation/sampler.py class LLM (line 28) | class LLM(ABC): method __init__ (line 57) | def __init__(self, samples_per_prompt: int) -> None: method _draw_sample (line 60) | def _draw_sample(self, prompt: str) -> str: method draw_samples (line 65) | def draw_samples(self, prompt: str) -> Collection[str]: class Sampler (line 70) | class Sampler: method __init__ (line 75) | def __init__( method sample (line 89) | def sample(self, **kwargs): method _get_global_sample_nums (line 115) | def _get_global_sample_nums(self) -> int: method set_global_sample_nums (line 118) | def set_global_sample_nums(self, num): method _global_sample_nums_plus_one (line 121) | def _global_sample_nums_plus_one(self): FILE: baseline/funsearch/llm-server/llm_server.py function completions (line 72) | def completions(): FILE: baseline/funsearch/llm-server/request.py function process_response_content (line 61) | def process_response_content(content: str) -> str: FILE: eoh/src/eoh/eoh.py class EVOL (line 9) | class EVOL: method __init__ (line 12) | def __init__(self, paras, prob=None, **kwargs): method run (line 32) | def run(self): FILE: eoh/src/eoh/llm/api_general.py class InterfaceAPI (line 5) | class InterfaceAPI: method __init__ (line 6) | def __init__(self, api_endpoint, api_key, model_LLM, debug_mode): method get_response (line 13) | def get_response(self, prompt_content): FILE: eoh/src/eoh/llm/api_hf_inter.py class InterfaceHF (line 5) | class InterfaceHF(): method __init__ (line 7) | def __init__(self,key,model_LLM,debug_mode): method get_response (line 12) | def get_response(self,prompt_content): FILE: eoh/src/eoh/llm/api_local_llm.py class InterfaceLocalLLM (line 7) | class InterfaceLocalLLM: method __init__ (line 11) | def __init__(self, url): method get_response (line 14) | def get_response(self, content: str) -> str: method _do_request (line 22) | def _do_request(self, content: str) -> str: FILE: eoh/src/eoh/llm/interface_LLM.py class InterfaceLLM (line 4) | class InterfaceLLM: method __init__ (line 5) | def __init__(self, api_endpoint, api_key, model_LLM,llm_use_local,llm_... method get_response (line 53) | def get_response(self, prompt_content): FILE: eoh/src/eoh/llm_local_server/codellama_instruct_server.py function get_prompt (line 69) | def get_prompt(messages: list, system_prompt: str) -> str: function format_prompt (line 84) | def format_prompt(prompt: str, sys_prompt='') -> str: function completions (line 94) | def completions(): FILE: eoh/src/eoh/llm_local_server/codellama_server.py function completions (line 70) | def completions(): FILE: eoh/src/eoh/llm_local_server/deepseek_coder_server.py function completions (line 72) | def completions(): FILE: eoh/src/eoh/llm_local_server/gemma_instruct_server.py function completions (line 65) | def completions(): FILE: eoh/src/eoh/llm_local_server/starcoder_server.py function completions (line 70) | def completions(): FILE: eoh/src/eoh/methods/ael/ael.py class AEL (line 8) | class AEL: method __init__ (line 11) | def __init__(self, paras, problem, select, manage, **kwargs): method add2pop (line 64) | def add2pop(self, population, offspring): method run (line 74) | def run(self): FILE: eoh/src/eoh/methods/ael/ael_evolution.py class Evolution (line 5) | class Evolution(): method __init__ (line 7) | def __init__(self, api_endpoint, api_key, model_LLM, debug_mode,prompt... method get_prompt_i1 (line 45) | def get_prompt_i1(self): method get_prompt_crossover (line 57) | def get_prompt_crossover(self,indivs): method get_prompt_mutation (line 75) | def get_prompt_mutation(self,indiv1): method _get_alg (line 92) | def _get_alg(self,prompt_content): method i1 (line 142) | def i1(self): method crossover (line 161) | def crossover(self,parents): method mutation (line 181) | def mutation(self,parents): FILE: eoh/src/eoh/methods/ael/ael_interface_EC.py class InterfaceEC (line 10) | class InterfaceEC(): method __init__ (line 11) | def __init__(self, pop_size, m, api_endpoint, api_key, llm_model, debu... method code2file (line 33) | def code2file(self,code): method add2pop (line 39) | def add2pop(self,population,offspring): method check_duplicate (line 48) | def check_duplicate(self,population,code): method population_generation (line 65) | def population_generation(self): method population_generation_seed (line 77) | def population_generation_seed(self,seeds,n_p): method _get_alg (line 105) | def _get_alg(self,pop,operator): method get_offspring (line 126) | def get_offspring(self, pop, operator): method get_algorithm (line 213) | def get_algorithm(self, pop, operator): FILE: eoh/src/eoh/methods/ael/evaluator_accelerate.py function add_import_package_statement (line 10) | def add_import_package_statement(program: str, package_name: str, as_nam... function _add_numba_decorator (line 32) | def _add_numba_decorator( function add_numba_decorator (line 73) | def add_numba_decorator( function add_np_random_seed_below_numpy_import (line 100) | def add_np_random_seed_below_numpy_import(program: str, seed: int = 2024... class _CustomDivisionTransformer (line 144) | class _CustomDivisionTransformer(ast.NodeTransformer): method __init__ (line 145) | def __init__(self, custom_divide_func_name: str): method visit_BinOp (line 149) | def visit_BinOp(self, node): function replace_div_with_protected_div (line 162) | def replace_div_with_protected_div(code_str: str, delta=1e-5, numba_acce... function add_numpy_random_seed_to_func (line 178) | def add_numpy_random_seed_to_func(program: str, func_name: str, seed: in... FILE: eoh/src/eoh/methods/eoh/eoh.py class EOH (line 8) | class EOH: method __init__ (line 11) | def __init__(self, paras, problem, select, manage, **kwargs): method add2pop (line 67) | def add2pop(self, population, offspring): method run (line 77) | def run(self): FILE: eoh/src/eoh/methods/eoh/eoh_evolution.py class Evolution (line 5) | class Evolution(): method __init__ (line 7) | def __init__(self, api_endpoint, api_key, model_LLM,llm_use_local,llm_... method get_prompt_i1 (line 36) | def get_prompt_i1(self): method get_prompt_e1 (line 48) | def get_prompt_e1(self,indivs): method get_prompt_e2 (line 65) | def get_prompt_e2(self,indivs): method get_prompt_m1 (line 82) | def get_prompt_m1(self,indiv1): method get_prompt_m2 (line 97) | def get_prompt_m2(self,indiv1): method get_prompt_m3 (line 112) | def get_prompt_m3(self,indiv1): method _get_alg (line 121) | def _get_alg(self,prompt_content): method i1 (line 171) | def i1(self): method e1 (line 190) | def e1(self,parents): method e2 (line 209) | def e2(self,parents): method m1 (line 228) | def m1(self,parents): method m2 (line 247) | def m2(self,parents): method m3 (line 266) | def m3(self,parents): FILE: eoh/src/eoh/methods/eoh/eoh_interface_EC.py class InterfaceEC (line 10) | class InterfaceEC(): method __init__ (line 11) | def __init__(self, pop_size, m, api_endpoint, api_key, llm_model,llm_u... method code2file (line 30) | def code2file(self,code): method add2pop (line 36) | def add2pop(self,population,offspring): method check_duplicate (line 45) | def check_duplicate(self,population,code): method population_generation (line 62) | def population_generation(self): method population_generation_seed (line 75) | def population_generation_seed(self,seeds,n_p): method _get_alg (line 103) | def _get_alg(self,pop,operator): method get_offspring (line 133) | def get_offspring(self, pop, operator): method get_algorithm (line 218) | def get_algorithm(self, pop, operator): FILE: eoh/src/eoh/methods/eoh/evaluator_accelerate.py function add_import_package_statement (line 10) | def add_import_package_statement(program: str, package_name: str, as_nam... function _add_numba_decorator (line 32) | def _add_numba_decorator( function add_numba_decorator (line 73) | def add_numba_decorator( function add_np_random_seed_below_numpy_import (line 100) | def add_np_random_seed_below_numpy_import(program: str, seed: int = 2024... class _CustomDivisionTransformer (line 144) | class _CustomDivisionTransformer(ast.NodeTransformer): method __init__ (line 145) | def __init__(self, custom_divide_func_name: str): method visit_BinOp (line 149) | def visit_BinOp(self, node): function replace_div_with_protected_div (line 162) | def replace_div_with_protected_div(code_str: str, delta=1e-5, numba_acce... function add_numpy_random_seed_to_func (line 178) | def add_numpy_random_seed_to_func(program: str, func_name: str, seed: in... FILE: eoh/src/eoh/methods/localsearch/evaluator_accelerate.py function add_import_package_statement (line 10) | def add_import_package_statement(program: str, package_name: str, as_nam... function _add_numba_decorator (line 32) | def _add_numba_decorator( function add_numba_decorator (line 73) | def add_numba_decorator( function add_np_random_seed_below_numpy_import (line 100) | def add_np_random_seed_below_numpy_import(program: str, seed: int = 2024... class _CustomDivisionTransformer (line 144) | class _CustomDivisionTransformer(ast.NodeTransformer): method __init__ (line 145) | def __init__(self, custom_divide_func_name: str): method visit_BinOp (line 149) | def visit_BinOp(self, node): function replace_div_with_protected_div (line 162) | def replace_div_with_protected_div(code_str: str, delta=1e-5, numba_acce... function add_numpy_random_seed_to_func (line 178) | def add_numpy_random_seed_to_func(program: str, func_name: str, seed: in... FILE: eoh/src/eoh/methods/localsearch/ls.py class LS (line 8) | class LS: method __init__ (line 11) | def __init__(self, paras, problem, select, manage, **kwargs): method add2pop (line 63) | def add2pop(self, population, offspring): method run (line 73) | def run(self): FILE: eoh/src/eoh/methods/localsearch/ls_evolution.py class Evolution (line 5) | class Evolution(): method __init__ (line 7) | def __init__(self, api_endpoint, api_key, model_LLM, debug_mode,prompt... method get_prompt_i1 (line 45) | def get_prompt_i1(self): method get_prompt_e1 (line 57) | def get_prompt_e1(self,indivs): method get_prompt_e2 (line 74) | def get_prompt_e2(self,indivs): method get_prompt_m1 (line 91) | def get_prompt_m1(self,indiv1): method get_prompt_m2 (line 106) | def get_prompt_m2(self,indiv1): method _get_alg (line 122) | def _get_alg(self,prompt_content): method i1 (line 172) | def i1(self): method e1 (line 191) | def e1(self,parents): method e2 (line 210) | def e2(self,parents): method m1 (line 229) | def m1(self,parents): method m2 (line 248) | def m2(self,parents): FILE: eoh/src/eoh/methods/localsearch/ls_interface_EC.py class InterfaceEC (line 9) | class InterfaceEC(): method __init__ (line 10) | def __init__(self, pop_size, m, api_endpoint, api_key, llm_model, debu... method code2file (line 30) | def code2file(self,code): method add2pop (line 36) | def add2pop(self,population,offspring): method check_duplicate (line 45) | def check_duplicate(self,population,code): method population_generation (line 62) | def population_generation(self): method population_generation_seed (line 71) | def population_generation_seed(self,seeds,n_p): method _get_alg (line 99) | def _get_alg(self,pop,operator): method get_offspring (line 117) | def get_offspring(self, pop, operator): method get_algorithm (line 171) | def get_algorithm(self, pop, operator): FILE: eoh/src/eoh/methods/management/ls_greedy.py function population_management (line 3) | def population_management(population, new, temperature): FILE: eoh/src/eoh/methods/management/ls_sa.py function acceptance_probability (line 4) | def acceptance_probability(old_cost, new_cost, temperature): function population_management (line 9) | def population_management(population, new, temperature): FILE: eoh/src/eoh/methods/management/pop_greedy.py function population_management (line 3) | def population_management(pop,size): FILE: eoh/src/eoh/methods/methods.py class Methods (line 5) | class Methods(): method __init__ (line 6) | def __init__(self,paras,problem) -> None: method get_method (line 32) | def get_method(self): FILE: eoh/src/eoh/methods/selection/equal.py function parent_selection (line 2) | def parent_selection(population, m): FILE: eoh/src/eoh/methods/selection/prob_rank.py function parent_selection (line 2) | def parent_selection(pop,m): FILE: eoh/src/eoh/methods/selection/roulette_wheel.py function parent_selection (line 2) | def parent_selection(population, m): FILE: eoh/src/eoh/methods/selection/tournament.py function parent_selection (line 4) | def parent_selection(population, m): FILE: eoh/src/eoh/problems/machinelearning/L_AutoDA/ael_evaluation.py class Evaluation (line 22) | class Evaluation(): method __init__ (line 23) | def __init__(self, dataset_path=DATASET_PATH, dataset_name=DATASET, nu... method greedy (line 33) | def greedy(self, eva): method evaluate (line 52) | def evaluate(self): FILE: eoh/src/eoh/problems/machinelearning/L_AutoDA/ael_prompts.py class GetPrompts (line 2) | class GetPrompts(): method __init__ (line 3) | def __init__(self): method get_task (line 26) | def get_task(self): method get_func_name (line 29) | def get_func_name(self): method get_func_inputs (line 32) | def get_func_inputs(self): method get_func_outputs (line 35) | def get_func_outputs(self): method get_inout_inf (line 38) | def get_inout_inf(self): method get_other_inf (line 41) | def get_other_inf(self): function select_next_node (line 92) | def select_next_node(current_node, destination_node, unvisited_nodes, di... FILE: eoh/src/eoh/problems/machinelearning/L_AutoDA/attacks/evo_for_ael_no_mem.py class EvoAttack (line 34) | class EvoAttack(MinimizationAttack): method __init__ (line 37) | def __init__( method run (line 51) | def run( method _f_p (line 176) | def _f_p(self, p): FILE: eoh/src/eoh/problems/machinelearning/L_AutoDA/utils/get_data.py function setup_seed (line 8) | def setup_seed(seed): function get_data_by_id (line 16) | def get_data_by_id(dataset_name, use_train_data=False, data_path=None): function create_idx_by_id (line 45) | def create_idx_by_id(dataset_name, data_set, save_path=None): FILE: eoh/src/eoh/problems/machinelearning/L_AutoDA/utils/get_model.py function get_model (line 13) | def get_model(model_name="cifar10", model_path=None): function get_cifar10_model (line 22) | def get_cifar10_model(model_path=None): function get_imagenet_model (line 50) | def get_imagenet_model(model_path=None): FILE: eoh/src/eoh/problems/optimization/bp_online/get_instance.py class GetData (line 3) | class GetData(): method __init__ (line 4) | def __init__(self) -> None: method l1_bound (line 43) | def l1_bound(self,items: tuple, capacity: int) -> float: method l1_bound_dataset (line 56) | def l1_bound_dataset(self,instances: dict) -> float: method get_instances (line 71) | def get_instances(self): FILE: eoh/src/eoh/problems/optimization/bp_online/prompts.py class GetPrompts (line 1) | class GetPrompts(): method __init__ (line 2) | def __init__(self): method get_task (line 13) | def get_task(self): method get_func_name (line 16) | def get_func_name(self): method get_func_inputs (line 19) | def get_func_inputs(self): method get_func_outputs (line 22) | def get_func_outputs(self): method get_inout_inf (line 25) | def get_inout_inf(self): method get_other_inf (line 28) | def get_other_inf(self): FILE: eoh/src/eoh/problems/optimization/bp_online/run.py class BPONLINE (line 9) | class BPONLINE(): method __init__ (line 10) | def __init__(self): method get_valid_bin_indices (line 15) | def get_valid_bin_indices(self,item: float, bins: np.ndarray) -> np.nd... method online_binpack (line 20) | def online_binpack(self,items: tuple, bins: np.ndarray, alg): method evaluateGreedy (line 43) | def evaluateGreedy(self,alg) -> float: method evaluate (line 105) | def evaluate(self, code_string): FILE: eoh/src/eoh/problems/optimization/tsp_greedy/get_instance.py class GetData (line 3) | class GetData(): method __init__ (line 4) | def __init__(self,n_instance,n_cities): method generate_instances (line 8) | def generate_instances(self): FILE: eoh/src/eoh/problems/optimization/tsp_greedy/prompts.py class GetPrompts (line 2) | class GetPrompts(): method __init__ (line 3) | def __init__(self): method get_task (line 14) | def get_task(self): method get_func_name (line 17) | def get_func_name(self): method get_func_inputs (line 20) | def get_func_inputs(self): method get_func_outputs (line 23) | def get_func_outputs(self): method get_inout_inf (line 26) | def get_inout_inf(self): method get_other_inf (line 29) | def get_other_inf(self): FILE: eoh/src/eoh/problems/optimization/tsp_greedy/run.py class TSPCONST (line 9) | class TSPCONST(): method __init__ (line 10) | def __init__(self) -> None: method tour_cost (line 32) | def tour_cost(self,instance, solution, problem_size): method generate_neighborhood_matrix (line 39) | def generate_neighborhood_matrix(self,instance): method greedy (line 53) | def greedy(self,eva): method evaluate (line 116) | def evaluate(self, code_string): FILE: eoh/src/eoh/problems/problems.py class Probs (line 5) | class Probs(): method __init__ (line 6) | def __init__(self,paras): method get_problem (line 23) | def get_problem(self): FILE: eoh/src/eoh/utils/createFolders.py function create_folders (line 3) | def create_folders(results_path): FILE: eoh/src/eoh/utils/createReport.py class ReportCreator (line 10) | class ReportCreator(): method __init__ (line 11) | def __init__(self,paras) -> None: method create_convergence (line 18) | def create_convergence(self): method get_final_algorithms (line 83) | def get_final_algorithms(self): method generate_doc_report (line 105) | def generate_doc_report(self): FILE: eoh/src/eoh/utils/getParas.py class Paras (line 2) | class Paras(): method __init__ (line 3) | def __init__(self): method set_parallel (line 49) | def set_parallel(self): method set_ec (line 56) | def set_ec(self): method set_evaluation (line 91) | def set_evaluation(self): method set_paras (line 98) | def set_paras(self, *args, **kwargs): FILE: eoh/src/eoh/utils/get_all_results.py function code2file (line 8) | def code2file(algorithm,code,n,ng): FILE: examples/bp_online/evaluation/evaluation.py class Evaluation (line 4) | class Evaluation(): method __init__ (line 5) | def __init__(self): method get_valid_bin_indices (line 10) | def get_valid_bin_indices(self,item: float, bins: np.ndarray) -> np.nd... method online_binpack (line 15) | def online_binpack(self,items: tuple, bins: np.ndarray, alg): method evaluateGreedy (line 36) | def evaluateGreedy(self,instances: dict,alg) -> float: FILE: examples/bp_online/evaluation/get_instance.py class GetData (line 3) | class GetData(): method __init__ (line 4) | def __init__(self) -> None: method read_dataset_from_file (line 25) | def read_dataset_from_file(self,filename): method l1_bound (line 44) | def l1_bound(self,items: tuple, capacity: int) -> float: method l1_bound_dataset (line 57) | def l1_bound_dataset(self,instances: dict) -> float: method get_instances (line 72) | def get_instances(self,capacity,size): FILE: examples/bp_online/evaluation/heuristic.py function score (line 4) | def score(item, bins): FILE: examples/bp_online/evaluation/testingdata/generate_instances.py function generate_weibull_dataset (line 4) | def generate_weibull_dataset(num_instances, num_items, clipping_limit): function read_dataset_from_file (line 30) | def read_dataset_from_file(filename): function write_dataset_to_file (line 72) | def write_dataset_to_file(dataset, filename): FILE: examples/bp_online_localLLM/evaluation/evaluation.py class Evaluation (line 4) | class Evaluation(): method __init__ (line 5) | def __init__(self): method get_valid_bin_indices (line 10) | def get_valid_bin_indices(self,item: float, bins: np.ndarray) -> np.nd... method online_binpack (line 15) | def online_binpack(self,items: tuple, bins: np.ndarray, alg): method evaluateGreedy (line 36) | def evaluateGreedy(self,instances: dict,alg) -> float: FILE: examples/bp_online_localLLM/evaluation/get_instance.py class GetData (line 3) | class GetData(): method __init__ (line 4) | def __init__(self) -> None: method read_dataset_from_file (line 25) | def read_dataset_from_file(self,filename): method l1_bound (line 44) | def l1_bound(self,items: tuple, capacity: int) -> float: method l1_bound_dataset (line 57) | def l1_bound_dataset(self,instances: dict) -> float: method get_instances (line 72) | def get_instances(self,capacity,size): FILE: examples/bp_online_localLLM/evaluation/heuristic.py function score (line 4) | def score(item, bins): FILE: examples/bp_online_localLLM/evaluation/testingdata/generate_instances.py function generate_weibull_dataset (line 4) | def generate_weibull_dataset(num_instances, num_items, clipping_limit): function read_dataset_from_file (line 30) | def read_dataset_from_file(filename): function write_dataset_to_file (line 72) | def write_dataset_to_file(dataset, filename): FILE: examples/tsp_construct/evaluation/evaluation.py class Evaluation (line 7) | class Evaluation(): method __init__ (line 8) | def __init__(self,problem_size,dataset,n_test,debug_mode=False) -> None: method tour_cost (line 18) | def tour_cost(self,instance, solution, problem_size): method generate_neighborhood_matrix (line 25) | def generate_neighborhood_matrix(self,instance): method route_plot (line 38) | def route_plot(self, instance, route): method evaluate (line 66) | def evaluate(self): FILE: examples/tsp_construct/evaluation/heuristic.py function select_next_node (line 4) | def select_next_node(current_node, destination_node, unvisited_nodes, di... FILE: examples/user_bo_caf/best_alg.py function utility (line 4) | def utility(train_x, train_y, best_x, best_y, test_x, mean_test_y, std_t... FILE: examples/user_bo_caf/prob.py class CostModel (line 31) | class CostModel(torch.nn.Module, ABC): method forward (line 37) | def forward(self, X): class CostModelGP (line 41) | class CostModelGP(CostModel): method __init__ (line 47) | def __init__(self, X, Y_cost): method forward (line 55) | def forward(self, X): class CustomAF (line 58) | class CustomAF(AnalyticAcquisitionFunction): method __init__ (line 59) | def __init__(self, alg, model, cost_model, method forward (line 74) | def forward(self, test_x: Tensor) -> Tensor: class ExpectedImprovementWithCost (line 87) | class ExpectedImprovementWithCost(AnalyticAcquisitionFunction): method __init__ (line 93) | def __init__(self, model, cost_model, best_f, budget_init, budget_used... method forward (line 100) | def forward(self, X): class Evaluation (line 104) | class Evaluation(): method __init__ (line 105) | def __init__(self) -> None: method eval_objective (line 113) | def eval_objective(self, real_problem,x): method eval_cost (line 118) | def eval_cost(self, real_problem,x): method get_initial_points (line 125) | def get_initial_points(self, dim, n_pts, seed=0): method EGO (line 130) | def EGO(self, code_string, cost_total, real_problem, random_seed): method EvalEGO (line 219) | def EvalEGO(self,code_string): method evaluate (line 233) | def evaluate(self, code_string): FILE: examples/user_bo_caf/prompts.py class GetPrompts (line 1) | class GetPrompts(): method __init__ (line 2) | def __init__(self): method get_task (line 22) | def get_task(self): method get_func_name (line 25) | def get_func_name(self): method get_func_inputs (line 28) | def get_func_inputs(self): method get_func_outputs (line 31) | def get_func_outputs(self): method get_inout_inf (line 34) | def get_inout_inf(self): method get_other_inf (line 37) | def get_other_inf(self): FILE: examples/user_bp_online/get_instance.py class GetData (line 3) | class GetData(): method __init__ (line 4) | def __init__(self) -> None: method l1_bound (line 43) | def l1_bound(self,items: tuple, capacity: int) -> float: method l1_bound_dataset (line 56) | def l1_bound_dataset(self,instances: dict) -> float: method get_instances (line 71) | def get_instances(self): FILE: examples/user_bp_online/prob.py class BPONLINE (line 9) | class BPONLINE(): method __init__ (line 10) | def __init__(self): method get_valid_bin_indices (line 15) | def get_valid_bin_indices(self,item: float, bins: np.ndarray) -> np.nd... method online_binpack (line 20) | def online_binpack(self,items: tuple, bins: np.ndarray, alg): method evaluateGreedy (line 43) | def evaluateGreedy(self,alg) -> float: method evaluate (line 105) | def evaluate(self, code_string): FILE: examples/user_bp_online/prompts.py class GetPrompts (line 1) | class GetPrompts(): method __init__ (line 2) | def __init__(self): method get_task (line 13) | def get_task(self): method get_func_name (line 16) | def get_func_name(self): method get_func_inputs (line 19) | def get_func_inputs(self): method get_func_outputs (line 22) | def get_func_outputs(self): method get_inout_inf (line 25) | def get_inout_inf(self): method get_other_inf (line 28) | def get_other_inf(self): FILE: examples/user_fssp_gls/jssp/bruteforce.py function permute (line 5) | def permute(x, index=0): function makespan (line 18) | def makespan(order, tasks, machines_val): function bruteforce (line 31) | def bruteforce(tasks, machines_val, tasks_val): function read_data (line 50) | def read_data(filename): FILE: examples/user_fssp_gls/jssp/get_ub.py function read_taillard_instances (line 3) | def read_taillard_instances(path): FILE: examples/user_fssp_gls/jssp/johnsons.py function johnson_algorithm (line 5) | def johnson_algorithm(machines_val, tasks): function johnson2m (line 15) | def johnson2m(tasks): function transform3to2 (line 42) | def transform3to2(tasks): function johnson3m (line 53) | def johnson3m(tasks): function read_data (line 59) | def read_data(filename): FILE: examples/user_fssp_gls/jssp/neh.py function makespan (line 6) | def makespan(order, tasks, machines_val): function sum_and_order (line 19) | def sum_and_order(tasks_val, machines_val, tasks): function insert (line 42) | def insert(sequence, position, value): function neh (line 48) | def neh(tasks, machines_val, tasks_val): function create_graph_LR (line 65) | def create_graph_LR(seq, tasks, machines_val): function create_graph_RL (line 107) | def create_graph_RL(seq, tasks, machines_val): function makespan_acc (line 136) | def makespan_acc(order, weight_LR, weight_RL, tasks, new_elem): function neh_acc (line 170) | def neh_acc(tasks, machines_val, tasks_val): function neh_wm (line 188) | def neh_wm(tasks, machines_val, tasks_val): function NEH_IR1 (line 211) | def NEH_IR1(sciezka, graf, i, kolejnosc): function read_data (line 229) | def read_data(filename): FILE: examples/user_fssp_gls/jssp/simulated_annealing.py function makespan (line 8) | def makespan(order, tasks, machines_val): function insert (line 21) | def insert(sequence, tasks_val): function swap (line 30) | def swap(list, tasks_val): function probability (line 40) | def probability(Cold, Cnew, Temp): function annealing1 (line 47) | def annealing1(T, u): function local_search (line 51) | def local_search(sequence, cmax_old,tasks,machines_val): function sim_ann1 (line 77) | def sim_ann1(tasks_val, tasks, machines_val, T_start, T_end): function annealing2 (line 101) | def annealing2(T, k, kmax): function sim_ann2 (line 104) | def sim_ann2(tasks_val, tasks, machines_val, T_start, T_end, iter_val): function ls (line 134) | def ls(tasks_val, tasks, machines_val): function gls (line 151) | def gls(tasks_val, tasks, machines_val): function sum_and_order (line 168) | def sum_and_order(tasks_val, machines_val, tasks): function insertNEH (line 192) | def insertNEH(sequence, position, value): function neh (line 198) | def neh(tasks, machines_val, tasks_val): function read_data (line 213) | def read_data(filename): function read_ael_instances (line 232) | def read_ael_instances(): FILE: examples/user_fssp_gls/prob.py function makespan (line 19) | def makespan(order, tasks, machines_val): function local_search (line 33) | def local_search(sequence, cmax_old,tasks,machines_val): function local_search_perturb (line 59) | def local_search_perturb(sequence, cmax_old,tasks,machines_val,job): class JSSPGLS (line 86) | class JSSPGLS(): method __init__ (line 87) | def __init__(self) -> None: method ls (line 96) | def ls(self,tasks_val, tasks, machines_val): method gls (line 113) | def gls(self,heuristic): method sum_and_order (line 173) | def sum_and_order(self,tasks_val, machines_val, tasks): method insertNEH (line 197) | def insertNEH(self,sequence, position, value): method neh (line 203) | def neh(self,tasks, machines_val, tasks_val): method read_instances (line 218) | def read_instances(self): method evaluate (line 258) | def evaluate(self, code_string): FILE: examples/user_fssp_gls/prompts.py class GetPrompts (line 2) | class GetPrompts(): method __init__ (line 3) | def __init__(self): method get_task (line 13) | def get_task(self): method get_func_name (line 16) | def get_func_name(self): method get_func_inputs (line 19) | def get_func_inputs(self): method get_func_outputs (line 22) | def get_func_outputs(self): method get_inout_inf (line 25) | def get_inout_inf(self): method get_other_inf (line 28) | def get_other_inf(self): FILE: examples/user_tsp_gls/gls/gls_evol.py function nearest_neighbor (line 9) | def nearest_neighbor(dis_matrix, depot): function nearest_neighbor_2End (line 24) | def nearest_neighbor_2End(dis_matrix, depot): function local_search (line 45) | def local_search(init_tour, init_cost, D, N, first_improvement=False): function route2tour (line 80) | def route2tour(route): function tour2route (line 89) | def tour2route(tour): function guided_local_search (line 104) | def guided_local_search(coords, edge_weight, nearest_indices, init_tour... FILE: examples/user_tsp_gls/gls/gls_operators.py function two_opt (line 7) | def two_opt(tour, i, j): function two_opt_cost (line 27) | def two_opt_cost(tour, D, i, j): function two_opt_a2a (line 41) | def two_opt_a2a(tour, D,N, first_improvement=False, set_delta=0): function two_opt_o2a (line 63) | def two_opt_o2a(tour, D, i, first_improvement=False): function two_opt_o2a_all (line 86) | def two_opt_o2a_all(tour, D,N, i): function relocate (line 105) | def relocate(tour, i, j): function relocate_cost (line 120) | def relocate_cost(tour, D, i, j): function relocate_o2a (line 140) | def relocate_o2a(tour, D, i, first_improvement=False): function relocate_o2a_all (line 163) | def relocate_o2a_all(tour, D,N, i): function relocate_a2a (line 180) | def relocate_a2a(tour, D,N, first_improvement=False, set_delta=0): FILE: examples/user_tsp_gls/gls/gls_run.py function solve_instance (line 9) | def solve_instance(n,opt_cost,dis_matrix,coord,time_limit, ite_max, pert... FILE: examples/user_tsp_gls/gls/gls_test.py function nearest_neighbor_2End (line 12) | def nearest_neighbor_2End(dis_matrix, depot): function local_search (line 32) | def local_search(init_tour, init_cost, D,N, first_improvement=False): function calculate_width (line 77) | def calculate_width(depot , center_of_gravity, node_i, node_j): function find_indices (line 91) | def find_indices(Route): function route2tour (line 105) | def route2tour(route): function tour2route (line 114) | def tour2route(tour): function guided_local_search (line 128) | def guided_local_search(coords, edge_weight, nearest_indices, init_tour... FILE: examples/user_tsp_gls/prob.py class TSPGLS (line 12) | class TSPGLS(): method __init__ (line 13) | def __init__(self) -> None: method tour_cost (line 28) | def tour_cost(self,instance, solution, problem_size): method generate_neighborhood_matrix (line 35) | def generate_neighborhood_matrix(self,instance): method evaluateGLS (line 47) | def evaluateGLS(self,heuristic): method evaluate (line 64) | def evaluate(self, code_string): FILE: examples/user_tsp_gls/prompts.py class GetPrompts (line 1) | class GetPrompts(): method __init__ (line 2) | def __init__(self): method get_task (line 11) | def get_task(self): method get_func_name (line 14) | def get_func_name(self): method get_func_inputs (line 17) | def get_func_inputs(self): method get_func_outputs (line 20) | def get_func_outputs(self): method get_inout_inf (line 23) | def get_inout_inf(self): method get_other_inf (line 26) | def get_other_inf(self): FILE: examples/user_tsp_gls/utils/readTSPLib.py function read_coordinates (line 8) | def read_coordinates(file_name): function create_distance_matrix (line 23) | def create_distance_matrix(coordinates): function transform_to_graph (line 40) | def transform_to_graph(distance_matrix): function read_instance (line 56) | def read_instance(filename): function read_instance_all (line 66) | def read_instance_all(instances_path): FILE: examples/user_tsp_gls/utils/readTSPRandom.py function read_instance_all (line 4) | def read_instance_all(instances_path): FILE: examples/user_tsp_gls/utils/utils.py function tour_to_edge_attribute (line 4) | def tour_to_edge_attribute(G, tour): function tour_cost (line 12) | def tour_cost(dis_m, tour): function tour_cost_2End (line 19) | def tour_cost_2End(dis_m, tour2End): function is_equivalent_tour (line 30) | def is_equivalent_tour(tour_a, tour_b):