-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New tool: Magmas CLI. Takes eq list,op table as args, and returns JSON with 1/0 for each equation. #764
base: main
Are you sure you want to change the base?
Conversation
…N with 1/0 for each eq in the eq list.
Hi @riccitensor, thank you for your contribution. Could you please provide more context and details regarding the aim of this tool? It's preferable if contributors follow the workflow described in the CONTRIBUTING guide. I need to make sure to know what problem is supposed to solve and as a consequence where the script should be located. |
Yes, absolutely. I'm writing an RL agent and need the CLI logic behind the op table verification. Especially, for a given subset of equations. It's a Python script that takes the operation table and the equation list as arguments, and returns a JSON where for every equation 0 means "refutes", 1 means "satisfies". |
I also want to create an optable dataset, and I need this tool for that. The optable dataset would let us learn how to introduce perturbations into magmas. My feeling is that long-context perturbations could help us reach solutions that are currently impossible to reach. |
Example: riccitensor@timetravel magmastool % python3 magmas.py optable.txt 854_n_413.txt |
@riccitensor, please follow the steps in the contribution guide. We don't encourage direct PRs bypassing those steps. |
@Shreyas4991 I guess this is just a tool and I don't see any related tickets in the GitHub project dashboard that I can claim (regarding this tool). How should I proceed? |
Basically:
All this and more is detailed in CONTRIBUTING.md |
Run like this:
python3 magmas.py operation.txt equation_list.txt > solution.txt
Optable in this format:
Equation list in this format (already available):
Then you'll get the solutions as a JSON file: