Back to home page

EIC code displayed by LXR

 
 

    


Warning, /AID2E-framework/examples/basic/full_example_joblib.yml is written in an unsupported language. File is not indexed.

0001 # AID2E Full Example Configuration with JobLib Local Scheduler
0002 # This example demonstrates using the JobLib runner for local parallel execution
0003 
0004 problem:
0005   name: "DTLZ2 Multi-Objective Optimization"
0006   problem_type: "toy"
0007   output_location: "/tmp"
0008   work_location: "/tmp"
0009 
0010   objectives:
0011     - name: "f1"
0012       direction: "minimize"
0013       computation:
0014         steps:
0015           stages:
0016             - name: "evaluate_f1"
0017               script:
0018                 path: "scripts/dtlz2_problem.py"
0019                 output_file: "objectives_{job_id}.json"
0020                 timeout_sec: 600
0021               produces_objective: true
0022       metrics_keys: ["f1"]
0023     - name: "f2"
0024       direction: "minimize"
0025       computation:
0026         steps:
0027           stages:
0028             - name: "evaluate_f2"
0029               script:
0030                 path: "scripts/dtlz2_problem.py"
0031                 output_file: "objectives_{job_id}.json"
0032                 timeout_sec: 600
0033               produces_objective: true
0034       metrics_keys: ["f2"]
0035 
0036   design_parameters_file: "design.params"
0037 
0038 optimizer:
0039   name: "ax"
0040   type: "bayesian"
0041   parameters:
0042     initialization_strategy: "sobol"
0043     generator: "BOTORCH_MODULAR"
0044     n_initial_samples: 24
0045     n_iterations: 100
0046     batch_size: 4
0047     seed: 42
0048 
0049 # Scheduler configuration for local execution using JobLib
0050 scheduler:
0051   runner_type: "JobLibRunner"
0052   parameters:
0053     n_jobs: -1  # Use all available processors
0054     backend: "loky"  # Use loky backend for robust multiprocessing
0055     timeout: 3600  # 1 hour timeout per job
0056     verbose: 1
0057   max_retries: 3
0058   output_location: "./joblib_output"
0059   monitor_interval: 30
0060 
0061 metadata:
0062   project: "AID2E"
0063   description: "AI assisted Detector Design for EIC"
0064   version: "0.0.1"