Systematically debug experiment code with structured error categorization and fix strategies.
| SyntaxError | Invalid syntax, indentation | Low | | ImportError | Missing module, wrong name | Low | | RuntimeError | Division by zero, shape mismatch | Medium | | TimeoutError | Infinite loop, too slow | Medium | | OutputError | Missing files, wrong format | Medium | | LogicError | Wrong results, 0% accuracy | High |
For syntax/import errors: Direct fix, single attempt For runtime errors: Fix and rerun, up to 4 retries For logic errors: Reflect on approach, consider alternative methods For timeout: Reduce dataset size, optimize bottleneck, add early stopping
تصحيح أخطاء كود التجربة من خلال تحليل الأخطاء المنظمة. قم بتصنيف الأخطاء، وتطبيق الإصلاحات المستهدفة باستخدام منطق إعادة المحاولة، واستخدام الانعكاس لمنع تكرار المشكلات. يُستخدم عندما يفشل كود التجربة أو ينتج عنه نتائج غير صحيحة. المصدر: lingzhi227/agent-research-skills.