摘要:        
运行java 的main函数, 结果报错, classpath中没有把依赖包自动搞进来。 发现在run xx.main() 的配置也上, 需要把下面的勾打上。    
阅读全文
 
 
        
        posted @ 2020-03-25 12:50
bregman
阅读(357)
推荐(0)
        
 
		
    
        
        
摘要:        
看到别人文件中有下面代码, 类似获取 环境中的 globals 变量    
阅读全文
 
 
        
        posted @ 2020-03-24 17:36
bregman
阅读(136)
推荐(0)
        
 
		
    
        
        
摘要:        
看了 factorized TDNN paper:https://www.danielpovey.com/files/2018_interspeech_tdnnf.pdf 代码: https://github.com/cvqluu/Factorized TDNN 要点: 将列正交要求做到模型里。    
阅读全文
 
 
        
        posted @ 2020-03-20 15:47
bregman
阅读(209)
推荐(0)
        
 
		
    
        
        
摘要:        
例子1 cat > clean<<EOF #!/bin/bash cd \$(dirname \$0) ls | grep -E "\.(auc|log|aux|log|nav)$" | xargs rm -if {} EOF chmod +x clean 例子2, 下面命令类似功能git clea    
阅读全文
 
 
        
        posted @ 2020-02-28 12:12
bregman
阅读(271)
推荐(0)
        
 
		
    
        
        
摘要:        
稍微记一记, 提升效率. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf    
阅读全文
 
 
        
        posted @ 2020-02-17 20:32
bregman
阅读(116)
推荐(0)
        
 
		
    
        
        
摘要:        
Mac 下, 在右键菜单里, 通过直接点击压缩的方式产生的压缩包里包含一些无用的信息. 通过命令行可以避免一下. zip -r d2_pyodps.zip d2_pyodps zip 包路径可以做为python 包, 添加到python系统路径中使用。 import sys sys.path.ins    
阅读全文
 
 
        
        posted @ 2020-02-14 17:43
bregman
阅读(220)
推荐(0)
        
 
		
    
        
        
摘要:        
一个小样本的cvr 估计问题中, 考虑用xgboost 模型. 发现结果的估计偏差很大. 仔细研究后, 发现现象: * 迭代步数不多, 一般3,5步就停了. * 预测的分数偏差很大, 分布不匀. pcoc很大. 注: pcoc = 分数均值/ 正样本占比 - 1 * 类似的参数用 lightgbm跑    
阅读全文
 
 
        
        posted @ 2020-02-01 16:45
bregman
阅读(556)
推荐(0)
        
 
		
    
        
        
摘要:        
很早前用 MplayerX, 现在不能用了, 找到一个替代品 https://iina.io/. 挺不错。    
阅读全文
 
 
        
        posted @ 2020-01-10 13:45
bregman
阅读(132)
推荐(0)
        
 
		
    
        
        
摘要:        
两个函数细节记不住. 写个例子备注一下. 结果 | no | name | score | rk1 | rk2 | rn1 | rn2 | | | | | | | | | | 1 | b | 2 | 5 | 1 | 5 | 1 | | 1 | a | 1 | 3 | 2 | 3 | 2 | | 1     
阅读全文
 
 
        
        posted @ 2019-12-27 10:45
bregman
阅读(193)
推荐(0)
        
 
		
    
        
        
摘要:        
为了在笔记本里, 试用 tensorflow 新老版本, 摸索了conda对虚拟环境的管理方法. 记录一些命令如下: # 虚拟环境创建和删除 sudo conda create -n tf18 sudo conda search tensorflow sudo conda install -n tf    
阅读全文
 
 
        
        posted @ 2019-12-18 18:22
bregman
阅读(321)
推荐(0)
        
 
		
    
        
        
摘要:        
安装了 anaconda3, 自带spyder, 但是只能在terminal 中打开, 非常不友好. 模仿 anaconda3/目录下 Anaconda-Navigator.app, 制作了 spyder.app, 如下. 其中图标改动比较麻烦. 但可以通过自带命令得到. mkdir pngpic.    
阅读全文
 
 
        
        posted @ 2019-12-12 21:24
bregman
阅读(648)
推荐(0)
        
            
        
        
        
        posted @ 2019-12-12 15:49
