当前位置:网站首页>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】----基础练习
- ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/data/xxxx
- 提升你工作效率的技巧,你得知道——Navitcat 快捷键
- Redis中RDB和AOF的区别
- log4j2漏洞复现以及解决方案
- Switches and routers technology - 24 - configure OSPF single area
- 0708作业---商品信息
- ARM Architecture 4: Embedded Hardware Platform Interface Development
- Sub-database sub-table ShardingSphere-JDBC notes arrangement
- K8s Review Notes 7--K8S Implementation of Redis Standalone and Redis-cluster
猜你喜欢
随机推荐
log4j2漏洞复现以及解决方案
2022年质量员-土建方向-通用基础(质量员)考试模拟100题及在线模拟考试
C language antithesis: who is the murderer!
[ARM] rk3399 mounts nfs error
for循环使用多线程优化
C Language: Practical Debugging Tips
MySQL必知必会(初级篇)
Switch and Router Technology-29-OSPF Virtual Link
Switch and Router Technology - 22/23 - OSPF Dynamic Routing Protocol/Link State Synchronization Process
【嵌入式开源库】MultiTimer 的使用,一款可无限扩展的软件定时器
Switch and Router Technology-27-OSPF Route Redistribution
@Resource和@Autowired的区别
ARM Architecture 4: Embedded Hardware Platform Interface Development
Apache Commons OGNL语法说明_翻译
MySQL事务的概念
Switches and routers technology - 26 - configure OSPF peripheral area
K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
MFC Interprocess Communication (Shared Memory)
nodes服务器
2021 Network Planning Designer Afternoon Case Questions








