2022-07-12

This article is categorized as "Garbage" . It should NEVER be appeared in your search engine's results.


备忘录

Viterbi beam search, seq2seq

我缺乏更多的ideas!

有关MariaDB的page_compressed设置

mariadb有一个全局生效的数据库压缩设置,见:🔗 [博客设计与部署 修改记录(从2021-09开始) - Truxton's blog] https://truxton2blog.com/blog-design-and-hosting-record-since-2021-09/

但是这样会有另一个问题:所有数据库表(无论是已有的还是新建的)都会自动附上 page_compressed=on 这样的定义,而且在mysqldump的时候依旧会存在(见本笔记末尾目录的补充)。由于mysql不接受这样的表定义,(如果真的要这么做)从mariadb迁移到mysql的时候会出问题。

解决方案:mysqldump导出2份文件:第一份文件仅有表定义,第二份文件仅有数据;然后使用 sed 全局替换第一份文件的数据,mysql导入第一份文件以后再导入第二份文件。

全局替换命令:

(Linux水平很糟糕,反正我是真的不知道为什么 'ON' 的单引号不需要转义,也许这个答案解释了原因,但我不愿意花时间去想这个问题了)

sed  "s/\`PAGE_COMPRESSED\`='ON'//g" def.sql > def2.sql

附:查看所有需要转义的特殊字符:🔗 [shell - Which characters need to be escaped when using Bash? - Stack Overflow] https://stackoverflow.com/questions/15783701/which-characters-need-to-be-escaped-when-using-bash

表示维度的数学写法

[mathjax-d]\mathcal{F}=\mathbb{R}^{12}[/mathjax-d]

表示:12维!(这个例子来自十二平均律,《fundamentals of ...》 P254)

复习seq2seq

🔗 [2022-06-22 - Truxton's blog] https://truxton2blog.com/2022-06-22/

CRF/条件随机场/Conditional random field (未学完)

🔗 [Conditional random field - Wikipedia] https://en.wikipedia.org/wiki/Conditional_random_field

🔗 [机器学习 -- 条件随机场 (CRF) - 知乎] https://zhuanlan.zhihu.com/p/383307632

留一张图等待后续更新:

https://zhuanlan.zhihu.com/p/383307632

chord detection(开了个头,没有实质内容)

后来写了一篇相对完整的Chord detection总结笔记: 🔗 [Chord recognition - Truxton's blog] https://truxton2blog.com/chord-recognition/

直接从《fundamentals of...》 p273开始看:5.3 HMM-Based Chord Recognition

首先是“如何根据音频信号识别出和弦”,这部分内容见::🔗 [2022-03-29 - Truxton's blog] https://truxton2blog.com/2022-03-29/#本文的前置知识

然后是“使用HMM等模型做post filtering”,这部分内容暂定写在本篇笔记里

更新:今天没有完成这个任务,鸽了!以后的笔记再写吧。

更新:有关chord detection的前置知识(包括基础识别和pre-filtering)主体内容写在 🔗 [2022-07-15 - Truxton's blog] https://truxton2blog.com/2022-07-15/

和弦进行/Chord Progressions/Harmonic Progression

* harmonic progression和chord progression是同一个概念

见《fundamentals of ... 》P252

作用:在做chord detection的时候需要考虑和弦进行带来的影响(类似于NLP的语义分析)。在《Fundamentals of ...》P273中提到,“Some harmonic progressions are more probable than others”,比如:[mathjax]\mathbf{I}-\mathbf{I V}-\mathbf{V}-\mathbf{I}[/mathjax].

1-4-5-1和弦进行example: 🔗 [3.万能写歌和弦进行套路-第3例/1-4-5-1/陈奕迅《稳稳的幸福》A段_哔哩哔哩_bilibili] https://www.bilibili.com/video/BV1sE411L7EB


2023-11-13补充mariadb的page_compressed设置

太久没修改过mariadb的配置文件以及表设计了,以至于2023-11-13在升级mariadb的时候,突然想着要不试试关了lz4压缩会怎么样,结果发现:

开启lz4:600M

关闭lz4,设置innodb_compression_default=OFF:450M

突然就懵了,半天没想明白。后来才想起来,原来就算是my.cnf里关掉了page compression,只要mysql导入/导出的sql文件里存在对每张表的 page_compressed=on ,页面压缩依然会生效,而且默认使用的zlib压缩率比lz4高(但速度慢很多)。

有关压缩率的对比:

https://www.percona.com/blog/evaluating-database-compression-methods-update/


 Last Modified in 2024-04-25 

Leave a Comment Anonymous comment is allowed / 允许匿名评论