bregman
阅读(1076)
推荐(0)
        
            
        
        
摘要:        
在vscode 中写python代码, 没有检查代码规范的提示, 原因可能是相关的包未安装. 解决办法如下: 1. 安装语法检查器(Linter), 比如flake8 ```bash conda install flake8 ``` 2. vscode配置页上注意修改. * 最新版,![image]    
阅读全文
 
 
        
        posted @ 2019-12-12 15:36
bregman
阅读(372)
推荐(0)
        
 
		
    
        
        
摘要:        
https://github.com/tuxu/ipynb quicklook    
阅读全文
 
 
        
        posted @ 2019-12-04 10:59
bregman
阅读(131)
推荐(0)
        
 
		
    
        
        
        
        posted @ 2019-11-30 22:17
bregman
阅读(137)
推荐(0)
        
            
        
        
摘要:        
ssh远程到ubuntu系统, 没有颜色. 原因是 .bashrc 配置没生效.    
阅读全文
 
 
        
        posted @ 2019-11-30 16:49
bregman
阅读(1368)
推荐(0)
        
 
		
    
        
        
摘要:        
1. 选择项目中某个函数名, 右键可以看到 copy reference, 点击完成复制symbol, 分享给别人. 2. shift + shift 打开打开一个对话框, 把分享的symbol粘贴上去, 可以跳到对应位置.    
阅读全文
 
 
        
        posted @ 2019-11-28 12:26
bregman
阅读(5365)
推荐(0)
        
 
		
    
        
        
摘要:        
linux子系统 1. 按照文档 https://www.jianshu.com/p/2bcf5eca5fbc 的前五步,完成 ubuntu子系统安装。 不需安装图形桌面,无使用价值。 2. 在https://www.anaconda.com/ 下载最新版的 "linux Anaconda3" ,     
阅读全文
 
 
        
        posted @ 2019-11-17 16:21
bregman
阅读(459)
推荐(0)
        
 
		
    
        
        
摘要:        
多任务学习, CTR, CVR 任务同时训练, 同时输出概率.    
阅读全文
 
 
        
        posted @ 2019-11-11 16:54
bregman
阅读(191)
推荐(0)
        
 
		
    
        
        
摘要:        
发现函数可以设置属性变量, 如下 newfunc.func , newfunc.args    
阅读全文
 
 
        
        posted @ 2019-11-07 12:27
bregman
阅读(130)
推荐(0)
        
 
		
    
        
        
摘要:        
看到别人的代码里用了 or, 有点巧用. 记录一下.    
阅读全文
 
 
        
        posted @ 2019-11-01 19:17
bregman
阅读(406)
推荐(0)
        
 
		
    
        
        
摘要:        
参考 https://www.jianshu.com/p/d3ea950f4191    
阅读全文
 
 
        
        posted @ 2019-10-18 13:51
bregman
阅读(66)
推荐(0)
        
 
		
    
        
        
摘要:        
新mac 用了 zsh, 代替bash. 配置文件的部分内容与.bash_profile的下不一致, 需要修改 .zprofile    
阅读全文
 
 
        
        posted @ 2019-10-10 20:34
bregman
阅读(270)
推荐(0)
        
 
		
    
        
        
摘要:        
解决问题: 
1.刚开机登录时,  键盘不停的输入同一个字符
2.4K屏幕下,像素缩放问题, 图标太小    
阅读全文
 
 
        
        posted @ 2019-09-21 21:23
bregman
阅读(251)
推荐(0)
        
 
		
    
        
        
摘要:        
一个商业软件, mac下画画图, 还挺好用的. 网上可以找到可用的注册码 https://blog.csdn.net/glw0223/article/details/90736751    
阅读全文
 
 
        
        posted @ 2019-09-05 12:04
bregman
阅读(185)
推荐(0)
        
 
		
    
        
        
摘要:        
介绍: http://adl.stanford.edu/aa222/Lecture_Notes_files/chapter6_gradfree.pdf Nelder–Mead 算法 direct 算法. https://ctk.math.ncsu.edu/Finkel_Direct/    
阅读全文
 
 
        
        posted @ 2019-08-14 10:37
bregman
阅读(921)
推荐(0)
        
 
		
    
        
        
摘要:        
根据pdf文件获取标题等信息,  处理kdd2019的论文pdf文档    
阅读全文
 
 
        
        posted @ 2019-08-12 17:17
bregman
阅读(734)
推荐(0)
        
 
		
    
        
        
摘要:        
算法 分配算法主要是解优化问题. 流量预测(traffic forecasting), 流量预估 库存分配, 粗力度的分配. 流量分配, 排单算法 在线分配(Online Allocation) 资料 "http://wulc.me/2017/04/25/计算广告笔记(2) 合约广告系统/" 合约广    
阅读全文
 
 
        
        posted @ 2019-08-07 09:47
