jrieke / traingenerator

🧙 A web app to generate template code for machine learning
https://traingenerator.jrieke.com
MIT License
1.36k stars 181 forks source link

Text classification template with scikit-learn #14

Open themrcesi opened 3 years ago

themrcesi commented 3 years ago

Summary

This PR consists of a text classification template using scikit-learn as stated in #4.

Details

Checklist

themrcesi commented 3 years ago

I´m having some problems executing the tests.

After installing the needed dependencies (pip install -r requirements-dev.txt), I get a strange error and I´m not able to run the tests. File "B:\Anaconda3\lib\site-packages\hypothesis\internal\conjecture\shrinker.py", line 1447, in <module> @attr.s(slots=True, eq=False) TypeError: attrs() got an unexpected keyword argument 'eq'

@jrieke could you please run the test files for me? Meanwhile I´ll try to solve my problem.

jrieke commented 3 years ago

Oh sorry @themrcesi, didn't see this comment. That's strange since I don't use hypothesis actually. Just to be clear: Does this error come up when you do pip install -r requirements-dev.txt or when you run the tests? And could you send the complete output/error if there's anything else?

themrcesi commented 3 years ago

No problem @jrieke 😄

It was after installing the dev requirements, when I tried running the tests. Now this error is solved, it seemed to be something related to some package´s version. However, I´m not able to run the tests since I obtain an error. This error must be my fault, because I´ve tried running the tests just from the forked version and I also obtain the same errors. The error is about Windows permission to access some files, a bit strange.

Everything is working fine but I´m not able to run the tests (btw they should pass). So I will try to fix that to be able to run the tests. If you have time and you can run the tests for me I´d appreciate it.

Once we can confirm that tests pass, this PR is ready to be merged.