当前位置: 首页 > news >正文

网站建设的基础/西安网约车

网站建设的基础,西安网约车,javascript作品网站,网站建设流程及规范这里主要梳理一下作业的主要内容和思路,完整作业文件可参考: https://github.com/pandenghuang/Andrew-Ng-Deep-Learning-notes/tree/master/assignments/C4W2/Excercise/KerasTutorial 作业完整截图,参考本文结尾:作业完整截图。 Keras t…

这里主要梳理一下作业的主要内容和思路,完整作业文件可参考:

https://github.com/pandenghuang/Andrew-Ng-Deep-Learning-notes/tree/master/assignments/C4W2/Excercise/KerasTutorial

作业完整截图,参考本文结尾:作业完整截图。

Keras tutorial - the Happy House(Keras教程——“欢乐屋”)

Welcome to the first assignment of week 2. In this assignment, you will:

  1. Learn to use Keras, a high-level neural networks API (programming framework), written in Python and capable of running on top of several lower-level frameworks including TensorFlow and CNTK.
  2. See how you can in a couple of hours build a deep learning algorithm.

Why are we using Keras? Keras was developed to enable deep learning engineers to build and experiment with different models very quickly. Just as TensorFlow is a higher-level framework than Python, Keras is an even higher-level framework and provides additional abstractions. Being able to go from idea to result with the least possible delay is key to finding good models. However, Keras is more restrictive than the lower-level frameworks, so there are some very complex models that you can implement in TensorFlow but not (without more difficulty) in Keras. That being said, Keras will work fine for many common models.

In this exercise, you'll work on the "Happy House" problem, which we'll explain below. Let's load the required packages and solve the problem of the Happy House!

...

1 - The Happy House(“欢乐屋”)

For your next vacation, you decided to spend a week with five of your friends from school. It is a very convenient house with many things to do nearby. But the most important benefit is that everybody has commited to be happy when they are in the house. So anyone wanting to enter the house must prove their current state of happiness.

As a deep learning expert, to make sure the "Happy" rule is strictly applied, you are going to build an algorithm which that uses pictures from the front door camera to check if the person is happy or not. The door should open only if the person is happy.

You have gathered pictures of your friends and yourself, taken by the front-door camera. The dataset is labbeled.

...

2 - Building a model in Keras(使用Keras搭建模型)

Keras is very good for rapid prototyping. In just a short time you will be able to build a model that achieves outstanding results.

Here is an example of a model in Keras:

Note that Keras uses a different convention with variable names than we've previously used with numpy and TensorFlow. In particular, rather than creating and assigning a new variable on each step of forward propagation such as XZ1A1Z2A2, etc. for the computations for the different layers, in Keras code each line above just reassigns X to a new value using X = .... In other words, during each step of forward propagation, we are just writing the latest value in the commputation into the same variable X. The only exception was X_input, which we kept separate and did not overwrite, since we needed it at the end to create the Keras model instance (model = Model(inputs = X_input, ...) above).

...

3 - Conclusion(结论)

Congratulations, you have solved the Happy House challenge!

Now, you just need to link this model to the front-door camera of your house. We unfortunately won't go into the details of how to do that here.

What we would like you to remember from this assignment:
- Keras is a tool we recommend for rapid prototyping. It allows you to quickly try out different model architectures. Are there any applications of deep learning to your daily life that you'd like to implement using Keras?
- Remember how to code a model in Keras and the four steps leading to the evaluation of your model on the test set. Create->Compile->Fit/Train->Evaluate/Test.
...

4 - Test with your own image (Optional)(使用自己的照片进行测试)

Congratulations on finishing this assignment. You can now take a picture of your face and see if you could enter the Happy House. To do that:

1. Click on "File" in the upper bar of this notebook, then click "Open" to go on your Coursera Hub.
2. Add your image to this Jupyter Notebook's directory, in the "images" folder
3. Write your image's name in the following code
4. Run the code and check if the algorithm is right (0 is unhappy, 1 is happy)!

The training/test sets were quite similar; for example, all the pictures were taken against the same background (since a front door camera is always mounted in the same position). This makes the problem easier, but a model trained on this data may or may not work on your own data. But feel free to give it a try!

...

5 - Other useful functions in Keras (Optional)(其他有用的函数)

Two other basic features of Keras that you'll find useful are:

  • model.summary(): prints the details of your layers in a table with the sizes of its inputs/outputs
  • plot_model(): plots your graph in a nice layout. You can even save it as ".png" using SVG() if you'd like to share it on social media ;). It is saved in "File" then "Open..." in the upper bar of the notebook.

 

作业完整截图:

 

http://www.lbrq.cn/news/1052659.html

相关文章:

  • 如何申请个人网站/seo研究协会网app
  • 网站建设标题/百度网盘网页版登录入口官网
  • 怎么建设和聚享游一样的网站呢/网站seo站外优化
  • 河南省住建局官方网站/seo型网站
  • 电影聚合网站开发/优化网站找哪家
  • 网站建设wang.cd/北京seo优化哪家公司好
  • 机关门户网站建设意义/信息流广告是什么
  • 腾讯企业邮箱登录入口手机版/郑州seo代理外包公司
  • 网站建设手机端pc端分开/广州网络推广定制
  • 网站建设实训教程/互联网项目推广
  • 深圳做电商平台网站/网站黄页推广软件
  • 企业网站的设计/如何提高网站的搜索排名
  • 贵阳网站建设服务公司/谷歌自然排名优化
  • 泰兴网站建设价格/久久seo正规吗
  • 开发手机网站用什么语言/网页广告调词平台多少钱
  • 设置网站建设/开发app需要多少资金
  • 1个人做多网站负责人/百度小说风云榜排名完结
  • 网站增加外链方法/seo网络推广排名
  • 建立网站预算/培训心得模板
  • 网络页面设计公司/seo实战密码第三版pdf
  • 做产地证的网站/seo关键词排名查询
  • 取消网站备案流程/无锡百度推广开户
  • 成都网销网站/镇江网站建设
  • 网站的流程/网页制作代码html制作一个网页
  • 视频网站做视频容易火/电商网站卷烟订货流程
  • 宿州市做网站的公司/设计网络推广方案
  • 如何更好的建设和维护网站/信息流优化师
  • 外贸流程的基本流程/六盘水seo
  • 做网站都要掌握什么软件/企业网站设计毕业论文
  • seo工具优化/seo提供服务
  • 腾讯COS云存储入门
  • 基于 InfluxDB 的服务器性能监控系统实战(一)
  • SVM实战:从线性可分到高维映射再到实战演练
  • Java文件操作与IO流核心技术解析
  • 初识排序(下)-- 讲解超详细
  • Linux 学习 ------Linux 入门(上)