Skip to main content Skip to complementary content

Using Azure ML connections in visualization expressions

You can use the analytic connections in visualization expressions. The syntax when using the analytic connections in expressions must follow the server side extensions syntax.

Data should be processed in a visualization expression only when it will dynamically change based on the input from a user. If the text for text analysis is from the data model and will always be the same, the text analysis should instead be calculated in the load script and cached in the data model.

If the use case is based on user input, you can use an analytic connection and corresponding server side extension syntax in your chart expression to create interactive charts that visualize data received from the model endpoints.

Information noteWhen using Azure ML in a chart expression it is important to provide the datatypes of the fields as Azure needs to process these in the correct string/numeric format. A limitation of server side extensions in chart expressions is that the data types are not automatically worked out as they are in the load script.
  1. When editing a visualization, click Expression to enter the expression editor.

  2. In the expression editor, enter an expression in the expression field. The expression must be constructed using the server side extension syntax.

Information noteDepending on the data size and the called machine learning endpoints, the responsiveness of charts containing analytic connections could be impacted due to that data is sent to and returned from Azure services for calculations.

Working with the expression editor

Server side extensions syntax

Example

Here is an example of a call made to an external model that does banking customer churn prediction:

sum(aggr(endpoints.ScriptEvalEx('SNNNNNNNNNNSSNNSNNNNNSSSSSNSNNSS','{"RequestType":"endpoint", "endpoint":{"connectionname":"$(vConnectionName)"}}', id_loan, CurrentBalance, loan_age, delq_sts, Margin, countLatePayment, RefinanceRateRelativity, RealGDP, ChangeUnemploymentRate, CurrentLCV, fico, flag_fthb, cd_msa, mi_pct, cnt_units, occpy_sts, cltv, dti, orig_upb, ltv, int_rt + vInterestRateShift as int_rt, channel, ppmt_pnlty, prod_type, st, prop_type, zipcode, loan_purpose, orig_loan_term, cnt_borr, flag_sc, customerFeedback ),id_loan))

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!