-
Notifications
You must be signed in to change notification settings - Fork 9
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
missing request for a function #15
Comments
@O-Hahn Please provide more details. I don't see a function call out option in the Watson Machine Learning API - http://watson-ml-api.mybluemix.net If you have a function that performs data transformation, then you could expose that as an API and invoke it using of the node-red http request node. |
Hi chughts, With the MNIST tutorial you can see the implementation: https://dataplatform.cloud.ibm.com/docs/content/analyze-data/ml-deployed-func-mnist-tutorial.html?context=analytics This is nice - because the computationen of the payload (data refinery) could be done within the service. You are right, i can do it with the HTTP nodes - but in my education on the university it would be fine if i can reduce it to the WML node... Thx for your support ! |
@O-Hahn I see that the key code in invoking the functions is obtaining a client, from which you get the function endpoint.
This is however a python implementation. Is there an equivalent Node.js or native REST version to obtain the function endpoint ? |
Yes you are right - if i use the python client to get the url - i also can do the request within Node-Red - but in the deployment API i could not see any request to get the functions URL like the python client does. |
This is the code from the support / dev Team of the service: One of our team member provided this starter code to get endpoint, this owuld require you to provide function id, deployment id to get endpoint:- var g_instance_id = ''; // <-- Get these values for your IBM Watson getAuthToken( g_username, g_password ).then( function( token ) } ).catch( function( error ) } ); } ).catch( function( token_error ) } ); function getAuthToken( username, password ) return new Promise( function( resolve, reject ) var request = require('request'); } ); } ); } function getScoringEndpoint( token, model_id, deployment_id ) return new Promise( function( resolve, reject ) var request = require('request'); } ); } ); I guess a function call of this provided GUID will also be the same.. Is it possible to enhance this functionality ?! This would be helpful because the data enrichment and data refinary cloud be done in this function (see also MIST char example - python function in notebook)... |
That gets you the scoring endpoint, which the node already does. What it doesn't do is get you a data transformation function endpoint. |
our watson service also support the creation of a function which is very usefull if you do the data transformation before calling the prediction. with the current implementation you can only call the model and not a function.
Is it possible to create a mode to call instead of a model for prediction the function as in the API implemented ? That would be greate because in node red you dont have the necessary numpy and statistical functions (e.g. interpolation)..
The text was updated successfully, but these errors were encountered: