腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
AttributeError
:“”
numpy.ndarray
“”
对象
没有
属性
“”
get
“”
python
、
numpy
、
matplotlib
、
data-visualization
、
seaborn
当我尝试这样做的时候 train_y.shapeax = sns.countplot(x="class", data=train_y) 但最终结果是这样的
AttributeError
establish_variables(self, x, y, hue, data, orient, order, hue_order, units) 14
浏览 151
提问于2020-07-09
得票数 0
1
回答
AttributeError
:'
numpy.ndarray
‘
对象
没有
属性
'
get
_shape'?
python
、
python-3.x
、
numpy
、
google-colaboratory
、
numpy-ndarray
当我在本地从beginner.ipynb运行时,执行会在有以下错误: --> 555 outputs.set_shape(self.compute_output_shape(inputs.
get
_shape())) 557
AttributeError
: '
浏览 4
提问于2020-04-20
得票数 4
回答已采纳
1
回答
与PCA有关的问题--我想绘制以下数据集
python
AttributeError
:'
numpy.ndarray
‘
对象
没有
属性
'index’
浏览 4
提问于2022-02-16
得票数 0
1
回答
opencv图像编码返回数组,而不是缓冲区。
python
、
numpy
、
opencv
= cv2.imread(imagePath)当我试图调用,buffer.toString()时,我会得到以下错误:关于堆栈溢出有许多问题与我所做的相同功能有关(用opencv编码)。无论如何,在我的例子中,返回值是一个包含2个元素的元组,其中第二个元素是ndarray,它
没有
浏览 0
提问于2018-11-23
得票数 0
回答已采纳
1
回答
如何将
numpy.ndarray
图像转换为discord.File图像?
python
、
discord.py
、
numpy-ndarray
我发现了类似的问题,但关于PIL:,使用它会导致
AttributeError
:'
numpy.ndarray
‘
对象
没有
属性
’
numpy.ndarray
‘,这肯定是因为我使用的是OpenCV而不是PIL。问题是如何将此
numpy.ndarray
转换为discord.File (使用二进制或其他方式)?
浏览 5
提问于2022-12-02
得票数 -2
1
回答
使用轴来划分
get
AttributeError
:'
numpy.ndarray
‘
对象
没有
属性
’
numpy.ndarray
‘
python
、
matplotlib
、
subplot
、
axes
set up l'organisation de la figure “”“我得到了一个错误:
AttributeError
:'
numpy.ndarray
‘
对象
浏览 1
提问于2020-11-06
得票数 0
回答已采纳
0
回答
初始化numpy.array并追加/合并,但不成功
arrays
、
numpy
我尝试初始化一个size []数组,并希望根据需要追加它...但如果
没有
成功,下面是我的代码:...y.append(x) 我得到"
AttributeError
:'
numpy.ndarray
‘
对象
没有
’
AttributeError
‘
属性
“
浏览 0
提问于2018-07-11
得票数 1
回答已采纳
1
回答
使用
get
_weights()应用梯度时出错
python
、
python-3.x
、
tensorflow
、
tensorflow2.0
get
_weights()返回一个np.arrays列表,查看tensorflow的文档和代码,apply_gradients需要它作为张量列表。update_from_gradients(self, actor_gradients): train_op = self.actor_opt.apply_gradients(grads_and_vars) # error here <e
浏览 2
提问于2019-10-23
得票数 1
回答已采纳
1
回答
将':‘替换为'nan’
python
、
numpy
、
csv
我正在尝试打开一个数据文件并将所有的':‘替换为'nan’,但是我得到了一个读取:'
numpy.ndarray
‘
对象
没有
’
AttributeError
‘
属性
。
Attr
浏览 6
提问于2021-05-18
得票数 0
1
回答
AttributeError
:“
numpy.ndarray
”
对象
没有
属性
“”plot“”
python
、
matplotlib
AttributeError
: '
numpy.ndarray
' object has no attribute 'plot'
浏览 0
提问于2016-06-30
得票数 1
回答已采纳
1
回答
AttributeError
:“
numpy.ndarray
”
对象
没有
属性
“”cos“”
python
、
numpy
我想弄清楚为什么上面的错误出现在我的代码中。g1 = L1 * np.cos(theta) + L2 * np.cos(alpha) - L3import numpy as np L2=1.5 * L1alpha = 30 * np.pi / 180n = 0 g1 = L1 * np.cos(theta) + L2 * np.cos(alpha
浏览 1
提问于2015-09-08
得票数 1
2
回答
AttributeError
:'
numpy.ndarray
‘
对象
没有
属性
’列‘
scikit-learn
、
pandas
、
numpy
) sel.fit(X_train, y_train) len(selected_feat) print(selected_feat)
浏览 0
提问于2019-06-21
得票数 2
3
回答
AttributeError
:“
numpy.ndarray
”
对象
没有
“”append“”
属性
“”
python
、
matplotlib
> File "coin.py", line 16, in simFlips
AttributeError
: '
numpy.ndarray
' object has no attribute 'append' 请告诉我,我做错了什么,导致了最后一个错误。
浏览 2
提问于2011-12-07
得票数 61
2
回答
AttributeError
:“”
numpy.ndarray
“”
对象
没有
“”save“”
属性
“”
python
、
pandas
、
opencv
INTER_CUBIC) new_crop.save(CROP_DIR + '/' + file.split('.')[0] + '.png', 'PNG', quality=90) 但是在行尾写着“保存:'
numpy.ndarray
‘
对象
没有
’
AttributeError
‘
属性
”
浏览 30
提问于2020-03-27
得票数 4
回答已采纳
1
回答
AttributeError
:“
numpy.ndarray
”
对象
没有
属性
“预测”
python
、
scikit-learn
(X_train) File "predict01.py", line 14, in <module>
AttributeError
: '
numpy.ndarray
' object has no attribute 'predict'
浏览 0
提问于2017-12-14
得票数 4
回答已采纳
2
回答
在运行时向Numpy数组添加
属性
python
、
numpy
、
numpy-ndarray
我试图使用setattr向Numpy ndarray添加一个
属性
,但是我得到了一个错误:setattr(x, 'new_attr', 1) 如何向Numpy ndarray添加新
属性
?
浏览 13
提问于2021-05-12
得票数 6
1
回答
AttributeError
:'
numpy.ndarray
‘
对象
没有
属性
'set’
python
、
numpy
、
opencv
vidTarget.set(cv2.CAP_PROP_POS_FRAMES,0) else: cv2.imshow('Augmented Reality Final O/P', ARfinal) fcount += 1
AttributeError
: '
numpy.ndarray
' object has
浏览 1
提问于2022-02-16
得票数 -2
回答已采纳
2
回答
历史:“”
numpy.ndarray
“”
对象
没有
属性
“”
AttributeError
“”
python
、
machine-learning
、
keras
plt.legend(['train', 'test'], loc='upper left')这个错误看起来 print(predictions.history.keys())历史:'
numpy.ndarray
‘
对象
没有
’
numpy.ndarray
‘
属性
浏览 0
提问于2019-07-26
得票数 0
1
回答
AttributeError
:“
numpy.ndarray
”
对象
没有
属性
“预测”
python
、
python-3.x
、
attributes
、
predict
使用后:它返回了以下错误:
AttributeError
: '
numpy.ndarray
' object has no attribute 'predict'model = pickle.load(open('model3.pkl
浏览 2
提问于2019-09-09
得票数 0
1
回答
“值:'
numpy.ndarray
‘
对象
没有
’
AttributeError
‘
属性
python
、
numpy
、
matrix
、
numpy-ndarray
、
medical-imaging
它说:“值:'
numpy.ndarray
‘
对象
没有
’
AttributeError
‘
属性
”。我应该怎么做才能纠正这个错误,有什么建议吗?
浏览 1
提问于2020-07-31
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
python渐进-类4
Python进阶——什么是描述符?
享学课堂-深入理解 Python 的属性查找
python入门系列:面向对象
Python基础教程 再谈隐藏
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券