Tensorflow & Keras
Tensorflow & Keras的使用
书生伯言
这个作者很懒,什么都没留下…
展开
-
Tensorflow-(4)使用Tensorflow加载csv,pandas dataframes,图像,文本文件
1、使用 tf.data 加载 pandas dataframesfrom __future__ import absolute_import, division, print_function, unicode_literalsimport pandas as pdimport tensorflow as tf使用 pandas 读取 csv 文件。csv_file = tf.ke...原创 2020-05-07 01:46:53 · 1029 阅读 · 0 评论 -
Tensorflow-(3)使用Keras进行创建模型、训练、验证、测试、保存模型
安装并导入Tensorflow和依赖项:import osimport tensorflow as tffrom tensorflow import kerasprint(tf.version.VERSION)获取示例数据集(train_images, train_labels), (test_images, test_labels) = tf.keras.dataset...原创 2020-05-06 19:05:12 · 4362 阅读 · 0 评论 -
Tensorflow-(2)使用tensorflow 2.0进行创建模型、训练、验证、测试、保存模型
安装并导入Tensorflow和依赖项:from __future__ import absolute_import, division, print_function, unicode_literalsimport osimport tensorflow as tffrom tensorflow import kerasprint(tf.version.VERSION)...原创 2020-05-06 02:51:36 · 1516 阅读 · 1 评论 -
Tensorflow-(1)什么是 Colaboratory?好用的学习工具
借助 Colaboratory(简称 Colab),您可在浏览器中编写和执行 Python 代码,并且:无需任何配置免费使用GPU 轻松共享其实是一个运行在云端虚拟机中的notebook。1、导入库和安装依赖项1)要导入默认情况下不在Colaboratory中的库,可以使用!pip安装或!apt-get安装。!pip install -q matplotlib-venn!ap...原创 2020-05-02 02:11:36 · 405 阅读 · 0 评论