Fine-Tuning¶
Fine-tuning is an optional phase after surrogate-based optimization.
Purpose¶
Surrogate optimization is fast. Fine-tuning adds higher-fidelity EM verification and refinement.
Requirements¶
- Palace installed and callable.
- ORCA geometry object available in Python workflow.
Enabling Fine-Tuning¶
Fine-tuning behavior is configured via COBRA(...) constructor arguments and cobra.run(...) context.
Key options:
palace_fine_tuning_commandfine_tuning_iterationsfine_tuning_optimizer
Fine-Tuning Optimizer Modes¶
reuse: continue using the surrogate-phase optimizer.gradient_descent: switch to local gradient-descent refinement.
High-Level Loop¶
- Build geometry from current best parameters.
- Generate/mesh EM model.
- Run Palace.
- Feed verified response back to goal checker.
- Continue until goals are met or iteration budget is exhausted.
Warning
Fine-tuning requires a correctly configured external EM environment and may be significantly slower than surrogate-only optimization.