如何在 Customdatagenerator 中获取confusion_matrix y_true
作者:Syuuuu 提问时间:8/8/2023
我想构建confusion_matrix但我总是收到错误消息 ValueError Found input variables with inconsistent numbers of sample...
矩阵 问答列表
作者:Syuuuu 提问时间:8/8/2023
我想构建confusion_matrix但我总是收到错误消息 ValueError Found input variables with inconsistent numbers of sample...
作者:Syuuuu 提问时间:8/9/2023
我不知道如何从 customdatagenerator 获取y_true 我可以直接创建数组并输入标签数据吗? val_datagen = CustomDataGenerator(image_fo...
作者:Syuuuu 提问时间:8/8/2023
我正在建造confusion_matrix,但我总是返回错误的形状y_true 我认为我的y_label是正确的,我有 62 个值数据 我不知道y_true应该在何处申报y_true Value...
作者:ROOT31415 提问时间:8/10/2023
我拥有的代码如下: class Opt: def __init__(self): super(Opt, self).__init__() self.n_epochs = 10 self.b...
作者:Satoshi 提问时间:8/12/2023
我在 Julia 中尝试了一个简单的矩阵计算,但它非常大。它运行得很慢。有什么方法可以加快速度吗? a = ones(1000000,200) b = ones(1000000,1).*2 @ti...
作者:Alireza 提问时间:8/13/2023
我想为整个 Hugging Face BERT 模型计算带有 K 折叠的混淆矩阵。 问题是,每当我计算没有 K 折的混淆矩阵时,它都会给我更大的数字,如下所示: {'tn': 75, 'fp': 3...
作者:ojipadeson 提问时间:8/15/2023
我的矩阵很简单,比如: # python3 numpy >>> A array([[0., 0., 1., 1., 1.], [0., 0., 1., 1., 1.], [0., 0., 0.,...
作者:Alessandro 提问时间:8/16/2023
我想要一些非常有用的功能的 lapack 包,我不希望/能够很好地实现自己。问题是我无法将自定义 Matrix 类传递给 lapack 函数,我没有得到想要的行为。这是我的 Matrix 类 #if...
作者:galib 提问时间:8/11/2023
我正在尝试将我的MATLAB代码转换为Python。我必须将两个矩阵相乘并计算乘法结果的特征向量和特征值。下面是两个矩阵 P = [0.153833459882762 0.7335526315789...
作者:universitystudent218 提问时间:8/22/2023
理想输出的屏幕截图: 我目前正在制作向量和矩阵,并希望格式化它们,以便打印的矩阵在每个矩阵元素中的小数点前仅显示一位数字(例如 x.2、x.8 而不是 xyz.2 或 xyz.8)。下面的 Jupy...