当前位置:网站首页>Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
2022-04-23 08:24:00 【Different quadratic element】
Error is as follows , Description of... Model is not supported Object type ( Non numeric type ) The data of , So I need to say Object The data of this type is coded by single heat , Or precoding yourself , The code is as follows :
import pandas as pd
data=pd.read_csv("test.csv")
for features in data.columns:
if data[features].dtype == 'object':
data[features] = pd.Categorical(data[features]).codes
版权声明
本文为[Different quadratic element]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230742105395.html
边栏推荐
- Overview of bus structure
- [explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
- Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
- Asan minimalism
- 让地球少些“碳”息 度能在路上
- C language learning record -- use and analysis of string function (2)
- 谈谈那些基础但不简单的股票数据
- 数据可视化:使用Excel制作雷达图
- 【深度好文】Flink SQL流批⼀体化技术详解(一)
- An example of network communication based on TCP / IP protocol -- file transmission
猜你喜欢
excle加水印
Search the complete navigation program source code
[appium] encountered the problem of switching the H5 page embedded in the mobile phone during the test
An article understands variable lifting
Rotation function of leetcode medium problem
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
Flink SQL实现流批一体
监控智能回放是什么,如何使用智能回放查询录像
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
RPC过程
随机推荐
A simple theme of Typecho with beautiful appearance_ Scarfskin source code download
input元素添加监听事件
作文以记之 ~ 二叉树的前序遍历
Transformer-XL: Attentive Language ModelsBeyond a Fixed-Length Context 论文总结
队列(c语言/链表)
An article understands variable lifting
单点登录 SSO
Discussion on ES6 tail tune optimization
The third divisor of leetcode simple question
青苹果影视系统源码 影视聚合 影视导航 影视点播网站源码
Kubernetes in browser and IDE | interactive learning platform killercoda
JS中复制数组
redis主从服务器问题
QFileDialog select multiple files or folders
数据的删除和修改操作(mysql)
刨析——浏览器如何工作
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
dried food! Point based: differentiable Poisson solver
WordPress love navigation theme 1.1.3 simple atmosphere website navigation source code website navigation source code
CGM优化血糖监测管理——移宇科技亮相四川省国际医学交流促进会