跳至内容

Can Redshift ML generated function return the probability value for binary classification?

0

We tried the tutorial at https://docs.aws.amazon.com/redshift/latest/dg/tutorial_customer_churn.html for Redshift ML, and were able to get the results in the tutorial. However, we'd like get the prediction with the probability, or just the probability of "TRUE". For instance, the sample SQL statement

SELECT phone, ml_fn_customer_churn_auto( state, account_length, area_code, total_charge/account_length,  cust_serv_calls/account_length ) AS active FROM customer_activity WHERE record_date > '2020-01-01';

returns

phoneactive
329-9001False
335-4719True
330-8173False
351-7269True

What we'd like to have is

phoneactiveprobability of True
329-9001False0.235
335-4719True0.621
330-8173False0.442
351-7269True0.893

or the above table without the "active" column.

Can this be done with "CREATE MODEL" statement? Any other suggestion to get it?

Thanks in advance.

已提问 5 年前494 查看次数

1 回答
1
已接受的回答

Thank you for posting the question and the detailed explanation on what you are expecting. This is currently not supported in Redshift ML with binary classification. I have raised a feature request with the service team on your behalf. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.

支持工程师

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。