Conversation
|
Where do we add package dependencies? In this case, the error is caused by not recognizing torch |
|
package requirements are added to the dependency section in the pyproject.toml file |
|
Is there a strong reason to use PyTorch for this? If we're just doing matrix transformations, numpy should be fine, and is already part of the dependencies. Torch is great for complicated neural network things, but if it's possible to simplify this so it works with numpy alone, that would be better. (PyTorch is a big dependency which we've had trouble with in the past, so it's best to avoid it if possible.) |
TheLemonPig
left a comment
There was a problem hiding this comment.
Update to match Younes' PR changes
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
this looks good, including updates to match Younes' changes, but i don't know about @hollandjg's comment re: PyTorch... ?
This is a good point. This would mean changing work done by @musslick 's code, which feels outside of my domain without direction. |
Adding pytorch to dependencies
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
TheLemonPig
left a comment
There was a problem hiding this comment.
Attempting to replace torch with numpy, with help of chatGPT
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
how'd it go!? superficially looks good, but curious about any testing you performed (or have planned). |
|
I haven't done any testing yet. I was under the assumption the prebuilt tests checked the functionality of all models. I am actually quite surprised that all the test passed on the first attempt XD. The only additional thing I can think to test is whether the new model replicates the old results. Unfortunately, I have a poor understanding of how this and the previous model worked and what its results were. I am not sure how I would proceed with that |
younesStrittmatter
left a comment
There was a problem hiding this comment.
Please wait for #10 and then change accordingly
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
src/autora/experiment_runner/synthetic/psychology/stroop_model.py
Outdated
Show resolved
Hide resolved
@TheLemonPig i think we will also need to reflect this change in the synthetic models you already merged (yesterday). |
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
musslick
left a comment
There was a problem hiding this comment.
Looks great! Might just want to check if it still runs with Younes' suggested changes.
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
Co-authored-by: Younes Strittmatter <younes_strittmatter@brown.edu>
benwandrew
left a comment
There was a problem hiding this comment.
looks good, as long as it runs with recent changes!
Added stroop_model.py to synthetic models