摘要:
# author: Roy.Gimport shopping_datafrom keras.preprocessing import sequencefrom keras.models import Sequentialfrom keras.layers import Dense,Embedding 阅读全文
摘要:
# author: Roy.G# author: Roy.Gfrom keras.datasets import mnistimport matplotlib.pyplot as pltfrom keras.utils.np_utils import to_categorical #import t 阅读全文
摘要:
# author: Roy.G# author: Roy.G# author: Roy.Gfrom keras.datasets import mnistimport matplotlib.pyplot as pltfrom keras.utils.np_utils import to_catego 阅读全文
摘要:
如何使用GPU运行TensorFlow Jabes关注 2019.12.15 15:17:03字数 635阅读 5,778 如何使用GPU运行TensorFlow 这里主要考虑如何让tensorflow和keras运行在GPU上: 1. 检查显卡类型和计算能力** 查看笔记本显卡型号,以及计算能力下 阅读全文
摘要:
# author: Roy.Gimport numpy as npimport datasetimport plot_utils as pudef sigmoid(x): return 1/(1+np.exp(-x))X,Y = dataset.get_beans(100)print(X[1,:]) 阅读全文
摘要:
# author: Roy.Gimport numpy as npimport datasetimport plot_utils as pudef sigmoid(x): return 1/(1+np.exp(-x))xs,ys = dataset.get_beans(100)w1 = 0.1w2 阅读全文
摘要:
# author: Roy.G# 神经网络的隐藏层# 通过大量数据训练,使模型泛化import datasetimport numpy as npimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3D as a3d 阅读全文
摘要:
# author: Roy.Gimport datasetimport numpy as npimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3D as a3dxs,ys=dataset.get_beans(10 阅读全文
摘要:
w,b 梯度下降算法 # author: Roy.Gimport datasetimport numpy as npimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3D as a3dxs,ys=dataset.g 阅读全文
摘要:
读取文件 # author: Roy.Gimport numpy as npimport matplotlib.pyplot as mpdata1,data2,data3,data4=np.loadtxt( 'aa.csv', encoding='utf-8-sig', #当使用utf-8时,会出现 阅读全文