11 2021 档案

摘要:Python实现在不同Linux主机之间拷贝文件 最近在写Python脚本的时候,需要一个功能就是使用ssh登录Linux主机A,然后在主机A上执行scp命令将主机上的文件自动给拷贝到Linux主机B上。远程登录使用pycrypto和paramiko模块实现了,但是在执行scp命令的时候需要输入密码 阅读全文
posted @ 2021-11-24 17:16 michaelchengjl 阅读(680) 评论(0) 推荐(0) 编辑
摘要:解决拉取github仓库报错“gnutls_handshake() failed”问题 gnutls_handshake() failed: The TLS connection was non-properly terminated. 最近为新配置的虚机拉取库,但是从 GitHub 拉取库总是出问 阅读全文
posted @ 2021-11-13 19:55 michaelchengjl 阅读(899) 评论(0) 推荐(0) 编辑
摘要:Python与c/c++混合编程 https://www.cnblogs.com/leoking01/p/14591169.html https://github.com/shenghuofei/c-python https://blog.csdn.net/weixin_41521681/artic 阅读全文
posted @ 2021-11-10 14:01 michaelchengjl 阅读(52) 评论(0) 推荐(0) 编辑
摘要:numpy-tutorial numpy中比较两个数字的断言函数 assert_allclose比较数组相等 与assert_array_equal不同的是,该函数有atol(绝对容差限)、rtol参数(相对容差限)。比如对于数组a,b,则将测试是否满足 ∣ a − b ∣ ≤ ( a t o l 阅读全文
posted @ 2021-11-10 14:00 michaelchengjl 阅读(23) 评论(0) 推荐(0) 编辑
摘要:Pandas 数据分析资料 https://github.com/zhouyanasd/or-pandas https://www.pypandas.cn/docs/getting_started/ https://oicebot.github.io/2018/09/05/30-mins-into- 阅读全文
posted @ 2021-11-10 11:10 michaelchengjl 阅读(27) 评论(0) 推荐(0) 编辑
摘要:python3 创建虚拟环境 python3 -m venv cjl source cjl/bin/activate source cjl/bin/deactivate 阅读全文
posted @ 2021-11-10 10:16 michaelchengjl 阅读(80) 评论(0) 推荐(0) 编辑
摘要:机器学习中的评价指标--02 回归算法的评价指标就是SSE、MSE,RMSE,MAE、R-Squared。下面一一介绍: SSE(和方差) 该统计参数计算的是拟合数据和原始数据对应点的误差的平方和,计算公式如下 SSE越接近于0,说明模型选择和拟合更好,数据预测也越成功。接下来的MSE和RMSE因为 阅读全文
posted @ 2021-11-09 17:58 michaelchengjl 阅读(475) 评论(0) 推荐(0) 编辑
摘要:机器学习中的评价指标--01 在机器学习中,性能指标(Metrics)是衡量一个模型好坏的关键,通过衡量模型输出y_predict 和 y_true之间的某种"距离"得出的。 性能指标往往是我们做模型时的最终目标,如准确率,召回率,敏感度等等,但是性能指标常常因为不可微分,无法作为优化的loss函数 阅读全文
posted @ 2021-11-09 16:30 michaelchengjl 阅读(793) 评论(0) 推荐(0) 编辑
摘要:pytest 测试框架 安装pytest以及常用插件 pip3 install pytest pytest-repeat pytest-timeout pytest # pytest 测试suit pytest-repeat # 测试次数插件 pytest-timeout # 测试超时插件 运行测试 阅读全文
posted @ 2021-11-02 14:55 michaelchengjl 阅读(57) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示