- 博客(9)
- 收藏
- 关注
原创 通过函数名(string格式)来运行该函数
问题描述:现在有一个函数名叫做 “fool_function" 的函数,我现在有个string variable也叫“fool_function”,我想通过这个string来运这个函数 解决:尝试使用 eval("fool_function"])(),来 通过函数名(string格式)来运行该函数 ...
2022-03-04 17:29:10
257
原创 python求预测值和真实值的accuracy的一个简单方法
分享一个求accuracy的简单方法: 真实值(groud_truth)和预测值(prediction)都储存在一个list里面,且长度相等 acc = (prediction == groud_truth).mean() 解释:(prediction == groud_truth) 返回的也是一个list,里面包含的值都是 true false(预测对了就是true,错了就是false). .mean之后,就是把true当作1,false当作0,求均值,就是accuracy ...
2022-03-04 17:15:57
4899
原创 Git branch的运用 & 通常来说,仓库的branch结构
先贴原文:https://nvie.com/posts/a-successful-git-branching-model/ 总结如下:正常一个 repository 是有main分支(永远保持着production-ready state), develop分支(研发的分支,reflects a state with the latest delivered development changes for the next release), features分支(每当想继续开发一个新的功能), rele
2022-01-23 21:23:44
545
原创 Git常见问题
git push之后显示: error: src refspec main does not match any 原因:可能是因为自己的分支是master,而github上是main 解决:git branch -m master main,然后再git push origin main git push 之后显示:failed to push some refs to 'git@github.com: 原因:本地仓库文件版本不是最新(有人再github上传了文件) 解决:建议先git .
2021-12-01 04:44:55
195
原创 Python 小技巧(常更新)
这是一篇记录博主自己学习过程的编程笔记的博客。 解决:在test.py 中 补上 import sys sys.path.append("..") 为了调用上一级目录下的模块。 ...
2021-11-13 21:57:25
618
原创 Ubuntu 中GitLab 添加SSH key
Step1: 找到自己的Home文件夹,“选择show hidden files”,找到.ssh文件夹,看看里面有没有id_rsa和id_rsa.pub文件。如果没有执行Step2,有则执行Step3. Step2: 打开Terminal,输入ssh-keygen -t rsa -C "your email"(邮箱用自己的) 一路enter到最后。然后再去检查ssh文件夹,看看里面有没有id_rsa和id_rsa.pub文件,这时候应该有了。 Step3:打开id_rsa.pub文件,把内容复制。
2021-11-01 16:52:14
1814
原创 Matlab和PyCharm 同时打开 报错
Matlab报错:Exception "java.lang.ClassNotFoundException: com/intellij/codeInsight/editorActions/FoldingData"while constructing DataFlavor for: application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData 原因: 同时打开了Matlab
2021-10-24 23:47:09
1373
6
原创 Win10和Ubuntu18.04双系统安装,AHCI/RAID导致系统无法进入的问题及解决
本人Win10,安装双系统Ubuntu18.04,电脑128G的固态+1T的机械,参考下面的链接来安装 Windows10安装ubuntu18.04双系统教程 - 不妨不妨,来日方长 - 博客园写在前面:本教程为windows10安装ubuntu18.04(64位)双系统教程,是我多次安装双系统的经验总结,安装方法同样适用于ubuntu16.04(64位)。为了直观和易于理解,我会尽量图文并https://www.cnblogs.com/masbay/p/11627727.html但是遇到了几个问题,想把
2021-10-22 13:57:44
8218
10
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