上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 29 下一页
摘要: import tensorflow as tf ############################创建全0全1张量######################### a = tf.ones(shape = (3,5)) print('a:',a) b = tf.ones([6]) print( 阅读全文
posted @ 2020-07-27 14:15 山…隹 阅读(420) 评论(0) 推荐(0)
摘要: import tensorflow as tf import numpy as np # 张量为列表 print('*********************** 张量为列表 ***********************') a = [[1,3],[2,4],[5,6]] t_a = tf.con 阅读全文
posted @ 2020-07-23 22:18 山…隹 阅读(309) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-07-23 20:18 山…隹 阅读(981) 评论(0) 推荐(0)
摘要: import tensorflow as tf import matplotlib.pyplot as plt import numpy as np #加载手写数字数据 mnist = tf.keras.datasets.mnist (train_x,train_y),(train_x,train_ 阅读全文
posted @ 2020-07-23 17:15 山…隹 阅读(476) 评论(0) 推荐(0)
摘要: from PIL import Image import matplotlib.pyplot as plt import numpy as np plt.rcParams["font.family"] = 'SimHei' # 将字体改为中文 plt.rcParams['axes.unicode_m 阅读全文
posted @ 2020-07-21 22:03 山…隹 阅读(253) 评论(0) 推荐(0)
摘要: 示例数据为鸢尾花数据集: 阅读全文
posted @ 2020-07-21 16:43 山…隹 阅读(215) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt import tensorflow as tf import numpy as np # 调用数据 boston_house = tf.keras.datasets.boston_housing (train_x, train_y), 阅读全文
posted @ 2020-07-21 13:42 山…隹 阅读(1257) 评论(0) 推荐(0)
摘要: import tensorflow as tf boston_house = tf.keras.datasets.boston_housing (train_x,train_y),(test_x,test_y) = boston_house.load_data(test_split = 0) #te 阅读全文
posted @ 2020-07-20 21:43 山…隹 阅读(847) 评论(0) 推荐(0)
摘要: import matplotlib.pyplot as plt plt.rcParams["font.family"] = 'SimHei' # 将字体改为中文 plt.rcParams['axes.unicode_minus'] = False # 设置了中文字体默认后,坐标的"-"号无法显示,设 阅读全文
posted @ 2020-07-20 18:06 山…隹 阅读(201) 评论(0) 推荐(0)
摘要: import numpy as np import matplotlib.pyplot as plt plt.rcParams["font.family"] = 'SimHei' # 将字体改为中文 plt.rcParams['axes.unicode_minus'] = False # 设置了中文 阅读全文
posted @ 2020-07-20 17:57 山…隹 阅读(275) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 29 下一页