日常用语--恋爱结婚--笔记

Vivado FPGA 工程模板:参数化消抖、PWM 与 XDC 约束 这份工程模板解决 FPGA 起步阶段的工程骨架与踩坑问题。含可综合的参数化按键消抖(两级同步消亚稳态)、参数化 PWM(0/满占空比边界修复)、顶层呼吸灯示例、XDC 时钟与 IO 约束模板、Tcl 一键建工程脚本。面向 STM32 开发者向 FPGA 扩展,换 Artix-7/Kintex/Zynq 只需改器件与引脚。 立即下载
  Timeslot(时隙)-通信术语,

  opt:
    1.Select as an alternative over another
      She opted for the job on the East Coast.  
      want to opt in/out

  infatuation:愚蠢,糊涂,醉心
  infatuated:
    1.Marked by foolish or unreasoning fondness
      He was infatuated with her     
      be infatucated with = be adicted to:沉醉于
      The sea lets me be infatuated with.

  hunch:圆形之隆起物,肉峰
    1.An impression that something might be the case
      I have a hunch (that) Jane likes me.
    2.The act of bending yourself into a humped position

 He kept me company. 他陪伴我。
 I enjoyed his company. 我喜欢他和我结伴
    
 stalk
   1.Walk stiffly
   2.Follow stealthily or recur constantly and spontaneously to
     her ex-boyfriend stalked her
   3.Go through (an area) in search of prey
     stalk the woods for deer
=========================================================================

Tom is a lady-killer.

Tom dates around a lot.

Tom is a real playboy.

Tom really turns me on. *turn...on“有性方面的吸引力”、“使人着迷”。

I didn't know you felt that way. (我一点儿都不知道你的感觉。)

I have strong feelings for Tom.

Chris is really a heartbreaker. *用heartbreaker表示“长得很帅,对异性有吸引力的

“Heartbreak Hotel”,指的就是“(因恋爱而)绝望的人住的饭店”。

Chris breaks a lot of hearts. (克里斯使很多女人尝到了失恋的痛苦。)

Chris dates a lot of women. (克里斯和许多女人有来往。)

珍妮特真迷人。

Janet is a knockout. *如同拳击中的“knock out”一样,表示极具魅力

I think he has a crush on you. *have a crush on...“看上……”。

Give me a break. (别随便瞎说。)

I think he is infatuated with you. * be infatuated with...“被……迷住,为……神魂颠倒”。

Jane seems to like me. *seem“好像,看上去像……”。

I have a hunch (that) Jane likes me.?

I can't handle a girl like her. * handle 表示“对待,对待(人)”。

I'm dying to see her. *dying to“忍耐不住地想做某事”。?

I'm trying to make a pass at her. *make a pass at...“(特别是对女性)挑逗,求爱”。

I don't blame you. ([她对你来说很有魅力,]我理解你的心情。)

I'm trying to pick her up. (我打算把她弄到手。) *pick up 是口语“把异性弄到手”、

I'm trying to get a date with her. (我打算和她约会。)

Do you want to go out with me tonight? *go out并不一定就是“约会”,但是如果go out的后面直接跟with me的话,就一定是“约会”了。

Let's have tea or something.?

Let's have something to drink. (我们喝点什么吧。)

Please keep me company for a while. *keep me company“和我在一起”、“交往”、

May I ask you out? *ask out“约会”。

Would you mind if I took you out?

Would you go on a date with me??

Are you trying to pick me up? *pick up“勾引(男人/女人),欺骗”。

Are you asking me out on a date??

I want to talk to you.

Are you seeing anyone now? *see 除了表示“看见”之外,还可表示“与……交往”。

Yeah, kind of. (嗯,怎么说呢……)

I'm infatuated with you. (你使我神魂颠倒。) *感觉比“I'm crazy about you.” 更强

Don't play hard to get. *play hard to get一般多用在男女之间。特别是指女性为了吸引男性而使对方着急、故弄玄虚的行为。

I'm not ready for a commitment.

I don't want to be tied down.

I just want to have fun. (我现在只是想玩玩。)?

It was love at first sight. *at first sight“第一眼”、“见到的第一面”。

I fell in love with you the first time I saw you.

I loved you the first time I laid eyes on you.?

What's on your mind? 你想什么呢??

I think of you night and day.*night and day“无论是睡着还是醒着,不分昼夜”,

