Freedom | AI |practice | Tensorflow, AI...
2020년 유튜브는 나에게 최첨단 과학기술을 보라고 권유하였다. 그냥 어물쩡 끌려가듯이 숙제하듯이 듣는데, 내용에 집중하기 보다는 자꾸 다른 생각이 들었다. 뭐지? 왜지? 왜? 왜 열심히들 사용하라고 하지? 그러면서 내 생각은 세 가지로 정리되었다. 1. 결국 사람이네. 과학이 컴퓨터가 구글이 아무리 발전한다해도 그들 지향점 중심에는 사람이 있었다. 사람을
StyleGAN2 - Official TensorFlow Implementation
StyleGAN2 Official TensorFlow Implementation Screenshots Hunter's comment This is quite the improvement from v1 of this -- crazy how fluid this is, also kinda scary how computers are starting to analyse
Tensorflow2.0--可视化工具Tensorboard
image from unsplash.com by Tara Hegerty 之前的文章介绍过如何在 Keras 中快速调用 Tensorboard 这个可视化工具,这篇文章我们再深入探讨一下 Tensorboard 在T Tensorflow 2.0 下如何使用。 本文源代码请关注微信公众号(二维码见文末)获取 1. Tensorboard 工作原理 简单来说,tensorboard 就是通过监听定目录下的
Tensorflow2.0-数据加载和预处理
Image from unsplash.com by Adrian Cuj 前面的文章我们讨论了机器学习的各种问题,但是还没有认真讨论一下数据加载的问题。作为机器学习的第一步,如何正确和快速地加载数据以及预处理对于机器学习的项目成败是至关重要的。 我们已经很熟悉用 pandas.read_csv 来读取csv文件数据,然后用其内建函数或借助 numpy 和 scikit-learn
Tensorflow 2.0 —— 与 Keras 的深度融合
image from unsplash by Zhang Kenny 前面的几篇文章从线性回归,到手写数字识别再到预测牛奶产量,我们用 Tensorflow 2.0 与 Keras 结合完成了全链接神经网络,卷积神经网络以及循环神经网络的搭建和训练。那 Tensorflow 2.0 和 Keras 到底是什么关系,我们应该如何选择和搭配二者来完成自己的项目呢?这篇文章就来探讨一下这个问题。 1.
Tensorflow 2.0 快速入门 —— RNN 预测牛奶产量
前面两篇文章我们通过线性回归和 MINST 手写识别的项目,学习了如何使用 Tensorflow 2.0 解决预测和分类的问题。同时也回顾了神经网络以及 CNN 的套路。这篇文章我们同样通过 RNN 的实例再次巩固一下 Tensorflow 2.0 的使用方法。 1. Keras 方法回顾 如下图所示,数据记录了1962年到1975年一共14年每个月牛奶的产量。
Professional JavaScript & The JavaScript Workshop
Professional JavaScript Book - Contact me if you'd like a free copy In my last post I talked about how my first co-authored book, Professional JavaScript, was released this month. I'm happy to announce
Tensorflow 2.0 快速入门 —— 引入Keras 自定义模型
上篇文章我们用线性回归的项目快速入门了 Tensorflow 2.0 ,本文我们继续深入研究 ,使用 Keras 搭建模型配合 Tensorflow 2.0 解决线性回归和分类问题。 全部代码,请见我的github repo 1. 线性回归回顾 在 Tensorflow 2.0 中我们使用tf.GradientTape()记录前向传播计算(Forward Propagation),然后利用
Tensorflow 2.0 快速入门 —— 自动求导与线性回归
随着 Tensorflow 2.0 正式版发布的日期越来越近,我们应该做好准备忘记 1.0 版本中那些反人类的 静态 Graph 和 Session,拥抱新版本的各种易用简单的新特性。 我们之前的文章介绍了 Tensorflow 的 Eager 模式,Tensorflow 2.0 默认就是在 Eager 模式下运行的,所以 Eager 模式下可以直接打印出运算结果以及与 numpy
Tensorflow ImageDataGenerator 'DirectoryIterator' object has no attribute 'shape'
If you are using Tensorflow 1.14.0 and ImageDataGenerator, then when fitting the generator to the model, this error appears: AttributeError: 'DirectoryIterator' object has no attribute 'shape' FIX Enter
利用Tensorboard辅助模型调参
Image source from unsplash by Timothy L Brock 上一篇文章介绍了如何在 Keras 中调用 Tensorboard。这篇文章就来谈谈如何用 Tensorboard 帮助模型调参。 代码repo见这里
两步轻松实现在Keras中使用Tensorboard
Tensorboard 是 Tensorflow 中的可视化工具,使用 Tensorboard 不仅可以查看计算图谱(神经网络)结构,而且还能够将训练过程中参数变化,准确率以及损失函数的变化,直观地展示出来。是机器学习研究者非常有用的工具,这篇文章,我就来介绍一下如何在 Keras 中轻松调用Tensorboard。 同样的,为了方便与读者交流,所有的代码都放在了这里: 1. 导入TensorBoard
深入理解Numpy和Tensorflow中的Axis操作
image from unsplash by Joshua Sortino 机器学习中我们需要对多维度的数据进行处理,所以搞清楚数据的维度以及numpy 和 tensorflow 对于维度的定义就非常关键了。这里我们以 numpy 为例,因为 Tensorflow 的数据格式与 numpy 类似。 1. Axis的数量即为数据的维度