✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Create a variable called predicted_fraud which equals "No" if the model’s predictions are less than or equal to 0.4, and "Yes" if the model’s predictions are greater than 0.4. How many cases of fraud were predicted?
HINT: First use the predict() function to calculate the predicted probability of fraud using your model in Part B. Then use the rep() function and conditional statement similarly to the previous question.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!