__chaz

Wake up, Neo... The Matrix has you...

导航

2026年7月23日

摘要: —————————————————————————————— 那个秋天,我搬进了上西区一座带有铸铁电梯的老公寓。 在此之前,我换了号码,并设置了未知呼叫拦截。我注销了所有社交账号,又像以往无数次做过的那样,清空了手机相册。 我是在一个傍晚搬进去的。在之前的一个夜晚,我曾去粗略看过,当时家具还覆盖着白 阅读全文

posted @ 2026-07-23 16:12 __chaz 阅读(2) 评论(0) 推荐(0)

2026年7月12日

摘要: 示例代码 以 LeetCode 714. 买卖股票的最佳时机含手续费为例: class Solution { public: int maxProfit(vector<int>& prices, int fee) { // x(或y)表示第i天结束后不持有股票(或持有股票)(等价加速1:第0天空转) 阅读全文

posted @ 2026-07-12 23:50 __chaz 阅读(10) 评论(0) 推荐(0)

2026年7月6日

摘要: 根据 Lewis Baker 的 C++ 协程系列文章,写了一些示例代码。 generator https://lewissbaker.github.io/2018/09/05/understanding-the-promise-type #include <atomic> #include <ch 阅读全文

posted @ 2026-07-06 19:13 __chaz 阅读(4) 评论(0) 推荐(0)

2018年12月5日

摘要: 拉格朗日乘子法 对于含有等式约束的优化问题: \( \underset{x}{\operatorname{\mathop{\min}}} f(x)\ \ {\operatorname{s.t.}}\ h_i(x)=0, i = 1,2,...,m \),在等式 \( h_i(x) = 0 \) 非常 阅读全文

posted @ 2018-12-05 20:57 __chaz 阅读(585) 评论(0) 推荐(1)

2018年12月1日

摘要: 间隔与支持向量 1. 样本集 \( D = \{ (x_1,y_1), (x_2,y_2), ..., (x_m,y_m) \} \),\( x \in R^d \),\( y \in \{-1, +1\} \) 线性可分。支持向量机在几何上的含义就是,由法向量 $ w $ 和偏移 $ b $ 唯一 阅读全文

posted @ 2018-12-01 17:56 __chaz 阅读(568) 评论(0) 推荐(0)