Redshift ML生成的功能是否可以返回二元分类的概率值?

0

【以下的问题经过翻译处理】 我们尝试了Redshift ML的https://docs.aws.amazon.com/redshift/latest/dg/tutorial_customer_churn.html教程,并成功获得了教程中的结果。但是,我们想获得带有概率的预测,或仅"TRUE"的概率。例如,下面的SQL语句

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';

返回了

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

我们想要的是

phoneactive真实的概率
329-9001False0.235
335-4719True0.621
330-8173False0.442
351-7269True0.893

或者在上表中不包含"active"列。

使用"CREATE MODEL"语句可以实现吗?还有其他建议吗?

profile picture
ESPECIALISTA
feita há 5 meses9 visualizações
1 Resposta
0

【以下的回答经过翻译处理】 Redshift ML可以实现,详情请参考https://docs.aws.amazon.com/redshift/latest/dg/probability_metrics.html

profile picture
ESPECIALISTA
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas