当前位置:网站首页>Keras与tensorflow 使用基础
Keras与tensorflow 使用基础
2022-08-11 05:13:00 【甜辣uu】
Keras与tensorflow 版本对应关系 python 3.7 环境下以及怎么建立模型保存预测


归一化
def data_guiyihua(data):
scaler =MinMaxScaler(feature_range=(0, 1))#指定参数的范围 进行归一化
data_guiyihua=np.array(data) # 不进行归一化
data_guiyihua_2 = data_guiyihua.reshape((data_guiyihua.shape[0], 1,data_guiyihua.shape[1]))
return data_guiyihua_2
#训练集
x_train = data_guiyihua(x_train)
print(x_train.shape)
# 验证集
x_test= data_guiyihua(x_test)
print(x_test.shape)
#测试集
ceshi= data_guiyihua(ceshi)
print(ceshi.shape)
边栏推荐
- MySQL必知必会(初级篇)
- 面试题整理
- MySQL事务的概念
- 分库分表ShardingSphere-JDBC笔记整理
- You must understand - the nine built-in objects and four domain objects of JSP
- Switch and Router Technology-31-Extended ACL
- 2022 Quality Officer-Civil Construction Direction-General Basic (Quality Officer) Exam Mock 100 Questions and Online Mock Exam
- Switches and routers technology - 26 - configure OSPF peripheral area
- Oracle中如何用一个表的数据更新另一个表中的数据_转载
- 【嵌入式开源库】cJSON的使用,高效精简的json解析库
猜你喜欢

2021 Network Planning Designer Afternoon Case Questions

Prometheus :(一)基本概念

HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities

【ARM】rk3399挂载nfs报错

Configure checkstyle in IDEA

C语句:数据存储

Use Adobe genuine software for prostitution to reduce the slow employment and non-employment of fresh graduates

Thymeleaf

ARM Architecture 4: Embedded Hardware Platform Interface Development

Switches and routers technology - 24 - configure OSPF single area
随机推荐
ARM Architecture 4: Embedded Hardware Platform Interface Development
【ARM】rk3399挂载nfs报错
Golden Warehouse Database KingbaseGIS User Manual (6.10. Geometric Object Operation Operator)
Oracle中如何用一个表的数据更新另一个表中的数据_转载
In the closing pages/uninstall (unload) sends a request to the server before the document
判断一个字符串是否为空,如果为空,对其赋值,如果不为空,获取字符的个数并打印第一个字符
阿里云无法远程连接数据库MySQL错误码10060解决办法_转载
将double类型的数据转为字符串
报表控件Stimulsoft报告中的数据矩阵条形码介绍
【Mysql】----基础练习
About CC Attacks
Idea 2021.3.3版本文件目录展开
你务必得明白——JSP的九大内置对象与四大域对象
MFC 进程间通信(共享内存)
金仓数据库 KingbaseGIS 使用手册(6.10. 几何对象操作运算符)
切分字符串进行输出显示
FPGA engineer interview questions collection 121~130
面试题整理
leetcode 9. Palindromic Numbers
MySQL数据库管理