core.hypothesis¶
hypothesis ¶
Custom hypothesis testing framework for spinor correction research.
Allows users to define arbitrary configurations for testing variations of the Choptyuk formula with custom parameters, group structures, and correction formulas.
HypothesisTester ¶
Framework for testing custom hypotheses about spinor corrections.
Supports: - Parameter sweeps (vary one parameter over a range) - Custom correction formulas - Group structure variations - Multi-hypothesis comparison
Source code in src/core/hypothesis.py
test_hypothesis ¶
Test a single hypothesis configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
HypothesisConfig
|
HypothesisConfig with custom parameters. |
required |
Returns:
| Type | Description |
|---|---|
HypothesisResult
|
HypothesisResult with computed values and pass/fail. |
Source code in src/core/hypothesis.py
parameter_sweep ¶
parameter_sweep(param_name: str, values: list[float], base_config: HypothesisConfig | None = None) -> list[HypothesisResult]
Sweep a single parameter over a range of values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
param_name
|
str
|
Parameter to vary ('delta_C', 'lambda_D2', 'k_struct', etc.) |
required |
values
|
list[float]
|
List of values to test. |
required |
base_config
|
HypothesisConfig | None
|
Base configuration (default parameters used if None). |
None
|
Returns:
| Type | Description |
|---|---|
list[HypothesisResult]
|
List of HypothesisResult for each value. |
Source code in src/core/hypothesis.py
compare_hypotheses ¶
Compare multiple hypotheses side by side.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
configs
|
list[HypothesisConfig]
|
List of HypothesisConfig to test. |
required |
Returns:
| Type | Description |
|---|---|
list[HypothesisResult]
|
List of HypothesisResult sorted by deviation. |