There will never be another you. 你是这个世界上独一无二的人。

Nothing is too good for you. 为你我在所不惜You deserve the best.?

Are you seducing me? *seduce 特指引诱年轻的女性。

Are you coming on to me??

You're the one for me.? 你是我的惟一。

I always speak my mind.

I always say what's on my mind.

I'm deeply in love with Rose.

I haven't thought about marriage yet. *当对方问到When are you going to get married?

He's a newlywed. *newlywed“新婚的人”。

We're two of a kind. *two of a kind“性格相似的人”。

Guess what? I'm pregnant. (你猜怎么着,我怀孕了。)

We can work it out.? 问题总会解决的。

We (as a husband and a wife) don't have any fights.? 我们夫妻从不吵架。

My wife's cheating on me. *cheat on...“在男女关系上表现的不忠”。

We had a falling-out. *falling-out“感情不和”、“失和”。

We don't get along anymore. (我们再也不能在一起了。)

I've changed my mind. 我已经改变心意了。?

I've reconsidered. (我想重新考虑。)

You're not the same as before. (你和以前不一样了。)?

I don't see eye to eye with my wife. *see eye to eye with...“和……意见一致”。

We just don't get along.? 我们俩合不来了。

I thought I knew you.? 我想我很了解你。

I had an affair with my secretary.? 我和我的秘书有了婚外情。

I don't enjoy being with you. 和你在一起没意思。

I'm separated from my wife. *separate“夫妻分居”。

I can't get over losing you. *get over“(从疾病、痛苦中)恢复,重新站起”。

Breaking up is hard to do. *break up“朋友、夫妻间的分手”。和你分手是我最大的痛苦。

make up (和好,言归于好)?

We argued for hours. *argue“是用理论来说服对方”或“各自坚持自己的主张而争论不休’’。

四旋翼无人机模糊自适应PID控制,俯仰姿态控制律设计研究(Matlab代码、Simulink仿真实现) 内容概要:本文围绕四旋翼无人机的俯仰姿态控制问题,深入研究了模糊自适应PID控制律的设计与实现。通过结合模糊逻辑系统的自适应能力与传统PID控制器的稳定性,构建了一种能够在复杂动态环境中有效应对外部扰动和模型不确定性的先进控制策略。研究详细阐述了控制系统的结构设计、模糊规则库的建立、隶属度函数的选取以及PID参数的在线调整机制,并利用Matlab/Simulink工具进行了完整的建模与仿真实验,验证了所提方法在响应速度、超调量和抗干扰能力等方面相较于传统PID控制的显著优越性。; 适合人群:具备自动控制理论基础和Matlab/Simulink仿真经验的自动化、航空航天及相关专业的本科生、研究生及科研人员。; 使用场景及目标:①学习和掌握模糊自适应PID控制器的设计原理与方法;②研究无人机姿态控制算法的性能提升途径;③完成相关课程设计、毕业设计或科研项目的仿真验证工作。; 阅读建议:建议读者结合Matlab代码与Simulink模型,深入理解控制算法的实现细节,并尝试调整系统参数和仿真条件,以探究不同因素对控制性能的影响,从而达到理论与实践相结合的学习目的。 立即下载

相关推荐

复现基于李雅普诺夫的多个欠驱动无人船协同路径跟踪Matlab仿真

内容概要:本文详细介绍了基于李雅普诺夫稳定性理论的多个欠驱动无人船协同路径跟踪控制方法的Matlab仿真研究。通过建立非线性动力学模型,设计分布式协同控制器,并利用李雅普诺夫函数严格证明系统的渐近稳定性,实现了多艘无人船在复杂海洋环境下的高精度路径跟踪与稳定编队保持。文中系统阐述了控制器的设计原理、稳定性分析过程、仿真参数配置及多种典型场景下的仿真实验结果,充分验证了该方法在提升编队协同性、抗外部干扰能力和鲁棒性方面的显著优势。; 适合人群:具备自动控制理论、非线性系统分析基础以及Matlab/Simulink仿真能力的研究生、科研人员,以及从事无人系统、船舶自动化、多智能体协同控制等领域研发工作的工程师。; 使用场景及目标:①用于多智能体系统协同控制算法的研究与教学示范;②为欠驱动船舶的路径跟踪控制、海上集群航行等实际工程应用提供可靠的算法设计思路与仿真验证平台;③支撑相关领域高水平论文撰写、科研项目申报与关键技术攻关。; 阅读建议:建议读者结合提供的Matlab代码逐模块研读,重点关注李雅普诺夫函数的构造技巧与控制器参数的整定方法,并尝试在不同环境扰动(如海流、风浪)下进行仿真实验,以深入理解系统的鲁棒性与适应性。

