-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path6_validation.py
More file actions
47 lines (37 loc) · 1.47 KB
/
6_validation.py
File metadata and controls
47 lines (37 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
"""
Step 6: Validation Processing (Thin Orchestrator)
This step performs validation and quality assurance on GNN models,
including semantic validation, performance profiling, and consistency checking.
How to run:
python src/6_validation.py --target-dir input/gnn_files --output-dir output --verbose
python src/main.py # (runs as part of the pipeline)
Expected outputs:
- Validation results in the specified output directory
- Semantic validation reports and scores
- Performance profiling and resource estimates
- Consistency checking and quality metrics
- Actionable error messages if dependencies or paths are missing
- Clear logging of all resolved arguments and paths
"""
import sys
from pathlib import Path
# Add src to path for imports
sys.path.insert(0, str(Path(__file__).parent))
from utils.pipeline_template import create_standardized_pipeline_script
# Hard import: validation is a core module and must always be available.
from validation import process_validation
run_script = create_standardized_pipeline_script(
"6_validation.py",
process_validation,
"Validation processing for GNN models",
additional_arguments={
"strict": {"type": bool, "help": "Enable strict validation mode"},
"profile": {"type": bool, "help": "Enable performance profiling"}
}
)
def main() -> int:
"""Main entry point for the validation step."""
return run_script()
if __name__ == "__main__":
raise SystemExit(main())