<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>编程 on 桑峰</title><link>https://isangfeng.github.io/categories/%E7%BC%96%E7%A8%8B/</link><description>Recent content in 编程 on 桑峰</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>© 2026 桑峰</copyright><lastBuildDate>Mon, 08 Apr 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://isangfeng.github.io/categories/%E7%BC%96%E7%A8%8B/index.xml" rel="self" type="application/rss+xml"/><item><title>R语言中的异常处理：TryCatch</title><link>https://isangfeng.github.io/posts/2024/2024-04-08_trycatchinr/</link><pubDate>Mon, 08 Apr 2024 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2024/2024-04-08_trycatchinr/</guid><description>TryCatch in R</description></item><item><title>周总结-tibble中添加行</title><link>https://isangfeng.github.io/posts/2023/09/20230920_weeklynotes/</link><pubDate>Wed, 20 Sep 2023 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2023/09/20230920_weeklynotes/</guid><description>&lt;h2 class="relative group"&gt;Add a new row into a empty tibble in R
 &lt;div id="add-a-new-row-into-a-empty-tibble-in-r" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#add-a-new-row-into-a-empty-tibble-in-r" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;There is a simple example below.&lt;/p&gt;</description></item><item><title>周总结-DICE分数</title><link>https://isangfeng.github.io/posts/2023/06/notes_202206/</link><pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2023/06/notes_202206/</guid><description>&lt;h2 class="relative group"&gt;两个集合计算DICE分数并评估显著性
 &lt;div id="两个集合计算dice分数并评估显著性" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e4%b8%a4%e4%b8%aa%e9%9b%86%e5%90%88%e8%ae%a1%e7%ae%97dice%e5%88%86%e6%95%b0%e5%b9%b6%e8%af%84%e4%bc%b0%e6%98%be%e8%91%97%e6%80%a7" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;假设有两个集合X和Y，它们的DICE分数是X和Y交集的元素个数与X和Y并集元素个数比值再乘2. 它的显著性可以通过将X和Y的元素放在一起后，再随机抽取出与X和Y集合相同元素的集合，并计算DICE分数。通过多次抽取，构建DICE的零分布，并计算真实的DICE分数在分布中的位置，来得到显著性。&lt;/p&gt;</description></item><item><title>周总结-数据转换</title><link>https://isangfeng.github.io/posts/2023/05/weeklynotes21/</link><pubDate>Thu, 25 May 2023 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2023/05/weeklynotes21/</guid><description>&lt;h2 class="relative group"&gt;转换数据
 &lt;div id="转换数据" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e8%bd%ac%e6%8d%a2%e6%95%b0%e6%8d%ae" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;问题：假设有两组数据X和Y，要求转换Y，使得转换后的Y曲线下面积与X的曲线下面积相同。&lt;/p&gt;</description></item><item><title>周总结-并行/annot文件/ggplot2字体</title><link>https://isangfeng.github.io/posts/2021/2021-09-03-weeklysummary/</link><pubDate>Fri, 03 Sep 2021 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2021/2021-09-03-weeklysummary/</guid><description>&lt;h2 class="relative group"&gt;Python并行处理
 &lt;div id="python并行处理" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#python%e5%b9%b6%e8%a1%8c%e5%a4%84%e7%90%86" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Python 中的concurrent包提供了对于并行运行的接口，包括进程级并行和线程级并行。下面是一个例子。&lt;/p&gt;</description></item><item><title>远程Jupyter Notebook设置</title><link>https://isangfeng.github.io/posts/2021/2021-06-24-remotejupyter/</link><pubDate>Thu, 24 Jun 2021 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2021/2021-06-24-remotejupyter/</guid><description>&lt;p&gt;通过Jupyter可以使用远端服务器的计算资源，以下是设置步骤。&lt;/p&gt;</description></item><item><title>Python函数参数中的“*”</title><link>https://isangfeng.github.io/posts/2021/2021-06-17-python/</link><pubDate>Thu, 17 Jun 2021 00:00:00 +0000</pubDate><guid>https://isangfeng.github.io/posts/2021/2021-06-17-python/</guid><description>&lt;p&gt;Python中，*除了可用于乘法和乘方运算外，还可以把它放在函数形式参数的前面，用来传递多个参数或进行参数的拆解。下面简单介绍后者的用法。&lt;/p&gt;</description></item></channel></rss>