While working on Kaggle churn prediction using Google's Big query, I am encountering following issue. Please help
ERROR SEEN AFTER RUNNING THE BIGQUERY :
"Logistic regression requires at least 2 unique labels and the label column had only 1 unique label".
Bigquery commands being used :
CREATE or REPLACE MODEL 'churndataset.mymodel`
OPTIONS(model_type = 'logistic_reg'
, labels= ['Churn'])
AS
SELECT
* EXCEPT(customerID)
FROM 'churndataset.Churn_table` LIMIT 1000
`
Churn column (feature) in the dataset has values "Yes" or "No" only.
Please let me know if I have to change the values to "0" or "1" instead of "Yes" or "No"
How to make Bigquery to understand Churn has 2 unique labels not one ?
From Bigquery table I could see that Churn is detected as a Boolean variable.
Please help.