Skip to content
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

Admin container can't run training for the Machine Learning models #108

Open
brunoamaral opened this issue Apr 15, 2022 · 3 comments · May be fixed by #110
Open

Admin container can't run training for the Machine Learning models #108

brunoamaral opened this issue Apr 15, 2022 · 3 comments · May be fixed by #110
Labels
help wanted Extra attention is needed low priority

Comments

@brunoamaral
Copy link
Owner

No description provided.

@brunoamaral brunoamaral added the help wanted Extra attention is needed label Apr 15, 2022
@brunoamaral brunoamaral linked a pull request Apr 15, 2022 that will close this issue
@brunoamaral
Copy link
Owner Author

1_data_processor.py:

>>> dataset["summary"] = dataset["summary"].apply(html.unescape)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/pandas/core/series.py", line 4433, in apply
    return SeriesApply(self, func, convert_dtype, args, kwargs).apply()
  File "/usr/local/lib/python3.10/site-packages/pandas/core/apply.py", line 1082, in apply
    return self.apply_standard()
  File "/usr/local/lib/python3.10/site-packages/pandas/core/apply.py", line 1137, in apply_standard
    mapped = lib.map_infer(
  File "pandas/_libs/lib.pyx", line 2870, in pandas._libs.lib.map_infer
  File "/usr/local/lib/python3.10/html/__init__.py", line 130, in unescape
    if '&' not in s:
TypeError: argument of type 'NoneType' is not iterable

@brunoamaral
Copy link
Owner Author

Pushing this up in the roadmap, because it would be nice to have the ML Model update itself.

@brunoamaral
Copy link
Owner Author

This issue is over a year old but is still relevant.

Been looking into it now and then but never made any progress trying to increase the docker resources. Maybe it's a host limitation ?

Steps to train the ML models:

  1. docker exec -it admin ./manage.py 1_data_processor
  2. docker exec -it admin ./manage.py 2_train_models

After which the command returns killed. For reference, we are running on a Digital Ocean droplet with 2 vCPU, 4 GB Memory.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant