- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 batch_size, epochs,iteration参数设置的基本概念
(1)batch_size:单次训练用的样本数,通常为2^N,如32、64、128…例如:batch_size=32为每一次载入数据集为32个样本数。相对于正常数据集,如果过小,训练数据就收敛困难;过大,虽然相对处理速度加快,但所需内存容量增加。要根据电脑的内存容量进行设定,使用中需要根据计算机性能和训练次数之间平衡。另:如果batch_size设置为最大,就是原始的梯度下降。如果batch_size设置为1,则位随机梯度下降。(2)iteration:1个iteration等于使用batc
2022-02-15 18:08:50
4973
原创 解决ValueError: You must specify either total_examples or total_words, for proper alpha and....问题
1.运行报错:ValueError: You must specify either total_examples or total_words, for proper alpha and progress calculations. The usual value is total_examples=model.corpus_count.2.解决方法:添加参数问题:
2022-02-13 22:48:14
1666
原创 解决TypeError: __init__() got an unexpected keyword argument ‘iter‘的问题
1.在运行word2vec_train自定义函数中出错TypeError: init() got an unexpected keyword argument ‘size’2.查找资料再word2vec源码里面def __init__( self, sentences=None, corpus_file=None, vector_size=100, alpha=0.025, window=5, min_count=5, max_vocab_size=None, sam
2022-02-13 16:28:57
19543
转载 解决用cmd更新pip出错ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
1、在用cmd python -m pip install --upgrade pip 更新pip时出错2、卸载setuptools工具(可能因为版本太低了)在命令行中输入 python -m pip uninstall pip setuptools3.重新下载setuptools工具在命令行中输入 pip install --upgrade setuptools4.重新更新pip在命令行输入python -m pip install --upgrade pip 问题解决...
2022-02-11 19:43:54
1508
3
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人