Download Pandoc!
pandoc-3.8-windows-x86_64.msi
【问题】主要为了解决默认的Next渲染器无法渲染复杂公式的问题
Step1:在系统变量中找到Path→点击编辑
Step2:点击新建→输入pandoc.exe的父目录路径(C:)→点击确定
Step3:重启终端
Step4:安装pandoc-3.8-windows-x86_64.msi
1
| $ npm list --depth=0 | Select-String "renderer"
|
1
| npm uninstall hexo-renderer-kramed --save
|
1
| npm uninstall hexo-renderer-markdown-it --save
|
1
| $ npm list --depth=0 | Select-String "renderer"
|
1
| $ npm install hexo-renderer-pandoc --save
|
More info: Ref
Step5:在你所在的博客头加入必要的引入
Step6:在D:_AILab_HKUST_Machine_Learning的_config.yaml文件中确保你的Pandoc路径能被找到
1 2 3 4
| $ pandoc: $ pandoc_path: "C:/Users/Aprine/AppData/Local/Pandoc/pandoc.exe" $ args: $ - "--mathjax"
|
Step7:在D:_AILab_HKUST_Machine_Learning_config.yaml文件中确保你的math信息配置正确
1 2 3 4
| $ mathjax: $ enable: true $ $ mhchem: true
|
Step8:修改你的head文件的基础格式
More info: Ref
Push new blog
对比损失函数(InfoNCE/NT-Xent Loss)定义为: \(\mathcal{L}_{\text{q}} = -\log \underbrace{\left(
\frac{\exp\left( \mathbf{q} \cdot \mathbf{k}^{+} / \tau
\right)}{\exp\left( \mathbf{q} \cdot \mathbf{k}^{+} / \tau \right) +
\sum\limits_{i=1}^{N} \exp\left( \mathbf{q} \cdot \mathbf{k}_{i}^{-} /
\tau \right)} \right)}_{\text{Softmax 概率}}\)