整理外企常用英语及其缩写

FYI abbr. For Your Information 供参考Background  背景Conference Call  电话会议Hey Team! Well that sure was a quick conference call tonight! Aggressive  积极这是俺们领导表扬和批评人用的:“小X,你最近可是很不aggressive 啊!” Add sb. to lo

snow365的专栏 1万+

无线通信工业级双频大功率无线AP基站:2.4G+5GHz全频段高带宽抗干扰设备在智慧物流与工业自动化场景中的应用

内容概要:斯普莱WiFiSupply WFS7000BDIAC是一款2.4G+5GHz双射频、支持1166Mbps无线速率的电信工业级室外型大功率无线AP基站,具备31dBm×2发射功率、IP68防护等级、-45~85℃宽温工作能力及20万小时MTBF认证,支持TDMA时分多址、AI智能FastRoaming极速漫游(≤30ms)、≤1ms通信延迟等核心技术,适用于复杂电磁环境与恶劣气候下的全天候运行。设备采用4T4R MIMO架构,支持多档频宽调节、链路聚合、高带机量及远距离覆盖(3km以上),选配高增益天线可实现150km以上桥接传输,广泛应用于智慧物流、工业4.0、AGV/AMR、驾考系统、森林防火、车载船载视频等场景。; 适合人群:从事工业无线网络设计、智能制造系统集成、智慧交通与物流信息化的工程技术人员及项目决策者;具备一定网络基础知识并负责无线覆盖方案选型、部署与运维的专业人员。; 使用场景及目标:①在大型仓库、四向穿梭车立体库、PLC产线等工业自动化场景中构建高稳定、低时延无线网络;②为AMR/AGV、堆垛机、无人机、教练车等移动设备提供无缝漫游与实时控制连接;③实现远距离无线桥接与视频回传,如森林防火监控、车载视频传输等;④满足极端环境下(高寒、高温、强电磁干扰)对网络可靠性与安全性的严苛需求; 阅读建议:此文档适用于方案设计前期选型参考,建议结合“产品参数”与“行业应用”章节进行组网模式匹配分析,并重点关注TDMA、FastRoaming、巨量安全隧道等专有技术在实际场景中的适配性,同时核实相关认证信息以确保合规部署。

in case 用法

in case万一。是连词,引导条件状语从句。也就是说in case后面是一个完整的句子 Take a hat with you in case the sun is very hot. 倘若太阳很利害,你就把帽子戴上。 in case of的of是介词,介词后面只能带名词性质的词,比如名词、代词等。意思和in case差不多,万一的意思 In case of rain they can

snow365的专栏 7290

顶刊复现改进自适应蚁群算法MAACO无人船、机器人轨迹跟踪Matlab程序

内容概要:本文介绍了“荔枝科研社”这一科研资源共享平台,重点推出了其复现的“改进自适应蚁群算法MAACO”在无人船与机器人轨迹跟踪中的Matlab程序。该资源属于智能优化算法在路径规划领域的前沿应用,通过引入自适应机制优化传统蚁群算法,提升了无人系统在复杂动态环境下的路径搜索效率与轨迹跟踪精度。文档不仅提供完整的Matlab代码实现和仿真案例,还附带详尽的说明文档与参考文献,支持高水平学术论文(如SCI、EI、顶刊)的算法复现与科研创新。此外,平台还系统性整合了涵盖机器学习、深度学习、信号处理、电力系统、图像处理、通信技术等多个方向的丰富科研资源,形成面向科研实践的综合性技术支持体系。; 适合人群:具备一定编程基础和科研能力,从事自动化、机器人、智能控制、无人系统、路径规划及相关领域的硕士/博士研究生、科研人员及工程技术人员,尤其适合致力于高水平学术论文撰写与算法仿真实验的研究者。; 使用场景及目标:①复现并深入理解改进型自适应蚁群算法(MAACO)在无人船、机器人等平台上的轨迹跟踪应用;②开展智能优化算法与路径规划相关的科研课题研究;③支撑毕业论文、科研项目申报或期刊投稿中的算法建模与仿真实验环节;④借助平台提供的多样化案例资源,拓展至其他优化控制问题的研究与创新。; 阅读建议:建议读者依据资源目录循序渐进地学习,优先掌握相关算法的基本原理与数学模型,再结合提供的Matlab代码进行调试与仿真验证。应充分利用配套的参考文献、详解文档和技术支持,针对具体科研需求进行参数调整与算法改进,实现从“精准复现”到“自主创新”的跃迁。

