摘要: https://scisharp.github.io/SciSharp/ 阅读全文
posted @ 2022-06-29 14:58 China Soft 阅读(67) 评论(0) 推荐(0) 编辑
摘要: https://files.cnblogs.com/files/chinasoft/tf.js-demo-v2.rar?t=1656483198 <script src = "tf.min.js"> </script> <script> /* 根据身高推测体重 */ //把数据处理成符合模型要求的格 阅读全文
posted @ 2022-06-29 14:14 China Soft 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 根据身高推测体重 const $ = require('jquery');const tf = require('@tensorflow/tfjs');const tfvis = require('@tensorflow/tfjs-vis'); /* 根据身高推测体重 */ //把数据处理成符合模型 阅读全文
posted @ 2022-06-29 13:54 China Soft 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 所用示例代码托管在:http://www.github.com/dashnowords/blogs 博客园地址:《大史住在大前端》原创博文目录 目录 一. 上手TensorFlow.js 二. 使用TensorFlow.js构建卷积神经网络 卷积神经网络 搭建LeNet-5模型 三. 基于迁移学习的 阅读全文
posted @ 2022-06-29 13:51 China Soft 阅读(450) 评论(0) 推荐(0) 编辑
摘要: TensorFlow基础篇——(二)TensorFlow和keras中参数配置的用法TensorFlow和keras中GPU使用的设置方法一: 在终端显式指定方法二 :在Python代码中指定方法三 :使用深度学习工具提供的 API指定Pytorch中GPU使用的设置tf.ConfigProto的用 阅读全文
posted @ 2022-06-29 00:30 China Soft 阅读(469) 评论(0) 推荐(0) 编辑
摘要: tensorflow中model.fit()用法model.fit()方法用于执行训练过程 model.fit( 训练集的输入特征, 训练集的标签, batch_size, #每一个batch的大小 epochs, #迭代次数 validation_data = (测试集的输入特征,测试集的标签), 阅读全文
posted @ 2022-06-29 00:29 China Soft 阅读(2376) 评论(0) 推荐(0) 编辑
摘要: # 导入time模块import time# 程序开始时间begin_time = time.time()# 这里是需要测量时间的代码块time.sleep(5)# 程序结束时间end_time = time.time()# 运行时间run_time。round()函数取整run_time = ro 阅读全文
posted @ 2022-06-29 00:02 China Soft 阅读(1129) 评论(0) 推荐(0) 编辑