上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: > mint linux 下使用virtualbox,安装了 Oracle_VM_VirtualBox_Extension_Pack-6.1.34.vbox-extpack 后。仍然无法使用usb。 * 如下处理。 可能只是最后一句生效了。 ```bash sudo groupadd usbfs s 阅读全文
posted @ 2022-05-02 18:26 bregman 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ``` s = settings;s.matlab.desktop.DisplayScaleFactor s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.2 ``` 阅读全文
posted @ 2022-04-23 08:56 bregman 阅读(63) 评论(0) 推荐(0) 编辑
摘要: mint linux中 刻录Windows系统盘 阅读全文
posted @ 2022-04-20 09:15 bregman 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 参考 tf.metrics.mean, 编写一个广告中常用的pcoc 度量,在tf.esitmator 模型中使用 ```python class Kmetrics(object): @staticmethod def pcoc(labels, predictions, weights=None, 阅读全文
posted @ 2022-04-19 15:56 bregman 阅读(61) 评论(0) 推荐(0) 编辑
摘要: * https://mathworld.wolfram.com/IncompleteGammaFunction.html#:~:text=is%20the%20exponential%20sum%20function,z%5D%20in%20the%20Wolfram%20Language.&tex 阅读全文
posted @ 2022-03-21 14:18 bregman 阅读(81) 评论(0) 推荐(0) 编辑
摘要: * CauseRec: Counterfactual User Sequence Synthesis for Sequential Recommendation, SIGIR 21 https://dl.acm.org/doi/pdf/10.1145/3404835.3462908 * CauseR 阅读全文
posted @ 2022-03-03 14:50 bregman 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 安装 sbcl-2.2.1 有点问题,尝试安装老版本 https://trac.macports.org/wiki/howto/InstallingOlderPort 阅读全文
posted @ 2022-02-23 11:26 bregman 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 《统计计算》书中, 包含 maxima 介绍, julia 语言介绍 https://www.math.pku.edu.cn/teachers/lidf/docs/statcomp/html/_statcompbook/maxima.html 阅读全文
posted @ 2022-02-22 10:52 bregman 阅读(91) 评论(0) 推荐(0) 编辑
摘要: * 北大, 《最优化:建模、算法与理论》, 2020 , https://bicmr.pku.edu.cn/~wenzw/optbook/opt1.pdf * 问题: 有哪些经典的问题是非凸的, 但是有最优解算法? 特征值问题 虽然看上去是非凸的, 但可以转化为凸的, 见 https://www.c 阅读全文
posted @ 2022-02-22 10:27 bregman 阅读(980) 评论(0) 推荐(0) 编辑
摘要: * https://blog.csdn.net/weixin_39769187/article/details/111584719 * 图标 https://github.com/atella43/m3u ![image](https://img2022.cnblogs.com/blog/69875 阅读全文
posted @ 2022-01-24 01:37 bregman 阅读(3319) 评论(0) 推荐(0) 编辑
摘要: 稀疏的string tensor 转dense, 每行一个值 ```python tf.sparse.to_dense(sp_x) ``` 或者 ```python def to_dense_mx1(sp): sp_x = tf.SparseTensor(indices=tf.concat((sp. 阅读全文
posted @ 2022-01-21 17:51 bregman 阅读(62) 评论(0) 推荐(0) 编辑
摘要: mac下继续使用typora,每天试用,避免过期。。。 阅读全文
posted @ 2022-01-07 13:37 bregman 阅读(65) 评论(0) 推荐(0) 编辑
摘要: * 当前 mint linux 20.2,4K显示器, 2倍分辨率设置,鼠标大小无法调大。早一个版本也不行。 * 解决:系统设置 -> 主题 -> 鼠标指针, 换一个试试, 我选了Adwaita后, 终于解决。 ![image](https://img2020.cnblogs.com/blog/69 阅读全文
posted @ 2022-01-07 01:50 bregman 阅读(177) 评论(1) 推荐(0) 编辑
摘要: http://bolyai.cs.elte.hu/zsh-manual/zsh_14.html 在terminal 中输入 bindkey 查看一些快捷键, 比如: ESC + u : 单词大写 ESC + l : 单词小写 ESC + c : 首单词大写 阅读全文
posted @ 2021-12-28 17:06 bregman 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 这个算法应用最多 Deep Deterministic Policy Gradient(DDPG), 收集资料学习一下。 * 例子代码 https://keras.io/examples/rl/ddpg_pendulum/ * 算法解读 http://www.cs.sjsu.edu/faculty/ 阅读全文
posted @ 2021-12-28 14:33 bregman 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 想通过透视表进行两列之间的运算, 比如算ctr ,需要用到 计算字段。 阅读全文
posted @ 2021-12-16 14:50 bregman 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 论文: AutoDebias: Learning to Debias for Recommendation,2021 主要思想:加一个正则项, meta learning 方式学习超参数。 亮点,给出理论分析。 * https://github.com/DongHande/AutoDebias 阅读全文
posted @ 2021-12-09 10:55 bregman 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 花了2天学习 meta learning代码,记录一下。 > MAML学习一个好的初始化权重,从而在新任务上实现fast adaptation,即在小规模的训练样本上迅速收敛并完成fine-tune。 因此基于MAML的模型首先基于多个任务样本学习好的初始化权重。 第二阶段, 针对特定场景做 fin 阅读全文
posted @ 2021-12-08 14:55 bregman 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 跟我说mac上的微信登录不上去, 建议删除一些缓存目录。 ```bash find ~/Library/ -regex ".*WeChat[^/]*" -type d -maxdepth 3 | xargs -I{} rm -rf {} ``` 阅读全文
posted @ 2021-12-02 22:25 bregman 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 看TCA算法 https://www.cse.ust.hk/~qyang/Docs/2009/TCA.pdf 涉及的一些推导做一些整理。 背景介绍见 https://zhuanlan.zhihu.com/p/26764147 * 最大均值差异(MMD,maximum mean discrepancy 阅读全文
posted @ 2021-12-01 17:47 bregman 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 碰到 warning,如下 /home/tops/lib/python3.7/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; i 阅读全文
posted @ 2021-11-04 20:57 bregman 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 需要安装插件 pip install --upgrade jupyter_http_over_ws && \ jupyter serverextension enable --py jupyter_http_over_ws 启动 jupyter notebook \ --NotebookApp.al 阅读全文
posted @ 2021-10-14 10:53 bregman 阅读(143) 评论(0) 推荐(0) 编辑
摘要: opt_einsum, 爱因斯坦求和 jax, 算svd时比numpy 包快很多 flax 之前的一个问题, relu = max(x, 0) 在0点次梯度(不可导)的导数取了什么? 代码中是0。 import jax from jax.experimental import optimizers, 阅读全文
posted @ 2021-10-13 11:08 bregman 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ## 对偶问题 * 原问题 $$ \begin{align} \min_{x \in \cal D} f(x) \end{align} $$ 其中 ${\cal D} = \{x \in X: g_i(x) \leq 0, \ \ i = 1,2,\cdots, m\}$​. 一般的,这里$X = 阅读全文
posted @ 2021-08-30 14:10 bregman 阅读(370) 评论(1) 推荐(0) 编辑
摘要: ```python import json import base64 # 输入 x = dict(a=1, b='555', name='中文') # 编码 y = json.dumps(x, indent=2).encode('utf-8') with open('b64.txt', 'wb') 阅读全文
posted @ 2021-08-17 16:30 bregman 阅读(69) 评论(0) 推荐(0) 编辑
摘要: * 必须捕获与非必须捕获异常。 用RuntimeException 抛出提示 ```java try { // todo } catch (Exception e) { String message = String.format("record=%s,keys=%s",checkPoints, a 阅读全文
posted @ 2021-08-13 12:08 bregman 阅读(22) 评论(0) 推荐(0) 编辑
摘要: * logging 捕获异常 ```python try: main(CtrFgConf, p.local, p.debug, **Params) except Exception as e: logging.exception(f'{e}:当前TF版本不是paitf? 提交命令中加参数--nopa 阅读全文
posted @ 2021-07-30 14:30 bregman 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 资料收藏 * 深入互联网广告中的出价模式(3合1完整版) https://mp.weixin.qq.com/s/B-IXNecE5CL19wOx2tJENg 阅读全文
posted @ 2021-07-21 10:36 bregman 阅读(64) 评论(0) 推荐(0) 编辑
摘要: * https://wrfranklin.org/Research/Short_Notes/pnpoly.html 阅读全文
posted @ 2021-06-23 14:29 bregman 阅读(25) 评论(0) 推荐(0) 编辑
摘要: # 定义 * 函数 $f:\mathbb{R}^n\to\mathbb{R},$ 它在点 $x \in \mathbb{R}^n$上的梯度定义为 $\mathrm{grad}_x(f):=\left[\frac{\partial f}{\partial x_1},\frac{\partial f}{ 阅读全文
posted @ 2021-06-21 11:18 bregman 阅读(298) 评论(0) 推荐(0) 编辑
摘要: * 参考 https://github.com/tianheyu927/PCGrad/blob/master/PCGrad_tf.py * 定制优化函数,考虑多任务学习 https://arxiv.org/pdf/2001.06782.pdf 阅读全文
posted @ 2021-06-18 17:30 bregman 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1. 代码跳转. 如果不能跳转, 可能需要在.vscode/setting.json中加实际的代码路径,比如`"python.analysis.extraPaths": ["code"],` - tensorflow 1.15.0前后的版本,无法代码提示,解决办法为 ```bash # cd ~/. 阅读全文
posted @ 2021-06-11 16:54 bregman 阅读(3550) 评论(0) 推荐(0) 编辑
摘要: 如果 $A$ 是大小为 $m \times n$ 的实矩阵, $A$的精简形式的SVD分解为 $A = U\Sigma V^T$. 那么$A$的零空间,列空间, 行空间 分别为 ${\cal N}(A) = {\rm span}(V)^\perp$, ${\cal R}(A) = {\rm span 阅读全文
posted @ 2021-06-08 13:46 bregman 阅读(218) 评论(0) 推荐(0) 编辑
摘要: * 基于wine模式安装微信. 参考 https://github.com/zq1997/deepin-wine * 在4K屏幕下, 分辨率太高导致字体太小, 如下调整 ![image](https://img2020.cnblogs.com/blog/698752/202105/698752-20 阅读全文
posted @ 2021-05-02 00:19 bregman 阅读(968) 评论(1) 推荐(0) 编辑
摘要: 2023更新 这本不错 https://course.rs/about-book.html 加了代理 cat $HOME/.cargo/config.toml [source.crates-io] replace-with = 'rsproxy' [source.rsproxy] registry 阅读全文
posted @ 2021-04-27 16:30 bregman 阅读(60) 评论(1) 推荐(0) 编辑
摘要: 当前最新版本 5.44, 系统:macOS ### 安装 macports * 下载 MacPorts-2.6.4_1-11-BigSur.pkg 安装, 需要断网, 防止中间卡死。 * 配置国内代理, 配置文件中有提示。 # /opt/local/etc/macports/sources.conf 阅读全文
posted @ 2021-03-26 11:15 bregman 阅读(196) 评论(1) 推荐(0) 编辑
摘要: title: Dynamic Routing Between Capsules, NIPS 2017 author: Geoffrey E. Hinton url: [https://arxiv.org/abs/1710.09829](https://arxiv.org/abs/1710.09829 阅读全文
posted @ 2021-03-22 16:19 bregman 阅读(54) 评论(0) 推荐(0) 编辑
摘要: * 分辨率问题参考 https://blog.csdn.net/a1171936767/article/details/114324666 ```bash vim /opt/netease/netease-cloud-music/netease-cloud-music.bash # 增加分辨率参数, 阅读全文
posted @ 2021-03-21 13:03 bregman 阅读(70) 评论(2) 推荐(0) 编辑
摘要: * 输入法:fcitx * 系统环境:mint linux 20.1 * 解决方法:通过配置fcitx,延迟5秒解决. ![](https://img2020.cnblogs.com/blog/698752/202103/698752-20210321011234771-1551982576.png 阅读全文
posted @ 2021-03-21 01:13 bregman 阅读(264) 评论(0) 推荐(0) 编辑
摘要: ``` \begin{subequations}\label{eq:ctr_shale} \begin{align} \min \sum_{j, k} r_{k} n_{k} \frac{V_{j}}{\theta_{j}}\left(x_{k j} -\theta_{j}\right)^{2} + 阅读全文
posted @ 2021-02-08 17:01 bregman 阅读(3169) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页