model_policy
Define model policies.
create_model_policies_if_needed(artifact_store, policy_store)
Function that checks, for all models, if policies have not been created. This is for cases where the model may have been created without the API.
Source code in mlte/store/user/policy/model_policy.py
11 12 13 14 15 16 17 18 19 20 21 22 | |
create_model_policy(model_id, current_user, policy_store)
Create a basic policy for a model for the user, and returns the updated user.
Source code in mlte/store/user/policy/model_policy.py
25 26 27 28 29 30 31 32 33 34 35 36 37 | |
remove_model_polcy(model_id, policy_store)
Removes a basic policy for a model.
Source code in mlte/store/user/policy/model_policy.py
40 41 42 43 | |