问题描述
X,y = X_pool.iloc[query_index].reshape(1,-1),y_pool.iloc[query_index].reshape(1,)
learner.teach(X,y)
当我运行时,它返回此错误:“DataFrame”对象没有属性“reshape”。我试图将第一行修改为此 X,y = X_pool.iloc[query_index].values.reshape(1,y_pool.iloc[query_index].values.reshape(1,)
来解决这个问题,但我得到这个错误:“无法连接类型为 '
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)