- 博客(32)
- 资源 (7)
- 收藏
- 关注
原创 git 使用中遇到的问题
初始化git仓库: git init添加至暂存器:git add .报错:类的名字过长解决:修改.git/config 在[core] 下加一条 longpaths = true报错:error: 'spring-boot-project/' does not have a commit checked out解决:原因是在 xxx/文件夹下有隐藏文件,删除掉即可push到远程仓库: git push -u origin master报错:Failed to conn
2022-05-01 19:20:53
257
原创 springboot2.1.0 源码编译 doing
1.下载源码 打开项目2. 修改项目pow.xml:<properties> <revision>2.1.0.snapshot</revision> <main.basedir>${basedir}</main.basedir> <disable.checks>true</disable.checks> </properties>3.maven执行: mvn clean
2022-04-30 15:02:57
687
原创 无root权限升级python3
cd APPwget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgztar -zxvf Python-3.7.5.tgz //解压到Python-3.7.5cd Python-3.7.5./configure --prefix="$HOME/APP/python"makemake install---------------安装python完成---------// 将python3添加至环境变量vim $
2022-03-25 17:20:08
2011
原创 用到的一些linux命令汇总
编译cpp文件:gcc -c a.c // 源文件 -> 汇编文件.ogcc -o a a.o //汇编文件.o -> 可执行文件a出现的错误: 对“std::out”未定义的引用解决:gcc改成g++出现的错误: ../lib/libgsl.so : 对cblas_ 未定义的引用解决:对链接不到的库 显示链接:g++ -o clusterMI clusterMI.o -lgsl -lm -lgslcblas...
2022-03-09 09:55:23
751
原创 springboot sourcecode: AOP
优点:简单,易于建模,可在线性模型的基础上引入层级结构或高维映射得到功能更为强大的非线性模型; 由于w直观表达了各属性在预测中的重要性,因此具有很好的可解释性
2021-11-04 20:24:19
104
原创 springboot sourcode: refreshContext
this.refreshContext(context//应用程序上下文); //->private void refreshContext(ConfigurableApplicationContext context) { if (this.registerShutdownHook) { shutdownHook.registerApplicationContext(context); //shutdownHook注册应用程序上下文 -> } .
2021-10-26 21:59:34
132
原创 springboot sourcecode: SpringApplication.prepareContext
this.prepareContext(bootstrapContext//引导程序上下文, context//应用程序上下文, environment//环境, listeners//运行监听器, applicationArguments//参数, printedBanner//Banner); //this=SpringApplication ->private void prepareContext(DefaultBootstrapContext bootstrapContext, C.
2021-10-23 22:14:55
157
原创 springboot sourcecode: 创建应用程序上下文
protected ConfigurableApplicationContext createApplicationContext() { return this.applicationContextFactory.create(this.webApplicationType); // ->}//webApplicationType:this.webApplicationType = WebApplicationType.deduceFromClasspath();//根据路径推.
2021-10-23 10:25:02
203
原创 springboot sourcode: 应用程序环境
ConfigurableEnvironment environment = this.prepareEnvironment(listeners//监听器, bootstrapContext//上下文, applicationArguments//参数); //准备环境,获取系统环境,参数等 -> todothis.configureIgnoreBeanInfo(environment);private ConfigurableEnvironment prepareEnvironment(S.
2021-10-23 10:16:54
88
原创 sourcecode: SpringApplicationRunListener
SpringApplicationRunListeners listeners = this.getRunListeners(args); //args为传入main方法的参数 -> todolisteners.starting(bootstrapContext, this.mainApplicationClass);SpringApplicationListeners 属性:Log log; //日志List<SpringApplicationRunListener> .
2021-10-22 20:24:25
105
原创 sourcecode: createBootstrapContext()
private DefaultBootstrapContext createBootstrapContext() { DefaultBootstrapContext bootstrapContext = new DefaultBootstrapContext();//创建 DefaultBootstrapContext实例 -> this.bootstrapRegistryInitializers.forEach((initializer) -> { //todo .
2021-10-22 19:00:03
480
原创 todo sourcecode
SpringApplication.run(DemoApplication.class, args); -> [ConfigurableApplicationContext] ConfigurableApplicationContext.run(new Class[]{primarySource}, args) -> new SpringApplication(primarySources)).run(args) -> 打开stopWatch 配置上下文 配置文件 类监听器 新建类.
2021-10-16 22:25:21
103
原创 常用概率分布
二项分布(伯努利分布):扔硬币,硬币正面朝上概率为p, 重复扔n次硬币,k次为正面的概率即为一个二项分布概率多项式分布:二项分布的推广,有变量多种取值概率公式:Dirichlet distribution:Gamma function:原文:https://blog.youkuaiyun.com/qq_15111861/article/details/80481168...
2021-10-12 10:42:30
784
原创 集成学习(待更新)
Bagging和Boosting都是ensemble learing 中的学习框架,代表着不同的思想,而不是具体的某一个算法Bagging特点:弱学习器之间没有依赖关系采样:又放回地随机采样。 采样过程中,大概有36.8%的样本不会被采样到,我们常常称之为袋外数据(Out Of Bag, 简称OOB)。这些数据没有参与训练集模型的拟合,因此可以用来检测模型的泛化能力。学习器:bagging对于弱学习器没有限制,常用决策树和神经网络。集合策略:对于分类问题,通常使用简单投票法,得到最多
2021-10-02 09:47:51
86
原创 决策树总结
选择属性指标:纯度:让目标变量的分歧最小评估“不纯度”的指标:指标一:信息熵:表示信息的不确定度不确定性越大,信息量越大,信息熵越高选纯度低/信息熵大的作为节点属性指标二:信息增益(ID3算法):划分可以带来纯度的提高,信息熵的下降公式计算:父节点的信息熵 - 所有子节点的信息熵*该子节点出现的概率优点:规则简单,可解释性强缺点:倾向于选择取值比较多的属性,对噪声敏感一般地,熵H(D)与条件熵H(D|A)之差称为互信息(mutual informat.
2021-09-28 22:34:12
430
原创 一些用到的R指令......
Rdata数据导出为csv文件:write.table(Phenotype,file="E://Phenotype.csv",sep=",",row.names = F)
2021-07-20 19:12:40
298
原创 找不到msvcp100d.dll/msvcr100d.dll文件
从脚本之家下载这两个文件里面有说明复制到C:\windows\syswow64 //64位操作系统 x64执行regsvr32mscvp100d.dll报错 已加载 但是找不到入口DIIUnregisterServer参考(23条消息) 模块“msvcp100d.dll"已加载,但找不到入口点DIIRegisterServer。dll缺失regsvr32 XXX.dll无效问题_陪你到天明的博客-优快云博客regsvr32 坏了 //也不知道怎么了 然后再说下...
2021-07-20 11:35:46
343
原创 合并多个短视频为一个长视频(python
import osL = []for root, dirs, files in os.walk("./design"): files.sort() for file in files: if os.path.splitext(file)[1]=='.mp4': filepath = os.path.join(root,file) video = VideoFileClip(filepath) L....
2021-06-10 14:30:10
410
2
原创 微信小程序开发 组件建立
page.wxml:<createtype="parameter"></create>page.json:"usingComponents":{"create":"/components/create/create"}component.jsproperties:{type:String},
2021-04-09 07:19:03
98
原创 plink处理数据使用记录
vcf 文件转换为 ped 和 map文件:plink --noweb --vcf AMP_SNP_anno.vcf --recode --out output --double-id转换为二进制文件:plink --noweb --file output --make-bed --out outputBquality control:plink --bfile outputB --geno 0.05 --hwe 0.0001 --maf 0.1 --mind 0.05 --recode -.
2020-12-28 20:42:42
1700
原创 linux 使用gsl遇到的问题
linux 使用gsl遇到的问题gsl 安装:下载地址: http://mirrors.ustc.edu.cn/gnu/gsl/新建文件夹gsl,将下载的文件解压到文件夹中。打开文件夹,里面的INSTALL文件就是安装的步骤:cd到文件夹中。 -> ./configure ->make ->make check ->make install(这一步需要root权限)然后运行文件.....报错.....undefined reference...
2020-12-23 16:08:37
597
原创 python 使用h5py 中遇到的问题
安装h5py:python --version //查看python版本pip3 --version //查看pip3版本pip3 install h5py //安装然后 pycharm 中import h5py报错 : ModuleNotFoundError: No module named 'h5py'解决方法: File --> settings ---> Project: pycharmProject . Project Interpreter -...
2020-12-14 09:17:09
4676
1
原创 mysql5.6 安装过程和遇到的问题
安装步骤:将zip文件减压到C:\Program Files (x86)\MySQL\mysql-5.6.23-winx64环境变量Path中添加:C:\Program Files (x86)\MySQL\mysql-5.6.23-winx64\bin以管理员身份运行cmd, cd C:\Program Files (x86)\MySQL\mysql-5.6.23-winx64\binCmd中依次输入:mysqld initialize mysqld install问题:...
2020-06-13 11:27:19
352
原创 java中queue的基本用法
初始化:Queue<Integer> = new LinkedList<>();用法:add() 增加一个元素remove() 移除并返回队列头部的元素element() 返回队列头部的元素offer() 添加一个元素并返回是否添加成功poll() 移除并返回队列头部的元素peek() 返回队列头部的元素put() 添加一个元素take() 移除并返回队列头部的元素...
2020-06-07 09:30:03
249
原创 linkedList基本用法
ADD:boolean add(E e):在链表后添加一个元素,成功返回truevoid addFirst(E e):在链表头部插入元素addLast(E e):在链表尾添加元素void add(int index, E element):在指定位置插入一个元素REMOVE:remove():移除列表第一个元素boolean remove(Object o):移除链表中指定的元素remove(int index):移除链表中指定位置的元素removeFirst():.
2020-06-04 21:12:19
215
原创 String基本用法 java
参考于Java String API文档:https://www.runoob.com/manual/jdk1.6/java/lang/String.htmlchar charAt(int index) 返回指定索引处的 char 值。int compareTo(String anotherString);按字典顺序比较两个字符串。int compareToIngnoreC...
2020-04-30 22:07:00
144
原创 StringBuilder 基本用法 java
StringBuilder sb = new StringBuilder(string);StringBuilder append(string) 在末尾追加内容StringBuilder insert(i,string) 在位置i添加内容String toString() StringBuilder->Stringint length() ...
2020-04-30 07:36:54
189
原创 Stack基本用法 java
boolean empty() 返回堆栈是否为空Object peek( ) 返回栈顶元素 //C++中是top()Object pop( ) 移除堆栈顶部的对象,并作为此函数的值返回该对象Object push(Object element) 把项压入堆栈顶部int search(Object element) 返...
2020-04-26 23:30:51
118
原创 正则表达式基本用法 java
正则表达式可以用来搜索、编辑或处理文本。一些基本符号的含义:在其他的语言中(如Perl),一个反斜杠 \ 就足以具有转义的作用,而在 Java 中正则表达式中则需要有两个反斜杠才能被解析为其他语言中的转义作用。eg: string.split("\\.");\s+ 可以匹配多个空格^ 定义了以什么开始 $ 匹配输入字符串结尾的位置。 ...
2020-04-22 07:13:41
118
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人