当前位置:网站首页>基于 R 语言的深度学习——简单回归案例
基于 R 语言的深度学习——简单回归案例
2022-08-09 12:42:00 【Mrrunsen】
本文主要解决:如何使用神经网络建立模型?,其他推文可见:基于 R 语言的深度学习——配置环境;基于 R 语言的深度学习——简介及资料分享。
该案例是在 CPU 下进行的。如果你的设备有 GPU,并想用 GPU 训练模型。你不需要修改以下的代码,只需前期安装 GPU 版本的 TensorFlow,默认情况下,运算会优先使用 GPU。
知识点包括:
数据导入与数据处理。
构建神经网络。
训练神经网络。
评估模型的准确性。
保存并恢复创建的模型。
加载包
library(keras)
library(mlbench) #使用内部数据
library(dplyr)
library(magrittr)
加载数据
使用 1970 年波士顿 506 个人口普查区的住房数据作为例子。该数据集一共有 14 列,506 行。其中,因变量为 medv(自有住房的中位数报价, 单位 1000 美元),自变量为其他 13 个变量,包括
边栏推荐
- The new features of ABP 6.0.0 - rc. 1
- ABP中的数据过滤器 (转载非原创)
- 在已打开图片上加水印(文字)
- Fragment中嵌套ViewPager数据空白页异常问题分析
- ABAP interview questions: how to use the System CALL interface of the ABAP programming language, direct execution ABAP server operating System's shell command?
- 使用RecyclerView实现三级折叠列表
- 8、IDEA提交代码出现: Fetch failed fatal: Could not read from remote repository
- JVM常用监控工具解释以及使用
- Intra-group reverse order adjustment of K nodes
- ansible-cmdb friendly display ansible collects host information
猜你喜欢

Flutter入门进阶之旅(八)Button Widget

ABAP 报表中如何以二进制方式上传本地文件试读版

Flutter入门进阶之旅(三)Text Widgets

Intra-group reverse order adjustment of K nodes

Jenkins API groovy调用实践: Jenkins Core Api & Job DSL创建项目

ansible-cmdb友好展示ansible收集主机信息

Scala 高阶(七):集合内容汇总(上篇)

Ten minutes to teach you how to use VitePress to build and deploy a personal blog site

自定义VIEW实现应用内消息提醒上下轮播

面试题精选:神奇的斐波那契数列
随机推荐
MySQL 原理与优化,Group By 优化 技巧
造自己的芯,让谷歌买单!谷歌再度开源 180nm 工艺的芯片
Adalvo收购其首个品牌产品Onsolis
Redis源码剖析之字典(dict)
JVM常用监控工具解释以及使用
如何求最大公约数?
Flutter入门进阶之旅(三)Text Widgets
Two minutes recording can pass by second language!The volcano how to practice and become voice tone reproduction technology?
SQL Server查询优化 (转载非原创)
数据挖掘-05
激光熔覆在农机修复强化中的应用及研究方向
The core key points of microservice architecture
ABAP interview questions: how to use the System CALL interface of the ABAP programming language, direct execution ABAP server operating System's shell command?
Flutter Getting Started and Advanced Tour (4) Text Input Widget TextField
Go 事,如何成为一个Gopher ,并在7天找到 Go 语言相关工作,第1篇
Flutter Getting Started and Advanced Tour (8) Button Widget
K个结点的组内逆序调整
#WeArePlay | 与更多开发者一起,探索新世界
FPGA中串口通信的时钟频率和波特率计数
十进制数字→十六进制字符