当前位置:网站首页>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 must know and must know (primary articles)
Configure checkstyle in IDEA
Sub-database sub-table ShardingSphere-JDBC notes arrangement
Oracle中如何用一个表的数据更新另一个表中的数据_转载
redis连接idea
Unity WebGL RuntimeError: integer overflow(整数溢出问题)
Switch and Router Technology-35-NAT to PAT
Switch and Router Technology-31-Extended ACL
Thymeleaf
UML基本概念——动态视图
随机推荐
【无2022上海市安全员A证考试题库及模拟考试
Smart Pointer Notes
报表控件Stimulsoft报告中的数据矩阵条形码介绍
Thymeleaf
群晖DS220+ 应用小笔记
分库分表之sharding-proxy
MyEclipse数据库工具使用教程:使用驱动程序
【无2022上海市安全员A证考试题库及模拟考试
oracle表空间与用户的创建
C Language: Practical Debugging Tips
Switches and routers technology - 24 - configure OSPF single area
StarUML使用心得
一些常见mysql入门练习
redis分布式锁
Prometheus :(一)基本概念
将double类型的数据转为字符串
Golden Warehouse Database KingbaseGIS User Manual (6.8. Geometry Object Input Function)
K8s Review Notes 7--K8S Implementation of Redis Standalone and Redis-cluster
2022 Quality Officer-Civil Construction Direction-General Basic (Quality Officer) Exam Mock 100 Questions and Online Mock Exam
Delphi7学习记录-demo实例