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

Add an attribute to model classes that allows to retrieve the model class name #135

Open
3 of 5 tasks
LexABzH opened this issue Jan 27, 2023 · 0 comments
Open
3 of 5 tasks
Labels
3 - Quality of Life Not a priority enhancement New feature or request NLP Issue related to the NLP template NUM Issue related to the NUM template VISION Issue related to the VISION template

Comments

@LexABzH
Copy link
Collaborator

LexABzH commented Jan 27, 2023

Problem

Each model class has an attribute _default_model_name which is then used to create a model_name attribute.

However, the model_name can be changed by the user, which prevent us to reuse it later to reload a model "from standalone".
We should have class attributes that can't be changed by the user, and this attribute should be save in the configurations file to be reuse later if we need to reload a model from standalone files.

Concerned template

  • NLP template
  • NUM template
  • VISION template
  • API template
  • How templates are generated - Jinja

Solution

Add a new class attribute to each model class.
Save it in the configuration file.
Use this attribute to reload a model from standalone files.

Additional context

Tests must be updated.

@LexABzH LexABzH added enhancement New feature or request NLP Issue related to the NLP template NUM Issue related to the NUM template VISION Issue related to the VISION template 3 - Quality of Life Not a priority labels Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Quality of Life Not a priority enhancement New feature or request NLP Issue related to the NLP template NUM Issue related to the NUM template VISION Issue related to the VISION template
Projects
None yet
Development

No branches or pull requests

1 participant