对大家有帮助的问答会被标记为“推荐”,看完课程过来浏览一下别人提的问题,会帮你学得更全面
老师 对特征进行标准化是对特征进行归一化处理吗?
老师,这个项目素材的util包在哪里啊
老师我点击加号创建新数据库后是这样 和视频不一样 然后我怎么弄才能继续创建新数据库
# 获取支付二维码 info = f'{ct.course.name}-{ct.name}-{ct.price}' content = get_qr(order_id,info,float(ct.price)) # 将content数据转换为字典 content = loads(content) qr_code = content.get('qr_code') File "E:\VSCode_workstation\Django在线教育平台\edu_project\order_app\views.py", line 44, in post content = loads(content) File "D:\Program Files\Python39\lib\json\__init__.py", line 339, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, ' TypeError: the JSON object must be str, bytes or bytearray, not bool
老师,订单模块_追加返回支付码逻辑,获取支付二维码,提示上述错误提示,怎么修改呢
使用jquery-3.7.1.js有效使用jquery-3.7.1.min.map时无效是为什么?
index_url ='https://www.kuaidaili.com/usercenter/overview' index_req = Request(index_url,headers =headers) index_resp = opener.open(index_req) print(index_resp.read().decode())
请问这里是什么意思,在登录账号后,还发送请求是为啥
class TextClassfier: def __init__(self): self.classfier=MultinomialNB(), self.cv=CountVectorizer(max_features=4000) def features(self,x): return self.cv.transform(x) def fit(self,x,y): self.cv.fit(x) self.classfier.fit(self.features(x),y) def score(self,x,y): return self.model.score(self.features(x),y) def predict(self,x,y): return self.model.predict(self.features([x]))
model=TextClassfier() model.fit(x_train,y_train) display(model.socre(x_test,y_test)) display(model.predict(['中旬 备战 冲刺']))
老师 分类器为什么会是tuple类型呢?