Reputation: 162
I want to retrieve information from a deployed ML-engine model using Scala code.
For example, how would the code look in order to achieve the REST-request for the "getConfig" method stated in this link: https://cloud.google.com/ml-engine/reference/rest/.
Thank you!
Upvotes: 0
Views: 128
Reputation: 8389
You will need to call into the Java libraries from Scala. This page has a code example of how to make a prediction request in Java (source code direct link). It requires only a few modifications to use other methods. For instance, to call getConfig
, you would make the following change:
RestMethod method = api.getResources().get("projects").getMethods().get("getConfig");
Hopefully this translates easily to Scala.
Upvotes: 2