bregman
阅读(754)
推荐(0)
        
 
		
    
        
        
摘要:        
| 概念 | 英文 | 中文 | 说明 | | | | | | | GD | Guarentee Delivery | 保证递送的广告, 即保量广告 | | | CTR | Click Through Rate | 点击通过率 | | | CVR | Conversion Rate | 转化率 |     
阅读全文
 
 
        
        posted @ 2019-08-05 12:02
bregman
阅读(1520)
推荐(0)
        
 
		
    
        
        
摘要:        
maxima 画图:  树, 爱心, 八卦    
阅读全文
 
 
        
        posted @ 2019-08-01 13:53
bregman
阅读(510)
推荐(0)
        
 
		
    
        
        
摘要:        
发现 scipy.optimize.linprog的算法支持: 单纯形法 和内点法, 在测试一个例子的时候, 运行不出来. 但在matlab中几个算法都可以. 单纯形法在matlab 已经不推荐使用. 现在用什么? 1. GNU Linear Programming Kit 2. CLP, http    
阅读全文
 
 
        
        posted @ 2019-07-31 11:05
bregman
阅读(2455)
推荐(0)
        
 
		
    
        
        
摘要:        
openai 一个页面看强化学习 https://lilianweng.github.io/posts/2018-04-08-policy-gradient/ chatgpt 中的PPO 策略 https://huggingface.co/blog/rlhf https://wandb.ai/ayu    
阅读全文
 
 
        
        posted @ 2019-07-26 17:40
bregman
阅读(268)
推荐(0)
        
 
		
    
        
        
摘要:        
评分卡模型的结果一般在excel中即可计算完成.    
阅读全文
 
 
        
        posted @ 2019-07-25 15:57
bregman
阅读(640)
推荐(0)
        
 
		
    
        
        
        
        posted @ 2019-07-18 10:09
bregman
阅读(595)
推荐(0)
        
 
		
    
        
        
摘要:        
https://www.jianshu.com/p/596b4463eacd    
阅读全文
 
 
        
        posted @ 2019-07-13 23:48
bregman
阅读(166)
推荐(0)
        
 
		
    
        
        
摘要:        
1. Dive into Deep Learning, 伯克利, https://github.com/d2l ai/d2l zh 2. 神经网络与深度学习, 复旦, https://github.com/nndl/nndl.github.io    
阅读全文
 
 
        
        posted @ 2019-07-02 16:32
bregman
阅读(126)
推荐(0)
        
 
		
    
        
        
摘要:        
Mac 下载 gnuplot 5.2.3 quartz.dmg, 见 http://ricardo.ecn.wfu.edu/pub/gnuplot/ 使用文档 http://www.gnuplot.info/docs_5.2/Gnuplot_5.2.pdf 直接基于 AquaTerm 1.1.1.d    
阅读全文
 
 
        
        posted @ 2019-06-17 13:51
bregman
阅读(359)
推荐(0)
        
 
		
    
        
        
摘要:        
环境: mint 19 或者 ubuntu 18 源代码安装的好处, 可以使用最新版。 mint 19.1 下面, 利用apt 直接安装的maxima版本太老,不支持 draw 函数。 安装maxima 安装依赖 从源代码安装 安装文档 安装 wxmaxima wxWidgets 准备 安装 wxm    
阅读全文
 
 
        
        posted @ 2019-06-15 13:23
bregman
阅读(1811)
推荐(0)
        
 
		
    
        
        
摘要:        
之前只知道 mathematica maple 想起数学机械化的事情, 找到中科院的 MMP 开源的有 maxima SymPy 这个估计比较简单 maxima的资料 http://maxima.sourceforge.net/documentation.html maxima 安装 在线使用 ht    
阅读全文
 
 
        
        posted @ 2019-06-12 17:21
bregman
阅读(606)
推荐(0)
        
 
		
    
        
        
摘要:        
使用很方便, 方便学习新语言, 并进行测试. 现在使用了4个插件. 1. Code Runner 2. go 3. Python 4. Swift Language 其中, python 支持很好, 可以完全代替 spyder, 同时支持远程 Jupyter server. 在命令面板设置: Pyt    
阅读全文
 
 
        
        posted @ 2019-05-30 21:19
bregman
阅读(183)
推荐(0)