mlflow-watsonml
mlflow-watsonml copied to clipboard
Move client connect to individual methods
The current method of authentication requires setting the credentials in a .env
and using the environment variables while initializing the class. However, in use cases where we are using this plugin in a server, environment variables conflict may occur in different requests. In addition to that, the current approach doesn't let us change deployment spaces.
I propose an approach where the credentials and deployment space names are passed as inputs to individual methods like create, update, delete etc. This enables us to change deployment space and we don't have to worry about environment variable names conflict.