LSTM模型股价波动率预测(含Python代码)

源代码文件可在gzh’finance褪黑素'回复【24012203】获取。

celiaweiwei的博客 3781

医学词汇

OAG (ocular angiography) 眼血管造影术OB (obstetrics) 产科学obducens 丸衣,包丸衣obduction 尸体剖检obedience 服从,遵照,遵守OB-GYN (obstetrics-gynaecology) 妇产科学object 物体,对象,目标object glass (接)

snow365的专栏 3177

树莓派与stm32通信超详细解答过程

笔者之前发过关于stm32与openmv通信的教程,在学习了几天opencv后,想实现树莓派4B与stm32进行通信。于是上网查询资料,最后实现了两者之间的通信,相信这对大多数电赛人都很有帮助,opencv的识别效果是远高于openmv以及K210的。在此我参考了以下资料辅助我学习,大家可以参考。基于树莓派4B与STM32的UART串口通信实验(代码开源)_树莓派4b串口波特率-CSDN博客。

Halcyon0804的博客 5472

海鲜类英语

因为偶自己喜欢吃海鲜,今天把海鲜类的英语整理一下哈^_^ Prawn(虾)、PeeledPrawns(虾仁)、KingPrawns(大虾)、Shrimps(虾米)、Lobster(龙虾)Crab(螃蟹)、Crabstick(蟹肉条)、Squid(乌贼,鱿鱼)、Dressed Squid 花枝Salmon(鲑鱼)、Cod(鳕鱼)、Plaice(比目鱼)、Carp(鲤鱼)、

snow365的专栏 3110

保姆级图解:HKMG工艺中的‘覆盖层’(Cap Layer)到底怎么调阈值电压?

本文深入解析了HKMG工艺中覆盖层(Cap Layer)如何精准调控阈值电压的关键技术。通过原子级精度的ALD工艺和材料选择,覆盖层在半导体制造中扮演着隐形调节器的角色,直接影响晶体管的电气特性。文章详细介绍了La2O3和Al2O3等材料的特性对比、ALD工艺的原子级控制,以及实战调试中的关键步骤和问题排查方法。

weixin_27032989的博客 504

go实现MQTT broker(附完整源码)

go实现MQTT broker(附完整源码)

希望我的博客,能帮上你解决学习中工作中所遇到的问题 584

常见菜名--英文

Aubergine(茄子)、DwarfBean(刀豆)、Chillies(辣椒)、Eddoes(小芋头)、Spinach(菠菜)、Beansprots(绿豆芽)、Springonions(葱)、Leek (韭菜) green Onion(大葱)、Garlic(大蒜)、Ginger(生姜)、Coriander(香菜) ,<v:shapetypeid="_x0000_t75" coords

snow365的专栏 2647

整理 钢琴 约翰·汤普森现代钢琴(大汤)

大汤

TS的博客 4031

日常用语--生病看医生

 dull   1.Lacking in liveliness or animation     dull days with nothing to do     he was so dull at parties   2.Emitting or reflecting very little light     a dull sky   3.Not keenly felt     a dull p

snow365的专栏 2015

网工运维掌握OpenClaw这7大必备技能,自动化运维效率直接起飞

OpenClaw的核心就是它的技能系统。通过官方技能市场(clawhub.ai),你只需一条命令就能安装扩展,让AI代理变成你的“运维副手”。今天我就结合网工运维的真实痛点,精选7项最热门、最实用的OpenClaw技能(基于ClawHub下载量和实际测试),手把手教你安装、使用和进阶玩法。这些技能不是玩具,而是能直接提升运维效率10倍以上的生产力工具!安装后,你的OpenClaw代理就能自动处理Zabbix告警、总结syslog日志、更新Obsidian网络拓扑笔记、甚至通过n8n触发自动修复脚本。

网络技术联盟站 582

【PCIe硬件】PCIe引脚PRSNT与热插拔

