当前位置:网站首页>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)
边栏推荐
- 2022年Android面试中最常问的问题是什么?
- redis分布式锁
- Sub-database sub-table ShardingSphere-JDBC notes arrangement
- 关于CC 攻击
- 4 Module 3: Literature Reading and Research Methods
- Weekly recommended short video: your commonly used Polaroid, its predecessor turned out to be like this!
- Apache Commons OGNL语法说明_翻译
- How IP-Guard prohibits running U disk programs
- Core Data 多线程设计
- Internet Protocol 1
猜你喜欢
![[Embedded open source library] The use of MultiButton, an easy-to-use event-driven button driver module](/img/7b/e265305df01eb405a131d0de2154d3.png)
[Embedded open source library] The use of MultiButton, an easy-to-use event-driven button driver module

Switches and routers technologies - 30 - standard acls

CentOS7静默安装Oracle11g_转载

C statement: data storage

Idea提升工作效率的必备技巧

StarUML使用心得

实战noVNC全过程操作(包含遇到的问题和解决)

3 Module 2: Use of scientific research tools

Switch and Router Technology-33-Static NAT

MySQL must know and must know (primary articles)
随机推荐
Switch and Router Technology-27-OSPF Route Redistribution
In the closing pages/uninstall (unload) sends a request to the server before the document
2022年质量员-土建方向-通用基础(质量员)考试模拟100题及在线模拟考试
用白嫖的Adobe正版软件,减少应届毕业生的慢就业、不就业等现象
Internet Protocol 1
guava RateLimiter均匀限流
[No 2022 Shanghai Security Officer A Certificate Exam Question Bank and Mock Exam
prometheus:(二)监控概述(你永远逃不出我的手掌哈哈)
Idea提升工作效率的必备技巧
Switch and Router Technology-35-NAT to PAT
2.2 user manual] [QNX Hypervisor 10.15 vdev timer8254
Switch and Router Technology - 28 - NSSA Areas for OSPF
阿里云无法远程连接数据库MySQL错误码10060解决办法_转载
代理模式(简要介绍)
【无2022上海市安全员A证考试题库及模拟考试
输入字符串,替换其中敏感词进行输出
StarUML使用心得
【嵌入式开源库】cJSON的使用,高效精简的json解析库
Tips to improve your productivity, you have to know - Navitcat shortcuts
Win10远程连接(实现多用户同时连接)