Skip to content

Commit 490ced2

Browse files
committed
add examples
1 parent c9279b7 commit 490ced2

File tree

26 files changed

+7585
-0
lines changed

26 files changed

+7585
-0
lines changed
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Configuration for affine_transform_2d task - Optimized Gemini Flash 2.5
2+
# Achieved 1.64x AlgoTune Score with these settings
3+
4+
# General settings
5+
max_iterations: 100
6+
checkpoint_interval: 10
7+
log_level: "INFO"
8+
random_seed: 42
9+
diff_based_evolution: true # Best for Gemini models
10+
max_code_length: 10000
11+
12+
# LLM Configuration
13+
llm:
14+
api_base: "https://openrouter.ai/api/v1"
15+
models:
16+
- name: "openai/o4-mini"
17+
weight: 1.0
18+
19+
temperature: 0.4 # Optimal (better than 0.2, 0.6, 0.8)
20+
max_tokens: 16000 # Optimal context
21+
timeout: 150
22+
retries: 3
23+
24+
# Prompt Configuration - Optimal settings
25+
prompt:
26+
system_message: |
27+
SETTING:
28+
You're an autonomous programmer tasked with solving a specific problem. You are to use the commands defined below to accomplish this task. Every message you send incurs a cost—you will be informed of your usage and remaining budget by the system.
29+
You will be evaluated based on the best-performing piece of code you produce, even if the final code doesn't work or compile (as long as it worked at some point and achieved a score, you will be eligible).
30+
Apart from the default Python packages, you have access to the following additional packages:
31+
- cryptography
32+
- cvxpy
33+
- cython
34+
- dace
35+
- dask
36+
- diffrax
37+
- ecos
38+
- faiss-cpu
39+
- hdbscan
40+
- highspy
41+
- jax
42+
- networkx
43+
- numba
44+
- numpy
45+
- ortools
46+
- pandas
47+
- pot
48+
- psutil
49+
- pulp
50+
- pyomo
51+
- python-sat
52+
- pythran
53+
- scikit-learn
54+
- scipy
55+
- sympy
56+
- torch
57+
Your primary objective is to optimize the `solve` function to run as as fast as possible, while returning the optimal solution.
58+
You will receive better scores the quicker your solution runs, and you will be penalized for exceeding the time limit or returning non-optimal solutions.
59+
60+
Below you find the description of the task you will have to solve. Read it carefully and understand what the problem is and what your solver should do.
61+
62+
You are an expert programmer specializing in signal_processing algorithms. Your task is to improve the affine_transform_2d algorithm implementation with baseline comparison.
63+
64+
The problem description is:
65+
2D Affine Transform
66+
67+
Apply a 2D affine transformation to an input image (2D array). The transformation is defined by a 2x3 matrix which combines rotation, scaling, shearing, and translation. This task uses cubic spline interpolation (order=3) and handles boundary conditions using the 'constant' mode (padding with 0).
68+
69+
Focus on improving the solve method to correctly handle the input format and produce valid solutions efficiently. Your solution will be compared against the reference AlgoTune baseline implementation to measure speedup and correctness.
70+
num_top_programs: 3 # Best balance
71+
num_diverse_programs: 2 # Best balance
72+
include_artifacts: true # +20.7% improvement
73+
74+
# Database Configuration
75+
database:
76+
population_size: 1000
77+
archive_size: 100
78+
num_islands: 4
79+
80+
# Selection parameters - Optimal ratios
81+
elite_selection_ratio: 0.1 # 10% elite
82+
exploration_ratio: 0.3 # 30% exploration
83+
exploitation_ratio: 0.6 # 60% exploitation
84+
85+
# NO feature_dimensions - let it use defaults based on evaluator metrics
86+
feature_bins: 10
87+
88+
# Migration parameters
89+
migration_interval: 20
90+
migration_rate: 0.1 # Better than 0.2
91+
92+
# Evaluator Configuration
93+
evaluator:
94+
timeout: 200
95+
max_retries: 3
96+
97+
# Cascade evaluation
98+
cascade_evaluation: true
99+
cascade_thresholds: [0.5, 0.8]
100+
101+
# Parallel evaluations
102+
parallel_evaluations: 1
103+
104+
# AlgoTune task-specific configuration
105+
algotune:
106+
num_trials: 5
107+
data_size: 100
108+
timeout: 300
109+
num_runs: 3
110+
warmup_runs: 1

0 commit comments

Comments
 (0)