France-Travail / gabarit

Gabarit : kickstart your data science project from scratch
GNU Affero General Public License v3.0
58 stars 11 forks source link

gabarit (fix): fixed serve function being created multiple times #159

Closed LexABzH closed 1 year ago

LexABzH commented 1 year ago

✒️ Context

Experimental predict proba : serve function was created each time the experimental_predict_proba was called, which is very slow.

🧱 Description of Changes

Moved the serve function creation outside of the main function. This is now a model's method.

🩺 Testing

Tested performance : it works.

🔗 References


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the GNU AFFERO GENERAL PUBLIC LICENSE.