minimal
SHARPNESS-AWARE MINIMIZATION FOR EFFICIENTLY IMPROVING GENERALIZATION论文阅读笔记
Intro 在训练集上最小化损失很可能导致泛化性低,因为当今模型的过参数化会导致training loss的landscape异常复杂且非凸,包含很多local/global minima,因此优化器的选择至关重要。loss landscape的几何性质(特别是minima的flatness)与泛化 ......
debian minimal轻量级linux
debian minimal 今天在实体机上安装debian 12 minimal安装了半天,快吐了。在安装界面选择安装镜像源之后,下载软件下载了几个小时,每次都很慢,试了几个源还是很慢,在虚拟机上安装也是这个样子。我换了debian 11 minimal的iso,也是这样。以后再也不用所谓的min ......
[Codeforces] CF1591C Minimize Distance
CF1591C Minimize Distance 题目 一条线上有 \(n\) (\(1 \le n \le 2 \cdot 10^5\))个仓库,第 \(i\) 个仓库的位置是 \(x_i\) (\(1 \le i \le n\))。 你有 \(n\) 箱货物,要分别运到这 \(n\) 个仓库里 ......
ABC330 C Minimize Abs 2 题解
Link ABC330 C Minimize Abs 2 Question 给定一个整数 D 求 \(|x^2+y^2-D|\) 的最小值,\(x,y\) 为非负整数 Solution 同时枚举 \(x,y\) 显然是不切实际的,考虑折半枚举 枚举 \(x^2\) 然后寻找接近 \(D-x^2\) ......
[ABC231E] Minimal payments 题解
题目传送门 一道贪心题。 感觉很裸啊,模拟赛时随便乱写了个暴力递归就能过。每次找最接近钱数 \(x\) 的面额 \(num\),如果比钱数少那么答案为剩下 \(x \bmod num\) 钱数的答案加上 \(x \div num\)。否则答案则为剩下 \(num-x\) 钱数的答案加上 \(1\)。 ......
快速展示原型之Minimal API开发
Minimal API官网地址: https://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/minimal-apis/security?view=aspnetcore-7.0 Minimal API 背景介绍 Minimal APIs 是指 ......
ASP.NET Core Minimal API之optional route parameter with default value and optional route parameter
public static void Main(string[] args) { var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); app.MapGet("/product/{name}", (s ......
【位运算】ABC281F Xor Minimization 题解
ABC281F 先将每一个 \(a_i\) 二进制拆分。 因为每一位的 \(\text{xor}\) 运算是互不影响的,于是可以考虑每一位。 从高位到低位考虑,因为 \(a_i < 2^{30}\),所以二进制状态下的 \(a_i\) 的长度是 \(\le 29\) 的。 假设在考虑 \(bit\) ......
[CF1654F] Minimal String Xoration
Minimal String Xoration 有点智慧但不是特别智慧反正是我达不到的智慧。 打表可以看出长度为 \(2^x\) 的 \(i\oplus k\) 出现次数为 \(2^{n-k}\)。 进一步发现,设 \(f(k,x)\) 当前选取 k 时,数列前 \(2^k\) 的下标。 则 \(f ......
A Minimal Rust Kernel
Feb 10, 2018 In this post, we create a minimal 64-bit Rust kernel for the x86 architecture. We build upon the freestanding Rust binary from the previo ......
Fox and Minimal path 题解
Fox and Minimal path 题目大意 构造一张无向图,使得从 \(1\) 到 \(2\) 的最短路数量为 \(k\)。 思路分析 我们首先可以发现当 \(k = 2^t\) 时的构造方式: 其中只有 \(O(\log k)\) 个点。 当 \(k\not = 2^t\) 时,我们可以将 ......
Graph transduction via alternating minimization
目录概符号说明GTAM交替优化求解 Wang J., Jebara T. and Chang S. Graph transduction via alternating minimization. ICML, 2008. 概 一种对类别不均更鲁棒的半监督算法. 符号说明 \(\mathcal{X}_ ......
论文解读(MTEM)《Meta-Tsallis-Entropy Minimization: A New Self-Training Approach for Domain Adaptation on Text Classification》
Note:[ wechat:Y466551 | 可加勿骚扰,付费咨询 ] 论文信息 论文标题:Meta-Tsallis-Entropy Minimization: A New Self-Training Approach for Domain Adaptation on Text Classific ......
Cisco Wireless - Disabling Access Point USB Port to Minimize Power Draw
Introduction In this article, we take a look at reducing the power used by some Cisco access point models, by disabling the built-in USB port, which i ......
P8099 [USACO22JAN] Minimizing Haybales P
> $n$ 个草垛排成一排,第 $i$ 个的高度为 $h_i$,两个草垛 $i, j$ 之间能够交换当且仅当 $|h_i - h_j| \le k$,求交换任意次后字典序最小的草垛排列。 $n, k \le 10^5, h_i \le 10 ^ 9$。 一道古老的湖北省内测试题。 我们注意到对于任意 ......
CF1491B Minimal Cost 题解
调了两个多小时终于过了,交一发题解。 ### 题目分析 如果你认真读题就会发现,这道题看似有很多种情况,但障碍的移动方式其实只有几种。 如果当所有障碍物都在一列时,可以将某一个障碍水平移动一格,再垂直移动一格或者水平移动两格,那么答案就是 v + min(u,v)。 当有通路时,则无需移动,答案就是 ......
使用ASP.NET Core Minimal API和MailKit发送电子邮件
#### 步骤1:创建新项目 通过以下命令在终端中创建一个新的ASP.NET Core Web API项目: dotnet new webapi -o SendingEmail 由于我们正在使用Minimal APIs,因此删除不必要的Controller文件夹和WeatherForecast类。 ......
洛谷 P8923 -『MdOI R5』Many Minimizations
怎么 ARC 还能撞题的?只能说 Kubic 牛逼。 首先显然没法保序回归。考虑用类似于凸壳优化 DP 的做法解决原问题(也就是 P4331): - 设 $dp_{i,j}$ 表示考虑前 $i$ 位,$x_i=j$ 的最小代价,显然有 $dp_{i,j}=\min_{k\le j}\{dp_{i-1 ......
题解 Yet Another Minimization Problem
[Yet Another Minimization Problem](https://www.luogu.com.cn/problem/CF868F) 神仙题。 第一眼看上去就是 DP。 定义 $f_{i,j}$ 表示当前点 $i$,分 $j$ 段的最小费用。 $f_{i,j}= \min(f_{i ......
luogu P8923 『MdOI R5』Many Minimizations
[题面传送门](https://www.luogu.com.cn/problem/P8923) 这不是保序回归板子吗( 首先你拿保序回归通法做这个题那是一点前途没有,所以你考虑一点更优秀的方法。 众所周知保序回归 $L_{2k+1}$ 问题可以slope trick。考虑设 $f_{i,j}$ 表示 ......
Regret Minimization Experience Replay in Off-Policy Reinforcement Learning
**发表时间:**2021 (NeurIPS 2021) **文章要点:**理论表明,更高的hindsight TD error,更加on policy,以及更准的target Q value的样本应该有更高的采样权重(The theory suggests that data with highe ......
CentOS grub引导损坏 Minimal BASH-like line editing is supported.For the first word.TAB lists possible command completions.Anywhere else TAB lists possible deyice or file completions.
这是 GRUB boot loader 的命令行提示。它可能出现在以下情况中: 系统没有正确引导 启动项配置不正确 硬盘分区有问题 GRUB 配置有误等 为了解决这个问题,你需要做的是恢复 GRUB。以下是一般步骤,适用于大多数 Linux 发行版(如 Ubuntu): 启动 Live CD - 首 ......
「CF1637H」Minimize Inversions Number
# 题目 [点这里](https://codeforces.com/problemset/problem/1637/H)看题目。 给定一个 $1\sim n$ 的排列 $p$。 你可以进行下列操作正好一次: - 选定 $p$ 的一个长度为 $k$ 的子序列,并将其按照相同的顺序移动到 $p$ 的最前 ......
AtCoder Regular Contest 153 E Deque Minimization
[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc153_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc153/tasks/arc153_e "AtCoder 传送门") 我们考虑给定 $X ......
CF1637H Minimize Inversions Number
我直接?????????????????? 考虑一个数怎么做,就是逆序对减去一个 $i$ 前面的逆序对再加上顺序对。考虑很多数怎么做,就是这个玩意的和再加上子序列种的顺序对减去逆序对,顺序对可以用逆序对表示,现在只考虑顺序对。 **注意到**,如果 $ip_j$ 且 $i$ 在子序列中 $j$ 不在 ......
Yet Another Minimization Problem(CF1637D)
## $\text{Des}$ You are given two arrays $ a $ and $ b $ , both of length $ n $ . You can perform the following operation any number of times (possibl ......
[ICDE 2023] Minimizing the Influence of Misinformation via Vertex Blocking
# Minimizing the Influence of Misinformation via Vertex Blocking ## Motivation and Application 其实就是经典的Rumor Blocking问题,即通过一系列的操作使得rumor在社交网络中的影响力最小。主流 ......
AtCoder Regular Contest 130 C Digit Sum Minimization
[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc130_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc130/tasks/arc130_c "AtCoder 传送门") 分类讨论,但是写起 ......
迁移学习《mixup: Beyond Empirical Risk Minimization》
论文信息 论文标题:mixup: Beyond Empirical Risk Minimization论文作者:Takeru Miyato, S. Maeda, Masanori Koyama, S. Ishii论文来源:2018 ICLR论文地址:download 论文代码:download视屏讲 ......