Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Tensorflow:logits 和标签必须具有相同的第一维
我是张量流新手 我想改编 MNIST 教程https www tensorflow org tutorials layers https www tensorflow org tutorials layers用我自己的数据 40x40 的图
python
tensorflow
Keras
tensorflowdatasets
tensorflowestimator
Keras-批次内每个样本的损失
如何在训练时获得样本损失而不是总损失 损失历史记录可提供总批次损失 但不提供单个样品的损失 如果可能的话我想要这样的东西 on batch end batch logs sample losses 是否有类似的东西可用 如果没有 您能否提供
Keras
为什么 get_tensor_by_name 无法正确获取 tf.keras.layers 定义的层的权重
我尝试获取由以下定义的层的权重tf keras layers通过使用get tensor by name in tensorflow 代码如下 encoding utf 8 import tensorflow as tf x tf plac
tensorflow
Keras
使用 theano 进行多处理
我正在尝试将 theano 与 cpu 多处理和神经网络库 Keras 结合使用 I use device gpu标记并加载 keras 模型 然后 为了提取超过一百万张图像的特征 我使用多处理池 该函数看起来像这样 from keras
python
Multithreading
multiprocessing
Theano
Keras
当我想在电脑中加载该模型时,我可以在 colab bu 中加载我的深度模型,但我不能
我在colab中通过keras 2 3 1和tensorflow 2 1 0训练了一个深度模型 我用JSON和Keras保存了我的模型 saveWeightPath content drive My Drive model info mod
tensorflow
Keras
deeplearning
Keras 获取中间层的输出
what my model looks like defining the model archictecture model Sequential 1st conv layer model add Conv2D 32 5 5 activa
tensorflow
neuralnetwork
Keras
convneuralnetwork
如何防止 Keras 在训练期间计算指标
我正在使用 Tensorflow Keras 2 4 1 并且有一个 无监督的 自定义指标 它将我的几个模型输入作为参数 例如 model build model returns a tf keras Model object my met
python
tensorflow
machinelearning
Keras
deeplearning
sklearn pipeline + keras顺序模型-如何获取历史记录?
Keras https keras io模型 当 fit被调用时 返回一个历史对象 如果我将此模型用作 sklearn 管道的一步 是否可以检索它 顺便说一句 我正在使用 python 3 6 提前致谢 History 回调记录每个时期的训
python3x
Keras
scikitlearn
pipeline
具有多个输入的 Keras TimeDistributed 层
我正在尝试使以下代码行正常工作 low encoder out TimeDistributed AutoregressiveDecoder X tf embeddings Where AutoregressiveDecoder是一个需要两个
python
machinelearning
Keras
deeplearning
keraslayer
使用 Keras 的 ImageDataGenerator 预测单个图像
我对深度学习很陌生 所以请原谅我这个可能很简单的问题 我训练了一个网络来分类positive and negative 为了简化图像生成和拟合过程 我使用了ImageDataGenerator和fit generator函数 如下图 imp
python
tensorflow
Keras
deeplearning
应定义密集层输入的最后一个维度。没有找到。收到完整的输入形状:<未知>
我在将模型从一些本地虚拟数据切换到使用 TF 数据集时遇到问题 抱歉模型代码太长 我已尝试尽可能缩短它 以下工作正常 import tensorflow as tf import tensorflow recommenders as tfr
python
tensorflow
Keras
huggingfacetransformers
sentencetransformers
无效参数:indices[0,0] = -4 不在 [0, 40405) 中
我有一个模型可以处理一些数据 我在数据集中添加了一些标记化的单词数据 为简洁起见有些被截断 vocab size len tokenizer word index 1 comment texts df comment text values
Keras
wordembedding
Implementation
验证准确性非常好,但预测很差
我正在构建一个 keras 模型来对猫和狗进行分类 我使用具有瓶颈特征的迁移学习和 vgg 模型的微调 现在我得到了非常好的验证准确率 例如 97 但是当我进行预测时 我得到了关于分类报告和混淆矩阵的非常糟糕的结果 可能是什么问题呢 这是微
Keras
convneuralnetwork
Keras 中的 Tensorflow 自定义损失函数 - 张量循环
我正在尝试在 Keras 中编写自定义损失函数 如下所示 Keras 中的自定义损失函数 https stackoverflow com questions 43818584 custom loss function in keras 我的
python
tensorflow
Keras
Keras AttributeError:“顺序”对象没有属性“predict_classes”
我试图按照本指南找到模型性能指标 F1 分数 准确性 召回率 https machinelearningmastery com how to calculate precision recall f1 and more for deep l
python
Keras
使用基于 ConvLSTM2D 的 Keras 模型从较低分辨率图像估计高分辨率图像
我正在尝试使用以下内容ConvLSTM2D从低分辨率图像序列估计高分辨率图像序列的架构 import numpy as np scipy ndimage matplotlib pyplot as plt from keras models
tensorflow
scikitlearn
Keras
Keras Maxpooling2d 层给出 ValueError
我正在尝试在 keras 中复制 VGG16 模型 以下是我的代码 model Sequential model add ZeroPadding2D 1 1 input shape 3 224 224 model add Convoluti
python
neuralnetwork
tensorflow
deeplearning
Keras
tf.keras.utils.image_dataset_from_directory,但标签来自 csv?
请告诉我哪里出错了 我正在研究 Kaggle 狗品种分类挑战 我想尝试 one hot 编码与标签编码 图像未在图像目录中拆分 因此我无法将 推断 与 tf keras utils image dataset from directory
python
tensorflow
machinelearning
Keras
ComputerVision
Keras 导入错误 Nadam
我在尝试导入 Keras 模块 Nadam 时遇到导入错误 gt gt gt from keras optimizers import Nadam Traceback most recent call last File
python
path
Theano
Keras
为什么 Keras 的 train_on_batch 在第二个 epoch 产生零损失和准确率?
我正在使用一个大数据集 所以我尝试使用 train on batch 或适合 epoch 1 model Sequential model add LSTM size input shape input shape return seque
python
batchprocessing
trainingdata
Keras
LSTM
«
1
2
3
4
5
6
...64
»