1. framework: keras, xgboost…
2. hyperparameters: tune
3. rationale: 多层感知机、卷积神经网络、自编码器…
将原理使用框架实现出来,并找到尽可能优秀的参数。
逻辑自洽。
1. framework: keras, xgboost…
2. hyperparameters: tune
3. rationale: 多层感知机、卷积神经网络、自编码器…
将原理使用框架实现出来,并找到尽可能优秀的参数。
保存网页的时候,会有各种不如意的地方,找不到令人满意的工具。现在记录下来各种问题,以后有机会自己开发一款趁手好用、小巧的网页转pdf的工具。
1. 保存的网页会被自动切成好几个小块,切的地方会让后续的阅读很困扰,比如从图片中间切,从一个重要的段落中间切。
2. 保存的网页字体很难看
3. 滚动截屏速度很慢
4. chrome, devtools, screenshot, 保存的图片分辨率较低
year:language:creator:compiler
1972:c:Dennis Ritchie:assembly language on a PDP-7
1979:c++:Bjarne Stroustrup:C
1987:perl:Larry Wall:C
1991:python:吉多*范罗苏姆(Gudio van Rossum):C
https://en.wikipedia.org/wiki/Sensitivity_and_specificity
link: https://casrai.org/credit/
1. 提交
git add .
git commit -m “your comments about this submission”
git push origin master
2. 同时开发,解决冲突
背景:
实际工作中,一定会出现多个人共同开发一个软件,但是大家负责不同的功能。基于git,大家可以各自创建一个分支,完成自己的分支工作后,再merge回去。
问题:
如果同事A修改了某个文件F的格式,但是同事B依赖该文件原来的格式。A先提交成功了,B再提交,B就无法运行成功了,因为F的格式变了。任何一个人,merge之前应该先做测试,证明merge后能够正常运行,才能真正merge。又或者,大家应该有一个约定,有的文件是不能动的。
3. git clone
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
git clone --recursive https://github.com/dmlc/xgboost #--recursive ... alias of --recurse-submodules #--recurse-submodules[=<pathspec>] initialize submodules in the clone After the clone is created, initialize and clone submodules within based on the provided pathspec. If no pathspec is provided, all submodules are initialized and cloned. This option can be given multiple times for pathspecs consisting of multiple entries. The resulting clone has submodule.active set to the provided pathspec, or "." (meaning all submodules) if no pathspec is provided. Submodules are initialized and cloned using their default settings. This is equivalent to running git submodule update --init --recursive <pathspec> immediately after the clone is finished. This option is ignored if the cloned repository does not have a worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or --mirror is given) |
4. windows下git对路径名长度存在限制,即使win10系统本身解除了这个限制。
git config –global core.longpaths true
但是没用,仍然报错:fatal: ‘$GIT_DIR’ too big
5. foobar
1. plink常用格式:
https://www.cog-genomics.org/plink/1.9/formats#ped
ped, map
bed, bim, fam
2. plink gwas
3. plink homepage:
1.07: http://zzz.bwh.harvard.edu/plink/index.shtml
1.9 & 2.0: https://www.cog-genomics.org/plink/
#snp2bedbimfam
plink –23file JPT-NA19001.snp JPT ID002 –out JPT-NA19001
#去除有问题的snp
plink –bfile JPT-NA19001 –exclude merge.missnp –make-bed –out new
#merge单个文件
plink –bfile source1 –bmerge source2_trial –make-bed –out merged_trial
#merge多个文件
plink –merge-list merge_list –make-bed –out merge
1 2 3 4 |
1. compgen -b:display all built-in commands (completion of command) 2. type command: determine whether the command is a built-in command 3. pushd/popd: add/remove directories from stack 4. help command: display the help message of the command |
1 |
sed '$,$ d' input > output #删除最后一行 |
1 2 3 4 5 6 7 8 9 |
https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard. alias s=$'ls | perl -ne \'chomp();my $str = $_;print "$str\n"\' | sort -k4' #1.单引号内继续用单引号:解决方案:$'string',string内的单引号用反斜线转义 #2.'\n'并未被传递给perl,传递给perl的是一个有换行的字符串。 #因为perl支持一句话写在多行,所以这里才能没问题 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
set指令能设置所使用shell的执行方式,可依照不同的需求来做设置 <strong> +<参数> 取消某个set曾启动的参数。</strong> -a 标示已修改的变量,以供输出至环境变量。 -b 使被中止的后台程序立刻回报执行状态。 -C 转向所产生的文件无法覆盖已存在的文件。 -d Shell预设会用杂凑表记忆使用过的指令,以加速指令的执行。 使用-d参数可取消。 -e 若指令传回值不等于0,则立即退出shell。 -f 取消使用通配符。 -h 自动记录函数的所在位置。 -H Shell 可利用"!"加<指令编号>的方式来执行history中记录的 指令。 -k 指令所给的参数都会被视为此指令的环境变量。 -l 记录for循环的变量名称。 -m 使用监视模式。 -n 只读取指令,而不实际执行。 -p 启动优先顺序模式。 -P 启动-P参数后,执行指令时,会以实际的文件或目录来取代符号 连接。 -t 执行完随后的指令,即退出shell。 -u 当执行时使用到未定义过的变量,则显示错误信息。 -v 显示shell所读取的输入值。 -x 执行指令后,会先显示该指令及所下的参数。 |
1 2 3 4 5 6 7 8 9 10 |
>| filename:即使noclobber选项已开启,仍然强制将标准输出写到 文件filename之中,即将filename文件覆盖掉。 noclobber When setting 'noclobber' overwriting the content of an existing file by the '>' redirection operator will not be possible. You might have typed '>' to redirect the output of a certain command to an existing file, while you intended to use '>>' redirection operator. |
1 2 3 4 5 6 7 8 |
if [ $# == 0 ];then echo "USAGE:sh $0 filename is_there_newline" exit 0 fi LAST=$(tail -n 1 $1) let TRUNCATE_SIZE="${#LAST} + $2" truncate -s -"$TRUNCATE_SIZE" $1 |
1. 清除无用内核及其对应的modules等文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
1. 使用dnf来进行操作 dnf remove --oldinstallonly --setopt installonly_limit=2 2. dnf手册 https://dnf.readthedocs.io/en/latest/index.html 3. 网上常见方法的缺陷 1. yum remove $(rpm -qa | grep kernel | grep -v $(uname -r)) 这个方法和dnf的删除规则不一致,不知道是否会损坏内核的完整性 2. yum remove $(rpm -qa | grep kernel-[0-9] | grep -v $(uname -r)) 删除的不够干净,devel,core,modules不会删除,不会更新grub的列表,旧的内核仍然存在选项。 3. package-cleanup --oldkernels --count=2 不适用于centos8,该命令无--oldkernels选项 |
2. 修改grub参数
1 2 3 4 5 6 7 8 9 10 11 |
1. 修改开机时grub界面等待时间 /boot/grub2/grub.cfg timeout=1 规范操作应该是修改: /etc/default/grub中的参数, 然后调用grub2-mkconfig -o /bootgrub2/grub.cfg 但是我发现,我运行这个命令,还改了别的地方,我暂时没看懂。 所以,我先手动直接改grub.cfg. 2. 修改默认的kernel:同上 |
3. 添加仓库
1. yum config-manager –set-enabled PowerTools 2. yum install epel-release |
4. 安装X11
尝试过的方案: 1. 借由安装xclock,系统会自动安装其所依赖的X11相关组件 yum install xclock 2. yum dep 安装R依赖 3. 手动编译R包: 3.1 给定路径: ./configure –prefix=/home/nott/00.software/00.common/R-3.6.1/ –x-libraries=/usr/lib64 –x-includes=/usr/include/ |
4. foobar