- 博客(11)
- 收藏
- 关注
原创 python dlib 的安装
pip install --upgrade pippip install boostpip install cmake pip install dlibpip install opencv-python如果还不行,要安装c++解释器vs2019
2021-05-31 16:07:59 97
原创 tensorflow tuner 调参,示例代码(jupyter notebook 版)
import tensorflow as tffrom tensorflow import keras安装 tunerpip install -q -U keras-tunerimport kerastuner as kt下载并准备数据集在本教程中,您将使用Keras调谐器为从Fashion MNIST数据集中分类服装图像的机器学习模型找到最佳超参数。(img_train, label_train), (img_test, label_test) = keras.datasets.fash
2021-05-23 16:18:57 191
原创 Jupyter Notebook 使用流程
安装虚拟环境python -m venv --system-site-packages .\venv使用虚拟环境.\venv\Scripts\activate更新pippip install --upgrade pip安装jupyter-notebookpip install jupyter安装 nbextensionspip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simpl
2021-05-23 14:25:17 108
原创 tensorflow 的输入层和输出层维度注意事项
模型输入层和输出层的维度一定要对住,否则会报错。模型中间层只用给定输出维度import numpy as npimport tensorflow as tfprint(tf.__version__)2.3.0# Without InputLayer and let the first layer to have the input_shape.# Keras will add a input for the model behind the scene.model = tf.keras.
2021-05-21 17:31:42 906
原创 tensorflow 回归的例子,包括保存模型和重新预测
import pathlibimport matplotlib.pyplot as pltimport pandas as pdimport seaborn as snsimport tensorflow as tffrom tensorflow import kerasfrom tensorflow.keras import layersprint(tf.__version__)2.5.0Auto MPG 数据集该数据集可以从 UCI机器学习库 中获取.获取数据首先下载
2021-05-18 17:44:21 288
原创 Failed to load module script: The server responded with a non-JavaScript MIME type of “text/plain“.
flask 使用es6语法中 type='module' 报错报错如下:Failed to load module script: The server responded with a non-JavaScript MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.解决办法在flask中添加代码:import mimetypes# 防止es6语法报错
2021-05-18 11:38:19 12236 2
原创 tensorflow 教程 梯度下降法实现线性回归问题
视频https://www.bilibili.com/video/BV1jK4y187yB?p=52
2021-05-17 15:11:34 83
原创 tensorflow 教程 梯度下降基本原理
视频https://www.bilibili.com/video/BV1jK4y187yB?p=51&spm_id_from=pageDriver
2021-05-17 14:58:20 102
原创 sqlalchemy Specified key was too long; max key length is 767 bytes的解决办法
sqlalchemy出现以下错误:sqlalchemy Specified key was too long; max key length is 767 bytes原因字符集设成了utf8mb4字符,一个utf8mb4字符使用4btyes,限制最大bytes数为767bytes,除以4,等于191.75,所以最大是191个string。代码中使用了db.String(255),超过了191,所以报上述错误。解决方法1 数据库命令ALTER DATABASE databasename CHA
2021-05-06 10:38:40 335
原创 国际音标谐音版
国际音标谐音版20个元音单元音(元音字母个数为1)前元音(舌头靠前)[i:] [ɪ] [e] [æ]一(长音) 一(短音) 爱(小口) 爱(大口)中元音 (舌头靠中)[ɜː] [ə] [ʌ]额(长音) 额(短音) 啊(短音)后元音(舌头靠后)[u:] [ʊ]
2021-05-01 18:27:28 1432
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人