热插拔的基本目的是要让PCIe设备按照规定的顺序、原则,从系统中移除或插入到系统中来,并能正常的工作,且不影响系统的正常运行。事实上,PCIe“热插拔”的关键目的就是为前面面所提到的系统RAS服务的,是提升系统RAS能力的非常重要的手段!注意,这里有两个相关概念,前面我们讲的热插拔,其实是广义的“热插拔”。这里的Hot-Plug,为了方便,我们叫做PCIe热插拔,也就是我们现在及后面将要讨论的内容。

smartvxworks的博客 2819

日常用语--警告/劝解

Im going to give up. (我想放弃了。)--You should finish what you start. (你别半途而废。)--Dont leave things half done. *也可用half done来表示“半途而废”。? 我认输了。?You failed the exam again. (你又没考上。)--Im ready to

snow365的专栏 1637

微信小程序 - 实现大文件上传分片/切片+本地选择文件上传超大文件,小程序大文件切片上传+断点续传+上传进度条+失败自动重传完整运行示例源码,支持图片、视频、文档各种文件(支持上传单个文件或批量上传)

微信小程序实现大文件上传,实现分片大文件上传,微信小程序 分片 断点续传 大文件上传,微信小程序实现大文件上传 分片上传 进度条,小程序文件分片上传,微信小程序如何上传很大的文件,在选择文件后,按指定大小将文件切割成独立的文件片,并逐片上传,uniapp 微信小程序上传大文件如何切片,微信小程序实现大文件分片上传、断点续传、秒传,解决大文件上传问题,大文件上传如何做断点续传,微信小程序wx.uploadFile,小程序上传视频,小程序上传文档,实现大文件上传(切片上传)实现大文件上传到服务器教程,支持批量多

🏆 前端领域优质创作者 1万+

Learn to control your anger ~

1.Learn to control your anger before it controls you.昨天对老公发脾气,没有什么具体的原因,然后心里就很难过,把老公气的也不行。。。直到被老公哄哭了。。。算是发泄:)直到晚上,老公还有些耿耿于怀,小气鬼!还问我要不要带着“消气”药回家。有时候,自己都有些奇怪自己的情绪,总是莫名其妙的低落,偶尔还会转移到老公那里,虽然每次吵架都有后悔,但是到时候还

snow365的专栏 1605

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

education essay(words 358) --- IELTS writing

Financial education should be mandatory component of the school program. To what extent do you agree or disagree with this statement?

snow365的专栏 1543

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

day in-lieu~

time-off 补假 time-off in lieu 补假作偿Day in LieuThis means that an employee gets another day off instead of the one they should have had off.For example, if an employee works on Easter Monday then they ge

snow365的专栏 1524

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

日常用语--在工作单位(笔记)

I made it!  (我赶上了!)*可以用于上班、上学和坐车时的情况。Im on time!I arrived on time! (正点到达。)?Be punctual!要严格遵守时间。你又迟到了。?You are late again.?我只迟到了5分钟。?I was only late by five minutes.I was only five minutes late.Did yo

snow365的专栏 1503

日常用语-日期时间

Whats todays datewhat day is itDo you have the timeWhat time is it now?Have you got the time?What time have you got?May I ask the time? Could you tell me what time is it now?its almost noonits 1 o

snow365的专栏 1411

Working from home VS Working at office -- Speaking

Well, that's intetesting question . I guess I would like to talk about this in a couple of ways. To begin with, the most beneficial thing to employees is that working from home can save a great am

snow365的专栏 1273

日常用语--征求意见

你了解情况吗?--Get the picture? *这里的picture不是“照片”,而是“状态”、“情况”、“事态”。这句是Do you get the picture的缩略形式。--Did you grasp the overall situation?? 你在听吗??--Are you listening to me? *这句是用于确认对方是否在注意听自己讲话。注意在这

snow365的专栏 1255

与房屋有关的词汇

最近在出租我们的房子,找到些租房英语,呵呵House(房子) semi-detached house 半独立式房子(一栋房子从中间隔开,成为两户人家,花园也用篱笆隔开) detached house 独立式房子(一家拥有) terraced houses/ row houses 连栋房屋(互相连接的一排房屋;两幢之间只有一层墙壁相隔) fence 篱笆 front door

snow365的专栏 1206
上一篇: 说说爱情~
下一篇: 日常用语--恋爱结婚
dingxy
博客等级 码龄19年 88粉丝 460原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值