MCPcopy Create free account

hub / github.com/CLAIRE-Labo/EvoTune / functions

Functions159 in github.com/CLAIRE-Labo/EvoTune

↓ 1 callersFunctionmain
(cfg: DictConfig)
src/experiments/main.py:69
↓ 1 callersFunctionparse_arguments
()
src/packing/train/train.py:114
↓ 1 callersFunctionperturb_place_block_in_middle
(instance, block_in_middle_size_l, block_in_middle_size_r)
src/packing/evaluate/flat_pack/generate_perturbed_instances.py:7
↓ 1 callersFunctionprepare_dpo_chats
(cfg, dpo_chats, running_dict)
src/packing/train/dpo/dpo.py:10
↓ 1 callersFunctionprograms_to_prompt
Given a list of programs and their scores, construct a prompt.
src/packing/model/prompt.py:31
↓ 1 callersFunctionprograms_to_prompt_creative
Given a list of programs and their scores, construct a prompt that encourages creative solutions.
src/packing/model/prompt.py:8
↓ 1 callersMethodregister_program
Registers `program` in the database.
src/packing/funsearch/programs_database.py:95
↓ 1 callersFunctionregister_programs
( cfg, running_dict, passed_classes, failed_classes, programdatabase,
src/packing/logging/logging.py:139
↓ 1 callersMethodrun
Starts the child process and sets up a timer for time limit and a MemoryWatcher for memory limit.
src/packing/parallel/stoppable_task.py:113
↓ 1 callersMethodsample_program
Samples a program, giving higher probability to shorther programs.
src/packing/funsearch/programs_database.py:281
↓ 1 callersFunctionsave_failed_func_class_to_file
(cfg, result_function_class: FunctionClass, filename="failed_programs.txt")
src/packing/logging/log_to_file.py:52
↓ 1 callersFunctionsave_in_logsdir
( logs_dir, running_dict, programdatabase, dpo_chats, round_num,
src/packing/logging/log_to_file.py:85
↓ 1 callersFunctionsave_pd_to_file
(cfg, programdatabase, round_num)
src/packing/logging/log_to_file.py:72
↓ 1 callersFunctionseparate_imports_from_func
(func_str)
src/packing/utils/functions.py:122
↓ 1 callersFunctionserialize
(function_class)
src/packing/logging/log_to_file.py:10
↓ 1 callersFunctionset_memory_limit
Set a hard memory limit for the process.
src/packing/parallel/stoppable_task.py:30
↓ 1 callersFunctionsolve
(inst: TSPInstance, heuristics)
src/packing/evaluate/tsp/task_tsp.py:270
↓ 1 callersMethodstop
(self)
src/packing/parallel/memory_watcher.py:43
↓ 1 callersFunctiontrain_model
( cfg, running_dict, model_name, full_model_name, model_adapter_dir,
src/packing/train/train.py:15
FunctionConsumer
Consumer process that evaluates functions from thefunction_classes_to_eval queue.
src/packing/parallel/continuous_execution.py:243
FunctionProducer
Producer process that generates functions and puts them in the function_classes_to_eval queue.
src/packing/parallel/continuous_execution.py:142
Method__call__
Generates an environment state from the preloaded dataset. Args: key: PRNGKey. Returns: A `S
src/packing/evaluate/flat_pack/custom_generators.py:45
Method__enter__
Allows usage like: with StoppableTask(...) as task: task.run() # ... so that cleanup is g
src/packing/parallel/stoppable_task.py:97
Method__exit__
Ensures we stop/terminate if this goes out of scope or an exception is raised.
src/packing/parallel/stoppable_task.py:107
Method__init__
( self, config, )
src/packing/funsearch/programs_database.py:50
Method__init__
( self, functions_per_prompt: int, temp_sampling_flag: bool, temp: float,
src/packing/funsearch/programs_database.py:157
Method__init__
(self, score, program)
src/packing/funsearch/programs_database.py:264
Method__init__
(self)
src/packing/evaluate/registry.py:5
Method__init__
Initialize the generator by loading instances from a file. Args: instance_file: Path to a JSON file containing pre-g
src/packing/evaluate/flat_pack/custom_generators.py:21
Method__init__
(self, positions: npt.NDArray[np.float_], adjacency: npt.NDArray[np.float_])
src/packing/evaluate/tsp/tsp_generate_dataset.py:48
Method__init__
(self, task_id, pid, mem_limit_bytes, callback_on_exceed, check_interval=1.0)
src/packing/parallel/memory_watcher.py:13
Method__init__
Initialize a stoppable task that will run evaluate_func in a subprocess. Args: cfg: Configuration object
src/packing/parallel/stoppable_task.py:62
Method__init__
(self)
src/packing/train/dpo/dpo_dataset.py:14
Method__len__
(self)
src/packing/train/dpo/dpo_dataset.py:193
Method__setattr__
(self, name, value)
src/packing/logging/function_class.py:16
Method__setattr__
(self, name, value)
src/packing/logging/function_class.py:62
Method_timeout_handler
Called by self.timer when time is up.
src/packing/parallel/stoppable_task.py:234
Functionall_equal
Computes heuristic Q-values all equal for all valid (block, rotation, row, col) placements. Args: current_grid: Grid representin
src/packing/evaluate/flat_pack/initial_functions.py:4
Functionassert_picklable
(obj, obj_name)
src/packing/parallel/stoppable_task.py:16
Functionevaluate_on_dataset
( cfg, running_dict, round_num, evaluate_func, programdatabase,
src/packing/parallel/continuous_execution.py:662
Functionexecute_program
The target function for the subprocess. We wrap the user function in a try/except to handle errors.
src/packing/parallel/stoppable_task.py:37
Functiongenerate_random_seed
Generate a random seed.
src/packing/utils/seeding.py:7
Methodget_best_score
(self)
src/packing/funsearch/programs_database.py:143
Functionget_initial_func
(cfg)
src/packing/evaluate/bin_packing/task_bin.py:10
Methodget_prompt
Returns a prompt containing implementations from one chosen island.
src/packing/funsearch/programs_database.py:70
Methodgroup_functions_by_prompt
(functions)
src/packing/train/dpo/dpo_dataset.py:133
Functionheuristic_flatpack
Computes heuristic Q-values for all valid (block, rotation, row, col) placements. Args: current_grid: Grid representing the curr
src/packing/evaluate/flat_pack/initial_functions.py:49
Functionkill_process
(pid)
src/packing/model/model.py:698
Functionmake_tgi_request
(cfg, chat, port)
src/packing/model/model.py:309
Functionmake_vllm_request
Send chat request to a vLLM server running on localhost:<port>. Args: cfg: A config object that contains, at minimum, `full_model_na
src/packing/model/model.py:322
Functionpriority
Computes values for all valid (block, rotation, row-2, col-2) placements. Larger values get prioritized. Arg
src/packing/evaluate/flat_pack/task_flat_pack.py:31
Functionpriority
Returns priority with which we want to add item to each bin. Args: item: Size of item to be added to the bin.
src/packing/evaluate/bin_packing/task_bin.py:13
Functionrandom_q_function
Generates completely random Q-values for all (block, rotation, row, col) placements. Args: current_grid: Grid representing the c
src/packing/evaluate/flat_pack/initial_functions.py:104
Methodregister_program
Adds `program` to the cluster.
src/packing/funsearch/programs_database.py:274
Methodscore
Reduced score of the signature that this cluster represents.
src/packing/funsearch/programs_database.py:270
Functionsingle_thread_generation
(chat, model, tokenizer, sampling_params, gpu_num, idx)
src/packing/model/model.py:247
Functionstring_to_function
Convert a string representation of a Python function into an actual Python function. Parameters: func_str (str): The string representati
src/packing/utils/functions.py:25
Methodtotal_num_programs
(self)
src/packing/funsearch/programs_database.py:150
Functionwandb_log_plot
(cfg, data, wandb_name, title, xlabel, ylabel, plot_type='hist', **kwargs)
src/packing/logging/logging.py:365
← previous101–159 of 159, ranked by callers