Feynman
SRToolkit.dataset.feynman
Feynman symbolic regression benchmark.
Feynman
Feynman(dataset_directory: str = os.path.join(user_data_dir('SRToolkit'), 'feynman'), n_samples: int = 10000, seed: Optional[int] = 42, force_generate: bool = False)
Bases: SR_benchmark
The Feynman symbolic regression benchmark.
Contains 100 physics equations with up to 9 variables. Data is downloaded on first use from
the SymbolicRegressionToolkit repository (10,000 samples per dataset instead of the original
1,000,000 from the paper). If the download fails, data is generated from the stored per-variable
samplers using n_samples points and the given seed.
References
Examples:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset_directory
|
str
|
Directory where dataset files are stored or will be downloaded to.
Defaults to the platform-appropriate user data directory (e.g. |
join(user_data_dir('SRToolkit'), 'feynman')
|
n_samples
|
int
|
Number of samples to generate per dataset when falling back to sampler-based
data generation (i.e. when the download fails or |
10000
|
seed
|
Optional[int]
|
Random seed used for sampler-based data generation. Defaults to |
42
|
force_generate
|
bool
|
If |
False
|