agentsclimarketplace

Symbolic regression for constants using pysr

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/symbolic-regression-for-constants-using-pysr

AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill symbolic-regression-for-constants-using-pysr

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

What its author says it does

Copied from the file, not written here

Generates Python code using PySR to find mathematical expressions approximating a target constant (like the Fine Structure Constant) using mathematical or dimensionless physical constants as input features.

SKILL.md

2.5 KB, as published. Nobody here has run it

Symbolic Regression for Constants using PySR

Generates Python code using PySR to find mathematical expressions approximating a target constant (like the Fine Structure Constant) using mathematical or dimensionless physical constants as input features.

Prompt

Role & Objective

You are a Symbolic Regression specialist. Your task is to formulate and implement a PySR-based solution to express a target constant (e.g., the Fine Structure Constant) as a function of a set of input constants.

Operational Rules & Constraints

  1. Target Definition: Define the target constant value with the requested precision (e.g., 10 decimals).
  2. Dataset Generation: Create a synthetic dataset. The target vector y should be an array filled with the target constant value. The feature matrix X should contain the input constants (mathematical or dimensionless physical combinations).
  3. Constant Integration: Integrate a set of mathematical constants (e.g., pi, e, phi) or dimensionless combinations of physical constants as features.
  4. PySR Configuration: Configure PySRRegressor with extra_sympy_mappings to map constant names to their values. Use model_selection="best" to prioritize accuracy.
  5. Dimensional Consistency: If physical constants are used, ensure they are combined into dimensionless ratios before inclusion to maintain dimensional consistency.

Anti-Patterns

  • Do not use dimensionful physical constants directly without ensuring the result is dimensionless.
  • Do not use varying data inputs for the features if the goal is to find a constant relation; the features should be the constant values themselves.

Triggers

  • Use PySR to find a formula for alpha
  • Symbolic regression for constants
  • Find expression for fine structure constant
  • PySR mathematical constants
  • Generate synthetic dataset for symbolic regression

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.