摘要: 尝试恢复 grub 界面 按e 编辑, ro 后加上 splash nomodeset 按快捷键ctl + alt + F1, 或者 ctl + alt + F2 或者 其他 F3可以图形登录 删除nvidia 相关, reboot 后可以登录图形界面 sudo apt-get remove nvi 阅读全文
posted @ 2024-05-13 01:01 bregman 阅读(9) 评论(1) 推荐(0) 编辑
摘要: 配置conda代理 $ cat ~/.condarc # https://help.mirrors.cernet.edu.cn/anaconda/ ubuntu@ubuntu-Z790-UD:/opt$ cat ~/.condarc channels: - defaults show_channel 阅读全文
posted @ 2024-05-03 15:38 bregman 阅读(7) 评论(1) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- encoding:utf-8 -*- import tempfile import sys import os import subprocess import logging import re __all__ = ["run", "quer 阅读全文
posted @ 2024-03-12 10:37 bregman 阅读(3) 评论(0) 推荐(0) 编辑
摘要: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_network Instal 阅读全文
posted @ 2024-03-10 09:10 bregman 阅读(6) 评论(1) 推荐(0) 编辑
摘要: https://help.aliyun.com/document_detail/206889.html 阅读全文
posted @ 2024-01-12 13:56 bregman 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 用pytorch 2.2 快了不少 参考 https://pytorch.org/blog/compiling-numpy-code/ 在mac M2 机器上, 快了50%, 但没有好几倍。可能和依赖libomp有关 brew install libomp python test_np.py tes 阅读全文
posted @ 2023-10-23 19:23 bregman 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 双样本T检验代码, 对应数学原理 https://online.stat.psu.edu/stat415/lesson/11/11.2 import numpy as np # noqa from scipy import stats from scipy.stats import beta bas 阅读全文
posted @ 2023-10-11 16:18 bregman 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 比较pdf差别 https://vslavik.github.io/diff-pdf/ brew install diff-pdf 使用 diff-pdf --view a.pdf b.pdf # or diff-pdf --output-diff=diff.pdf a.pdf b.pdf 阅读全文
posted @ 2023-09-22 14:45 bregman 阅读(65) 评论(0) 推荐(0) 编辑
摘要: ### online mirror descent algorithm * 参考 https://tlienart.github.io/posts/2018/10/27-mirror-descent-algorithm/ * 这本书有详细介绍 http://www.cs.cmu.edu/afs/cs 阅读全文
posted @ 2023-09-08 14:25 bregman 阅读(9) 评论(1) 推荐(0) 编辑
摘要: * 行列式 $ \begin{array}{|cc|} a_1 & a_2 \\\\ b_1 & b_2 \end{array} = a_1b_2 - b_1a_2$ 的几何意义, 等于下面平行四边形OPGQ的面积. 根据辅助线可以简单证明。 ![image](https://img2023.cnb 阅读全文
posted @ 2023-09-07 10:35 bregman 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 以下摘自 https://zhuanlan.zhihu.com/p/642693808 * 考虑一个可微函数 $f: \mathbb{R}^{n} \rightarrow \mathbb{R}, \operatorname{dom} f=\mathbb{R}^{n}$ 对某一点 $\left(x_{ 阅读全文
posted @ 2023-09-06 14:58 bregman 阅读(313) 评论(0) 推荐(0) 编辑
摘要: ## mintlinux安装docker * 用 Aliyun 代理 ```bash # step 1: 安装必要的一些系统工具 sudo apt update sudo apt -y install apt-transport-https ca-certificates curl software 阅读全文
posted @ 2023-09-02 09:21 bregman 阅读(135) 评论(0) 推荐(0) 编辑
摘要: cgtn https://live.cgtn.com/500/prog_index.m3u8 https://github.com/fanmingming/live/blob/main/tv/m3u/ipv6.m3u https://raw.githubusercontent.com/fanming 阅读全文
posted @ 2023-08-11 15:05 bregman 阅读(36) 评论(0) 推荐(0) 编辑
摘要: * ortools 中提供了一个文档介绍快速具体算法 https://developers.google.cn/optimization/lp/lp_advanced?hl=en 其中实现了一个迭代法 PDLP, 对于低精度,以及给定初值的情况应该比较有利。 文档没有提供例子, 但代码路中有例子: 阅读全文
posted @ 2023-07-26 01:00 bregman 阅读(149) 评论(1) 推荐(0) 编辑
摘要: 看到一个github上搭建的博客, 很漂亮, https://adaning.github.io/tags/ 有机会可以搞一个。 参考它上面的提示 Powered by Hexo | Theme Matery 阅读全文
posted @ 2023-07-25 13:09 bregman 阅读(13) 评论(0) 推荐(0) 编辑
摘要: * https://www.microsoft.com/en-us/research/blog/three-mysteries-in-deep-learning-ensemble-knowledge-distillation-and-self-distillation/ 阅读全文
posted @ 2023-07-25 11:21 bregman 阅读(12) 评论(0) 推荐(0) 编辑
摘要: ps aux | grep test_streaming.py | sed -E 's/\s+/ /g; $d' | cut -d ' ' -f 2 | xargs -i kill -s 9 {} # linux ps ax | grep netron | sed -r 's/\s+/#/g;/gr 阅读全文
posted @ 2023-07-19 12:28 bregman 阅读(5) 评论(0) 推荐(0) 编辑
摘要: ## 固件 * [下载](https://www.123pan.com/s/Q968Vv-MuUK3)解压固件文件, 复制 360f5 1141 那个版本至桌面, ## 方法1. 连网线升级固件步骤(忽略,直接方法2) 1. 固件复制桌面后, 拔掉路由WAN口网线,然后电脑到路由由LAN口连根线, 阅读全文
posted @ 2023-07-03 10:34 bregman 阅读(686) 评论(0) 推荐(0) 编辑
摘要: * 错误 ![image](https://img2023.cnblogs.com/blog/698752/202307/698752-20230701050756453-2131891592.png) * 解决方法: 通过和之前可以的任务对比,发现其中有Add dependencies with 阅读全文
posted @ 2023-07-01 05:11 bregman 阅读(387) 评论(0) 推荐(0) 编辑
摘要: ```python import time import tensorflow as tf tf.compat.v1.disable_eager_execution() #%% 平均2.7秒。 发现conda 创建tf1.15 速度非常慢,应该环境配置有问题 A = tf.linalg.svd(tf 阅读全文
posted @ 2023-05-16 14:14 bregman 阅读(55) 评论(0) 推荐(0) 编辑
摘要: ```python # %% import jax import jax.numpy as jnp import numpy as np def loss(params, r): lambda_a, lambda_s = params return jnp.maximum(r - lambda_a 阅读全文
posted @ 2023-05-13 13:26 bregman 阅读(23) 评论(0) 推荐(0) 编辑
摘要: * 代码 https://github.com/nepluno/lbfgsb-gpu * https://pages.mtu.edu/~struther/Courses/OLD/5630/Refs/StdOpt/Par_L-BFGS-B_CompGraphFei_2014.pdf * jax 下 的 阅读全文
posted @ 2023-05-10 18:50 bregman 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 读论文 Sequential Recommendation with Probabilistic Logical Reasoning 中碰到的问题。 结论大概是这样: 对于Beta分布,KL散度的公式为: $$D_{KL}(Beta(\alpha_1, \beta_1)||Beta(\alpha_2 阅读全文
posted @ 2023-04-27 15:31 bregman 阅读(124) 评论(0) 推荐(0) 编辑
摘要: * 命令: sudo ifconfig awdl0 down * 命令原理:注意影响隔空投送功能 此命令关闭的是awdl0网卡, 此网卡被应用于Airdrop, AirPlay等功能, 被苹果默认开启。此网卡开启会极 大影响WIFI, 但是对于电脑用户基本上不需要这些功能, 还有安全风险。 此命令的 阅读全文
posted @ 2023-04-18 17:22 bregman 阅读(394) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2023.cnblogs.com/blog/698752/202303/698752-20230319140456840-83129877.png) ```bash sudo modinfo vboxdrv sudo rm /lib/modules/5.15. 阅读全文
posted @ 2023-03-19 14:03 bregman 阅读(18) 评论(0) 推荐(0) 编辑
摘要: * https://crfm.stanford.edu/2023/03/13/alpaca.html * https://github.com/archersama/awesome-recommend-system-pretraining-papers * [A Comprehensive Surv 阅读全文
posted @ 2023-03-14 16:43 bregman 阅读(89) 评论(5) 推荐(0) 编辑
摘要: * 阿里妈妈技术 https://blog.csdn.net/alimama_Tech?type=blog * 深度点击率预估模型的One-Epoch过拟合现象剖析 * https://github.com/Z-Y-Zhang/one_epoch_phenomenon * 其他收集网站 https: 阅读全文
posted @ 2023-02-15 10:24 bregman 阅读(25) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2023.cnblogs.com/blog/698752/202302/698752-20230203135515320-35298912.png) * https://homepages.inf.ed.ac.uk/imurray2/pub/16choldif 阅读全文
posted @ 2023-02-03 13:57 bregman 阅读(24) 评论(1) 推荐(0) 编辑
摘要: * ODS: 操作型数据存储, 基础层 DW数据分层,由下到上为**DWD**,DWB,**DWS**。 - DWD:data warehouse details 细节数据层,是业务层与数据仓库的隔离层。主要对ODS数据层做一些数据清洗和规范化的操作。 - DWB:data warehouse ba 阅读全文
posted @ 2022-12-15 15:38 bregman 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 好几年前写的代码, 其中javascript代码找专业人员写的。 ```python #######页面 _HTML = ''' 效果分析%(bizdate)s 算法效果报告 bizdate=%(bizdate)s %(tabs)s %(contents)s 注意数据安全, 请勿转发!! 有问题联系 阅读全文
posted @ 2022-11-23 11:31 bregman 阅读(20) 评论(0) 推荐(0) 编辑
摘要: > f(x)可以并行计算的情况下,求优化 * gridsearch * hyperband 算法 https://blog.csdn.net/jose_M/article/details/106313669 * https://tanzu.vmware.com/content/blog/massiv 阅读全文
posted @ 2022-11-14 19:56 bregman 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 0. 官方教材 https://pytorch.org/tutorials/beginner/basics/tensorqs_tutorial.html 1. https://huhuhang.com/post/machine-learning/pytorch-basic-tutorials 2. 阅读全文
posted @ 2022-11-13 18:45 bregman 阅读(36) 评论(1) 推荐(0) 编辑
摘要: 特征数据压缩算法 阅读全文
posted @ 2022-09-23 18:01 bregman 阅读(54) 评论(0) 推荐(0) 编辑
摘要: * 用md5 ```python import hashlib _a = hashlib.md5(_model_file.encode('utf-8')).hexdigest() resource_name = f'tfmodel_{_a}.tar.gz' ``` * 不能缩短 ```python 阅读全文
posted @ 2022-08-20 00:13 bregman 阅读(53) 评论(0) 推荐(0) 编辑
摘要: * DARTS: DIFFERENTIABLE ARCHITECTURE SEARCH https://arxiv.org/pdf/1806.09055v2.pdf * An Introduction to Neural Architecture Search for Convolutional N 阅读全文
posted @ 2022-08-03 20:47 bregman 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 之前的一段java代码, 发现耗时有点高, java 同事做了优化。方法如下: 1. 写一个测试类, profileTest分析代码中各部分的耗时。 2. 把java的split 的代码用for循环 去处理。 最终耗时从16ms下降到9ms。 想了下 java split 慢, 可能是正则表达式原因 阅读全文
posted @ 2022-07-19 11:41 bregman 阅读(63) 评论(0) 推荐(0) 编辑
摘要: * https://www.tutorialspoint.com/rust/rust_tutorial.pdf 150页 * https://lise-henry.github.io/books/trpl2.pdf 600页 * https://edu.anarcho-copy.org/Progra 阅读全文
posted @ 2022-07-14 20:22 bregman 阅读(24) 评论(0) 推荐(0) 编辑
摘要: * tf.switch_case, 1.15 以后版本生效 * fast_net 中不能用 lambda 函数, 否则结果不一致。 ```python def fast_net(branch_index, branch_names=branch_names): import functools br 阅读全文
posted @ 2022-07-10 10:33 bregman 阅读(55) 评论(0) 推荐(0) 编辑
摘要: chrome 复制值比较简单。 firefox 复制请求头 比较容易。 cookie 可以通用。 阅读全文
posted @ 2022-05-10 11:30 bregman 阅读(202) 评论(0) 推荐(0) 编辑
摘要: > 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 阅读(157) 评论(0) 推荐(0) 编辑