Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/algorithmicsuperintelligence/openevolve
/ functions
Functions
1,478 in github.com/algorithmicsuperintelligence/openevolve
⨍
Functions
1,478
◇
Types & classes
176
↳
Endpoints
11
↓ 2 callers
Function
extract_failure_artifacts
Extract failure artifacts from diagnostics for a given example. Args: diagnostics: Diagnostics dictionary from pass_at_2_accuracy_si
examples/arc_benchmark/evaluator.py:93
↓ 2 callers
Function
extract_full_lineage_traces
Extract complete evolution traces with full lineage chains and prompts/actions This function builds the complete evolution history for each
openevolve/evolution_trace.py:439
↓ 2 callers
Function
fetchJSON
(url)
scripts/static/js/manual.js:40
↓ 2 callers
Function
find_latest_checkpoint
(base_folder)
scripts/visualizer.py:20
↓ 2 callers
Function
format_feature_coordinates
Format feature coordinates for display in prompts Args: metrics: All metrics from evaluation feature_dimensions: List of MAP
openevolve/utils/metrics_utils.py:117
↓ 2 callers
Method
generate
Generate text using a randomly selected model based on weights
openevolve/llm/ensemble.py:58
↓ 2 callers
Function
getBaseId
(id)
scripts/static/js/sidebar.js:304
↓ 2 callers
Function
getCurrentEdges
()
scripts/static/js/graph.js:8
↓ 2 callers
Function
get_cpu_cores_number
()
examples/tsp_tour_minimization/utils/utils.py:15
↓ 2 callers
Function
get_normals
Gets the outward normals of a polygon's edges.
examples/alphaevolve_math_problems/hexagon_packing/12/evaluator.py:58
↓ 2 callers
Function
get_normals
Gets the outward normals of a polygon's edges.
examples/alphaevolve_math_problems/hexagon_packing/11/evaluator.py:58
↓ 2 callers
Function
guess_mainfile
(language, files)
examples/online_judge_programming/submit.py:221
↓ 2 callers
Function
hideRecenterButton
()
scripts/static/js/graph.js:153
↓ 2 callers
Function
hideRecenterButton
()
scripts/static/js/performance.js:206
↓ 2 callers
Method
list_available_tasks
List all available AlgoTune tasks.
examples/algotune/task_adapter.py:1424
↓ 2 callers
Function
loadAndRenderData
(data)
scripts/static/js/main.js:79
↓ 2 callers
Method
load_base_mlir
Load the baseline MLIR implementation
examples/attention_optimization/legacy/prev_sim__works_evaluator.py:277
↓ 2 callers
Function
load_config
Load configuration from YAML file.
examples/k_module_problem/iterative_agent.py:31
↓ 2 callers
Function
load_hf_dataset
Load HuggingFace dataset based on configuration.
examples/llm_prompt_optimization/evaluator.py:152
↓ 2 callers
Function
load_prompt_config
Load the prompt from text file and dataset config from matching _dataset.yaml file.
examples/llm_prompt_optimization/evaluator.py:136
↓ 2 callers
Method
log_prompt
Log a prompt for a program. Only logs if self.config.log_prompts is True. Args: program_id: ID of the program to log
openevolve/database.py:2533
↓ 2 callers
Function
login_from_config
Log in to Kattis using the access information in a kattisrc file Returns a requests.Response with cookies needed to be able to submit
examples/online_judge_programming/submit.py:270
↓ 2 callers
Function
main
Main entry point Returns: Exit code
openevolve/cli.py:174
↓ 2 callers
Method
next_island
Move to the next island in round-robin fashion
openevolve/database.py:1763
↓ 2 callers
Function
optimize_attention
Define attention optimization parameters for evolution. The goal is to achieve 32% speedup (1.32x) like AlphaEvolve paper by optimiz
examples/attention_optimization/initial_program.py:12
↓ 2 callers
Function
parse_full_rewrite
Extract a full rewrite from an LLM response Args: llm_response: Response from the LLM language: Programming language Re
openevolve/utils/code_utils.py:95
↓ 2 callers
Function
pass_at_2_accuracy_multi_test
Compute pass@2 accuracy across multiple ARC test cases. Args: all_attempts: List of lists of 2 numpy arrays for each test case.
examples/arc_benchmark/evaluator.py:70
↓ 2 callers
Method
print_summary_table
Print a summary table of all results
examples/mlx_metal_kernel_opt/qwen3_benchmark_suite.py:967
↓ 2 callers
Function
project_polygon
Projects a polygon onto an axis and returns the min/max values.
examples/alphaevolve_math_problems/hexagon_packing/12/evaluator.py:70
↓ 2 callers
Function
project_polygon
Projects a polygon onto an axis and returns the min/max values.
examples/alphaevolve_math_problems/hexagon_packing/11/evaluator.py:70
↓ 2 callers
Function
qwen3_custom_gqa_attention
Custom Metal kernel implementation for Qwen3 GQA attention. Args: queries: [B, num_heads=16, L, head_dim=128] keys: [B, num_
examples/mlx_metal_kernel_opt/initial_program.py:24
↓ 2 callers
Function
qwen3_custom_gqa_attention
Custom Metal kernel implementation for Qwen3 GQA attention. Args: queries: [B, num_heads=16, L, head_dim=128] keys: [B, num_
examples/mlx_metal_kernel_opt/best_program.py:24
↓ 2 callers
Function
read_program
Read program from file.
examples/k_module_problem/iterative_agent.py:55
↓ 2 callers
Function
remove_dir
(dir_path: str)
examples/tsp_tour_minimization/utils/utils.py:28
↓ 2 callers
Method
request_shutdown
Request graceful shutdown
openevolve/process_parallel.py:437
↓ 2 callers
Function
run_iterative_refinement
Run iterative refinement loop. Returns: dict with results including iterations, scores, solution_found_at
examples/k_module_problem/iterative_agent.py:161
↓ 2 callers
Function
run_mlx_lm_generation
Run mlx-lm generation and parse the output
examples/mlx_metal_kernel_opt/test_optimized_attention.py:138
↓ 2 callers
Function
run_quick_test
Run a quick test with just a few key benchmarks with proper warmup
examples/mlx_metal_kernel_opt/quick_benchmark_test.py:14
↓ 2 callers
Function
run_with_timeout
Run a function with a timeout using concurrent.futures
examples/signal_processing/evaluator.py:24
↓ 2 callers
Function
run_with_timeout
Run the program in a separate process with timeout using a simple subprocess approach Args: program_path: Path to the program fi
examples/circle_packing_with_artifacts/evaluator.py:82
↓ 2 callers
Function
run_with_timeout
Run the program in a separate process with timeout using a simple subprocess approach Args: program_path: Path to the program fi
examples/circle_packing/evaluator.py:76
↓ 2 callers
Function
run_with_timeout
Run a function with a timeout using concurrent.futures Args: func: Function to run args: Arguments to pass to the function
examples/function_minimization/evaluator.py:14
↓ 2 callers
Function
run_with_timeout
Runs a function with a specified timeout, raising an exception on timeout.
examples/sldbench/evaluator.py:44
↓ 2 callers
Method
set_current_island
Set which island is currently being evolved
openevolve/database.py:1758
↓ 2 callers
Method
set_templates
Set custom templates to use for this sampler Args: system_template: Template name for system message user_te
openevolve/prompt/sampler.py:37
↓ 2 callers
Function
showSidebarListView
()
scripts/static/js/list.js:216
↓ 2 callers
Method
solve
Solve the fft_cmplx_scipy_fftpack problem. Args: problem: Dictionary containing problem data specific to fft_cmp
examples/algotune/fft_cmplx_scipy_fftpack/best_program.py:60
↓ 2 callers
Method
solve
Solve the eigenvectors_complex problem. Args: problem: Dictionary containing problem data specific to eigenvecto
examples/algotune/eigenvectors_complex/best_program.py:72
↓ 2 callers
Method
solve
Compute the 2D convolution of arrays a and b using "full" mode and "fill" boundary. Uses scipy.signal.fftconvolve for efficiency, whi
examples/algotune/convolve2d_full_fill/best_program.py:72
↓ 2 callers
Method
solve
Solve the affine_transform_2d problem. Args: problem: Dictionary containing problem data specific to affine_tran
examples/algotune/affine_transform_2d/best_program.py:72
↓ 2 callers
Method
solve
Solve the polynomial_real problem using a JIT-compiled JAX function. Args: problem: A list of polynomial coeffic
examples/algotune/polynomial_real/best_program.py:74
↓ 2 callers
Method
solve
Solve the psd_cone_projection problem. Args: problem: Dictionary containing problem data specific to psd_cone_pr
examples/algotune/psd_cone_projection/initial_program.py:82
↓ 2 callers
Method
solve
Solve the fft_convolution problem. Args: problem: Dictionary containing problem data specific to fft_convolution
examples/algotune/fft_convolution/best_program.py:84
↓ 2 callers
Method
solve
Computes the LU factorization of a matrix using an optimized scipy call.
examples/algotune/lu_factorization/best_program.py:73
↓ 2 callers
Function
split_diffs_by_target
Route diff blocks to either code or changes_description based on exact line-wise match of SEARCH text. Returns (code_blocks, changes_desc_blo
openevolve/utils/code_utils.py:263
↓ 2 callers
Function
stopContinuousUpdate
()
scripts/static/js/sidebar.js:114
↓ 2 callers
Function
theoretical_pass_at_k
Calculate theoretical pass@k for uniform random search.
examples/k_module_problem/run_random_baseline.py:118
↓ 2 callers
Method
to_dict
Convert to dictionary representation
openevolve/database.py:79
↓ 2 callers
Function
triangle_area
(a: np.array, b: np.array, c: np.array)
examples/alphaevolve_math_problems/heilbronn_triangle/evaluator.py:45
↓ 2 callers
Function
validate_packing
Validate that circles don't overlap and are inside the unit square Args: centers: np.array of shape (n, 2) with (x, y) coordinates
examples/circle_packing_with_artifacts/evaluator.py:30
↓ 2 callers
Function
validate_packing
Validate that circles don't overlap and are inside the unit square Args: centers: np.array of shape (n, 2) with (x, y) coordinates
examples/circle_packing/evaluator.py:26
↓ 2 callers
Function
write_program
Write program to file.
examples/k_module_problem/iterative_agent.py:61
↓ 2 callers
Function
zoomPerformanceGraphToFit
()
scripts/static/js/performance.js:717
↓ 1 callers
Method
_analyze_performance_with_safety_metrics
Analyze performance with enhanced safety metrics
examples/mlx_metal_kernel_opt/evaluator.py:1073
↓ 1 callers
Method
_apply_attention_hook_safely
Safely apply attention hook
examples/mlx_metal_kernel_opt/evaluator.py:939
↓ 1 callers
Function
_apply_hook_from_program
Load an evolved hook program and apply its attention optimization. The hook program must expose a `create_metal_qwen3_optimization_hook()` f
examples/mlx_metal_kernel_opt/mlx_lm_generate_with_hook.py:43
↓ 1 callers
Method
_apply_template_variations
Apply stochastic variations to the template
openevolve/prompt/sampler.py:595
↓ 1 callers
Function
_atomic_write_json
(path: Path, payload: Dict[str, Any])
openevolve/llm/openai.py:40
↓ 1 callers
Function
_available_ram_gb
()
examples/tsp_tour_minimization/utils/tsp_runner.py:129
↓ 1 callers
Function
_build_P_from_hermite_coeffs
Build monomial-basis polynomial P from Hermite-basis coefficients.
examples/alphaevolve_math_problems/uncertainty_ineq/initial_program.py:112
↓ 1 callers
Function
_build_display_prompt
Render messages into a single plain-text prompt for the manual UI.
openevolve/llm/openai.py:28
↓ 1 callers
Method
_bulletproof_extract_custom_attention
Bulletproof extraction with comprehensive Metal kernel validation
examples/mlx_metal_kernel_opt/evaluator.py:231
↓ 1 callers
Function
_c4_from_hermite_coeffs
Compute r_max and C4 from full Hermite coefficient vector (Google-style).
examples/alphaevolve_math_problems/uncertainty_ineq/initial_program.py:129
↓ 1 callers
Method
_cache_diversity_value
Cache a diversity value with LRU eviction
openevolve/database.py:2152
↓ 1 callers
Method
_calculate_island_diversity
Calculate diversity within an island (deterministic version)
openevolve/database.py:2007
↓ 1 callers
Method
_calculate_safety_adjusted_score
Calculate final score adjusted for safety
examples/mlx_metal_kernel_opt/evaluator.py:1234
↓ 1 callers
Method
_clean_init_method
Clean up extracted __init__ method body by removing docstrings and super() calls. Keep only the actual initialization statements.
examples/algotune/task_adapter.py:331
↓ 1 callers
Method
_cleanup_old_artifacts
Remove artifact directories older than the configured retention period. Args: checkpoint_path: The path of the current c
openevolve/database.py:2445
↓ 1 callers
Method
_command_buffer_protected_benchmark
Command-buffer-protected benchmarking with maximum safety
examples/mlx_metal_kernel_opt/evaluator.py:780
↓ 1 callers
Function
_construct_P_with_forced_zero
Given m input coeffs (c0..c_{m-1}), build the Hermite combo c0*H0 + ... + c_{m-1}*H_{4(m-1)} + c_last*H_{4m} where c_last is chosen so th
examples/alphaevolve_math_problems/uncertainty_ineq/evaluator.py:28
↓ 1 callers
Method
_cosine_similarity
Adapted from SakanaAI/ShinkaEvolve (Apache-2.0 License) Original source: https://github.com/SakanaAI/ShinkaEvolve/blob/main/shinka/da
openevolve/database.py:968
↓ 1 callers
Method
_create_artifact_dir
Create artifact directory for a program
openevolve/database.py:2431
↓ 1 callers
Method
_create_bulletproof_execution_environment
Create bulletproof execution environment with enhanced imports
examples/mlx_metal_kernel_opt/evaluator.py:978
↓ 1 callers
Method
_create_maximum_context_prompt
Create maximum length context prompt for stress testing
examples/mlx_metal_kernel_opt/qwen3_benchmark_suite.py:409
↓ 1 callers
Method
_create_medium_context_prompt
Create medium-length context prompt
examples/mlx_metal_kernel_opt/qwen3_benchmark_suite.py:254
↓ 1 callers
Method
_create_progressive_context_prompt
Create prompt that builds context progressively
examples/mlx_metal_kernel_opt/qwen3_benchmark_suite.py:370
↓ 1 callers
Function
_decide_workers
( config_paths: list[str], max_workers: int | None = None, mem_per_proc_gb: float | None = None,
examples/tsp_tour_minimization/utils/tsp_runner.py:145
↓ 1 callers
Function
_default_workers
(n: tp.Optional[int])
examples/tsp_tour_minimization/utils/heat_map_runner.py:101
↓ 1 callers
Method
_distribute_programs_to_islands
Distribute loaded programs across islands when no island metadata exists
openevolve/database.py:789
↓ 1 callers
Function
_driver
()
examples/tsp_tour_minimization/utils/tsp_runner.py:307
↓ 1 callers
Method
_enforce_population_limit
Enforce the population size limit by removing worst programs if needed Args: exclude_program_id: Program ID to never rem
openevolve/database.py:1678
↓ 1 callers
Method
_ensure_standard_attention
Ensure standard attention is active
examples/mlx_metal_kernel_opt/evaluator.py:1036
↓ 1 callers
Function
_error_result
Return an error result.
examples/k_module_problem/evaluator.py:209
↓ 1 callers
Function
_estimate_mem_gb_for_config
( config_file_path: str, default_dtype_bytes: int = 4, alpha: float = 2.0, beta_gb: float = 0.
examples/tsp_tour_minimization/utils/tsp_runner.py:133
↓ 1 callers
Function
_evaluate
Evaluate a Rust sorting algorithm implementation. Tests the algorithm on various data patterns to measure: - Correctness - Performan
examples/rust_adaptive_sort/evaluator.py:31
↓ 1 callers
Function
_exception_result
Return an exception result.
examples/k_module_problem/evaluator.py:242
↓ 1 callers
Method
_extract_problem_keys
Extract the expected problem keys from the solve method.
examples/algotune/task_adapter.py:1321
↓ 1 callers
Method
_format_evolution_history
Format the evolution history for the prompt
openevolve/prompt/sampler.py:248
↓ 1 callers
Method
_format_metrics
Format metrics for the prompt using safe formatting
openevolve/prompt/sampler.py:174
↓ 1 callers
Method
_generate_comprehensive_summary
Generate comprehensive evaluation summary with safety info
examples/mlx_metal_kernel_opt/evaluator.py:1279
← previous
next →
201–300 of 1,478, ranked by callers