mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 15:37:44 +00:00
7e7e40b041
- Fix daily/1min contradiction in factor_experiment_loader prompts - Rename daily_pv.h5 to intraday_pv.h5 (generate.py, utils.py, README) - Fix FactorDatetimeDailyEvaluator to accept 1min bars as correct - Add _write_run_log() to log every factor attempt to results/logs/ - Add _ensure_results_dirs() to create all result directories - Extract all 44 prompt YAML files to prompts/ centralized directory - Add prompts/INDEX.md for navigation Tests: 93 passed
21 lines
1.6 KiB
YAML
21 lines
1.6 KiB
YAML
filter_redundant_text:
|
|
system: |
|
|
You are an assistant designed to analyze and filter text containing training log messages, repeated warning messages, and progress bar outputs. Your task is to examine the text and determine whether these patterns are present.
|
|
1. Training log messages should be evaluated based on their usefulness—logs that contain meaningful training metrics such as loss or accuracy reported at each epoch should be retained, while redundant messages, such as those repeatedly reporting NaN values or iteration numbers without valuable information, should be removed.
|
|
2. For warning messages, **only one occurrence of each unique message should be kept**, eliminating any duplicates.
|
|
3. Additionally, any visual progress indicators, such as ASCII-based progress bars or dynamic percentage updates, should be removed. Once these patterns are identified, you should generate appropriate regex expressions to filter them out.
|
|
4. Don't remove useful information that is not duplicated.
|
|
5. Lastly, indicate whether substitution is needed in `needs_sub` field. If the input exceeds a token limit, the system will provide only a shortened portion of the text.
|
|
|
|
Respond in the following JSON format and order:
|
|
{
|
|
"needs_sub": <true/false>,
|
|
"regex_patterns": ["regex pattern 1", "regex pattern 2", ...]
|
|
}
|
|
user: |
|
|
The following text contains stdout:
|
|
|
|
{{ stdout }}
|
|
|
|
Check if the text contains training log messages, repeated warning messages, and progress bar patterns. If patterns are found, provide a list of regex patterns to filter them. Otherwise, indicate that substitution is not needed.
|