会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我的备忘录
记录学习中容易遗忘的零碎知识点
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2023年3月15日
Python计算编辑距离和字符串相似度
摘要: # Levenshtein module ## distance(s1, s2, *, weights=(1, 1, 1), processor=None, score_cutoff=None) - 参数:s1和s2代表两个字符串,weights=(1,1,1)中的1分别代表对插入、删除和替换的权重
阅读全文
posted @ 2023-03-15 16:38 梁书源
阅读(303)
评论(0)
推荐(0)
2022年12月6日
Stata中的Macro: local global and temp
摘要: 获取local中第n个元素 local somename "a b c d e" // 将这几个字符赋予给somename local element: word #th of `somename' // 将somename中第#th个字符赋予给element
阅读全文
posted @ 2022-12-06 21:12 梁书源
阅读(81)
评论(0)
推荐(0)
2022年12月2日
数学基本知识
摘要: Covriance 两个独立随机变量的协方差为零,但协方差为零不一定意味着两个变量独立。 协方差只衡量线性相关 Matrix Algebra 矩阵的求导规则及证明参见: Matrix Differentiation note: 已保存至百度云 with and without replacement
阅读全文
posted @ 2022-12-02 15:57 梁书源
阅读(65)
评论(0)
推荐(0)
2022年12月1日
Sata中的字符型函数与正则表达式
摘要: 查找并提取查找结果 gen age_low = real(ustrregexs(0)) if ustrregexm(年龄,".*(?=-)") 其中,年龄为字符型变量,包含了类似于“18-25岁“这样的字符。 ustrregexm命令可以进行正则匹配,当符合匹配时返回1,否则为0,因此该命令不能范围
阅读全文
posted @ 2022-12-01 16:55 梁书源
阅读(992)
评论(0)
推荐(0)
2022年11月30日
零碎Python代码整理
摘要: # Pycharm设置Conda环境 https://www.jetbrains.com/help/pycharm/conda-support-creating-conda-virtual-environment.html # Excel表合并 ``` import pandas as pd imp
阅读全文
posted @ 2022-11-30 15:57 梁书源
阅读(58)
评论(0)
推荐(0)
2022年11月2日
Stata零散知识点的记录
摘要: # mat list 与matlist的区别: - `matlist` is an extension of the matrix list command。 - `mat list` 只能打印一个完整的矩阵,而matlist则可以根据行列数或者行列名打印部分矩阵。 - `matlist` 有更多的
阅读全文
posted @ 2022-11-02 18:24 梁书源
阅读(392)
评论(0)
推荐(0)
上一页
1
2
公告