代码:
#Predicting TenYearCHD on test data
pred_model <- predict(logistic_model,newdata = test_heart_data[,-16],type = "response")
summary(pred_model)
# Selecting threshold 0.5
pred_test_data <- ifelse(pred_model>0.5,1,0)
summary(pred_test_data)
#Creating confusion matrix
confusion_matrix <- table(pred_test_data,test_heart_data$TenYearCHD)
weather.pydosyası:
cogdeneme = {
"XIORXA BOT.örnekcog",
}
for x in cogdeneme:
try:
client.add_cog(x)
except:
print(x + " <<== Something went wrong.")
启动后,我会收到消息“发生了错误”,有人知道为什么吗?
答案 0 :(得分:0)
我还没有发表评论的权限,所以我要在这里输入。
您定义了机器人吗?例如,client = commands.Bot(command_prefix ='$',description ='-显示此消息',intents = intents)?