![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据挖掘
琦度
公众号:「琦度」
展开
-
.as_matrix()的作用
在我们读取一些excel/csv文件的数据后,在训练模型之前经常要对数据进行数组转化 解释含义如下: Convert the frame to its Numpy-array representation. 当然很多时候在提取完数据后其自身就是数组形式(<class ‘numpy.ndarray’>),这只是习惯性的谨慎。很多时候取得的数据是DataFrame的形式,这个时候要记得...原创 2019-03-24 22:02:51 · 36353 阅读 · 0 评论 -
如何消除python中的VisibleDeprecationWarning\ DeprecationWarning等类似警告:
我们在写相关代码时总会有一些警告,虽然并不影响结果,但是很影响美观。如果在不急于解决警告的情况下我们可以选择一些方法进行忽略。 eg: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; DeprecationWarning: This function is depr...原创 2019-03-24 22:15:04 · 11623 阅读 · 0 评论