Team Ai
Modelpublic

shamEiNew/symbolic-math-classifier

sourceHugging Facemitupdated 11mo agoView on Hugging Face
0likes16downloads
Model Card

๐Ÿ”ข Symbolic Math Expression Classifier (Experimental)

This model is an early-stage classifier for SymPy-style symbolic expressions. It predicts the type of symbolic mathematical input so that the it can route the query to the appropriate symbolic solver (convexity, derivatives, integrals, equations, systems, etc.).

๐Ÿ‘‰ This model lives in the development branch `ml-classify` on github and is still under active experimentation.

โš ๏ธ This is NOT production-ready. Accuracy is still low on complex expressions and multi-variable cases. Bugs and misclassifications are expected.

Model Details

Model Description

This model takes pure SymPy syntax strings as input and classifies them into categories like:

  • โ€”expression
  • โ€”equation
  • โ€”system_of_equations
  • โ€”linear_equation
  • โ€”nonlinear_equation
  • โ€”derivative (e.g., diff(x**3, x))
  • โ€”integral (e.g., Integral(sin(x), x))
  • โ€”convexity_problem

It is trained on synthetic symbolic data generated using SymPy templates.

Metadata

  • โ€”Developed for: Math Verification of LLM response
  • โ€”Finetuned from: RoBERTa (depending on your notebook)
  • โ€”Language: English + SymPy tokens
  • โ€”Format: Plain text
  • โ€”License: MIT

Model Sources

  • โ€”Repository: https://github.com/math_neuro-ao
  • โ€”Training Notebook: symbolic_classifier.ipynb
  • โ€”Branch: ml-classify

Intended Uses

Direct Use

Load the classifier like any HuggingFace model:

python
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("<your-username>/symbolic-math-classifier")
model = AutoModelForSequenceClassification.from_pretrained("<your-username>/symbolic-math-classifier")