PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""Python initialization path for PineForge HPO."""
2
3from importlib import metadata
4from pathlib import Path
5
6from .artifact import (
7 ArtifactBuildError,
8 ArtifactBuilder,
9 CANONICAL_COMPILE_FLAGS,
10 StrategyArtifact,
11 build_strategy_artifact,
12)
13from .study_spec import (
14 DatasetSpec,
15 ExecutionSpec,
16 ObjectiveSpec,
17 ParameterSpec,
18 SamplerSpec,
19 StrategySpec,
20 StudySpec,
21 StudySpecError,
22 TpeSamplerConfig,
23 ValidationIssue,
24 load_study_spec,
25)
26from .transpile import (
27 CodegenIdentity,
28 TranspileDiagnostic,
29 TranspileFailure,
30 TranspileResult,
31 codegen_identity,
32 transpile_source,
33)
34
35from .error import HpoError
36
37
38
39
40
41
42
43
44
45
46
47
48
49__version__ = _distribution_version()
50
51
53 study_path, engine_root=None, cache_dir=None, *, wrapper_launched=False, **options
54):
55 """Return native argv and artifact JSON; do not launch the native process.
56
57 Optional keyword arguments are native, compiler, and eigen_include, matching
58 the existing CLI build/executable overrides. Explicit wrapper_launched=True
59 requires the wrapper codegen policy and refuses prebuilt/cache bypasses.
60 """
61 from .cli import prepare_run as prepare
62
63 return prepare(
64 study_path, engine_root, cache_dir, wrapper_launched=wrapper_launched, **options
65 )
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
prepare_run(study_path, engine_root=None, cache_dir=None, *wrapper_launched=False, **options)
Definition __init__.py:54