
机器学习及深度学习
机器学习,深度学习,Python相关代码
坤坤不爱吃鱼
努力做不会写代码的程序猿
展开
-
tensorflow2.0加载model出现AttributeError: ‘str‘ object has no attribute ‘decode‘
tensorflow2.0加载model出现AttributeError: ‘str’ object has no attribute ‘decode’import tensorflow as tfmodel = tf.keras.models.load_model(’/root/Web/test.h5’)Traceback (most recent call last):File “”, line 1, in File “/usr/local/lib64/python3.6/site-pack原创 2021-03-06 14:04:48 · 3193 阅读 · 6 评论 -
TypeError: Calling `.seed()` on instances is deprecated. Use the class method `Faker.seed()` instead
TypeError: Calling .seed() on instances is deprecated. Use the class method Faker.seed() instead.吴恩达深度学习课后作业的错误降低faker版本pip install Faker==2.0.0原创 2020-06-11 17:55:19 · 1660 阅读 · 2 评论 -
import tensorflow 出现DLL load failed: 找不到指定模块\Failed to load the native TensorFlow runtime问题等的解决方法
import tensorflow 出现DLL load failed: 找不到指定模块\Failed to load the native TensorFlow runtime解决方法错误如下Traceback (most recent call last):File "C:\Users\toy\AppData\Local\Programs\Python\Python36\lib\site...原创 2020-04-22 19:08:28 · 1068 阅读 · 0 评论 -
吴恩达深度学习课后编程作业IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and i
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices出现这个错误是数据类型错误,错误如下图所示找到所在错误行所用的数据然后查看是哪个数据错误注释错误的哪一行,并将所有的单个数据输出运行,找出错...原创 2020-04-15 17:51:52 · 16016 阅读 · 3 评论 -
IndexError: index out of range
IndexError: index out of range在python中出现错误类似下图1.python读取.mat文件报错可以先进行这样操作import scipy.io as sciodata=scio.loadmat('datasets/data.mat')data.keys()如果还读取错误,错误如下图。则是.mat文件在生成时或下载错误。如果.mat文件没有...原创 2020-04-12 16:11:00 · 1964 阅读 · 0 评论