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 public API for Recommendations #49

Open
KevinFasusi opened this issue Aug 11, 2017 · 0 comments
Open

Add public API for Recommendations #49

KevinFasusi opened this issue Aug 11, 2017 · 0 comments

Comments

@KevinFasusi
Copy link
Owner

Objective

Add a public API for the recommendations feature.

Guidance

Using the recommendations feature, add a public API to model_decisions.py. Allow the function to use run_sku_recommendation() and run_profile_recommendation().

For example:

def recommend( type: str, analysed_data: UncertainDemand, forecast: dict)
    if type == 'sku':
        run_sku_recommendation()
    else:
        run_profile_recommendation()
   return recommendation

However, do not use strings in the conditional statement. You probably don't even need to use a conditional statement.

Please remember to add a docstring and a test for this API.

@KevinFasusi KevinFasusi changed the title Add Api to access Recommendations Add public API to for Recommendations Aug 11, 2017
@KevinFasusi KevinFasusi changed the title Add public API to for Recommendations Add public API for Recommendations Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant