1前言最近参加了一些比赛,也看了一些国外比赛的题解文章,感觉学到很多东西,于是在此总结一下2some trick in ssrf1trick1 filter_var() bypass之前看到一篇文章,觉得写得很不错,于是在此总结一下比如说如下代码<?php $url = $_GET['url']; echo "Argument: ".$url."\n"; if(filter
原创 2023-07-21 10:35:34
70阅读
Machine Learning Trick of theDay (1): Replica Trick'Tricks' of all sorts are used throughoutmachine learning, in both research and in production setti...
转载 2015-09-04 19:28:00
79阅读
CF原教程:[Tutorial] Slope Trick - Codeforces 目前做的题都是与$|x-k|\(有关,转移时主要关注最低点,用堆上的每个元素代表一次斜率\)+1$,但是具体最低点多高不太好搞。 据说有的毒瘤题得拿splay维护。。感觉自己不太行 因为网上题解我有很多都看不懂所以就 ...
转载 2021-07-15 19:41:00
135阅读
2评论
目录Sample() is not differentiableReparameterization trickToo ComplexSample() is not differentiable现在我们得到的不是一个向量,得到的是一个分布,而分布是无法使用梯度下降的Reparameterization trickToo Complex
原创 2021-04-15 16:02:33
383阅读
Pay special attention to memory management and learn about the tricks that console developers have been using for years. Become great
转载 2009-12-08 13:53:08
322阅读
目录Sample() is not differentiableReparameterization trickToo Complex Sample() is not differentiable 现在我们得到的不是一个向量,得到的是一个分布,而分布是无法使用梯度下降的 Reparameteriza
转载 2020-12-11 23:55:00
918阅读
2评论
Machine Learning Trick of theDay (2): Gaussian Integral TrickToday's trick, theGaussian integral trick, is one that allows us to re-expressa (potentia...
转载 2015-09-04 19:53:00
59阅读
1. 查看模型每层输出详情 from torchsummary import summary summary(your_model, input_size = (channels, H, W)) input_size是根据你自己的网络模型的输入尺寸进行设置。 2. 梯度裁剪 import torch
转载 2020-09-20 12:03:00
96阅读
2评论
级数收敛Trick若:∑n=1∞un\sum\limits_{n=1}^{\infty}u_nn=1∑∞​un​收敛。则∑n=1∞(−1)nun\sum\limits_{n=1}^{\infty}(-1)^{n}u_nn=1∑∞​(−1)nun​ 不一定收敛。总结如下:一个常见的Trick:两个数列:an,bn,lim⁡n→∞an=0a_n,b_n,\lim\limits_{n\rightarrow \infty} a_n=0an​,bn​,n→∞lim​an​=0则,若∑n=1∞∣bn∣
原创 2022-01-20 11:56:57
165阅读
m\limits_{n\rightarrow \infty} a_n=0an​,bn​,n→∞lim​an​=0则,若∑n=1∞∣bn∣
原创 2021-11-16 13:35:24
147阅读
Card Trick题目描述The magician shuffles a small pack of cards, holds it face down and performs the following procedure:1. The top card is moved to the bottom of the pack. The new top card is dealt fa...
原创 2022-03-10 15:52:15
134阅读
某神奇的函数合并算法——Slope trick。 Codeforces 原文链接 梗概: 对于那么对于一个函数,我们称之为可Slope ,当且仅当函数图像是一个凸包或一条直线。 不失一般性,我们只考虑下凸包。 显然这个函数可以写作一个分段函数。 但是这样写效率太低,我们换一种描述方式。 首先我们记录 ...
转载 2021-10-04 17:03:00
460阅读
2评论
GPU编号、...
本文包含一些常见算法的使用技巧。 I.树上最小拓扑序(瞎起名字*1) 本方法适用于一类问题,它要求对一棵树求出它的某种拓扑序${p}$,使得对于排列定义的函数$w\Big({p}\Big)\(有\)\min/\max$。 具体来说,我们会发现这个拓扑序中有一些点,是会在父亲节点被选入拓扑序后立即被选
转载 2021-04-01 12:24:00
101阅读
2评论
https://stackoverflow.com/questions/2802055/what-does-the-construct-x-x-y-mean What is the double pipe operator (||)? The double pipe operator (||) is
转载 2018-08-03 09:28:00
125阅读
2评论
\(\rm{Slope\ trick}\) 并不是一个特别的 \(\rm{algorithm}\),只是一个朴素维护折线的方式 一类题目中要维护一类特殊的分段函数,满足函数连续,每段都是一次函数,斜率为整数 从一道ABC题目开始 ABC127H 设 \(dp_{i,j}\) 表示经过前 \(i\) ...
在python的函数中偶尔会看到函数定义的上一行有@functionName的修饰,当解释器读到@这样的修饰符的时候会优先解除@后的内容,直接就把@的下一行的函数或者类作为@后边函数的参数,然后将返回值赋给下一个修饰的函数对象。###示例代码def function_1(A): print("function_1")def function_2(B): print(B(3...
文章目录一、特征工程流程二、类别编码方法三、特征交叉四、特征筛选一、特征工程流程结构化比赛、
原创 2022-07-14 10:03:46
258阅读
https://leetcode.com/problems/largest-number/参考 http://yucoding.blogspot.hk/2015/03/leetcode-question-largest-numbe15/01/13/leetcode-largest-number/
原创 2023-06-29 09:57:47
24阅读
内核策略是机器学习中的一项关键技术,主要用于将非线性问题转化为线性问题,通过在高维特征空间中进行线性操作
  • 1
  • 2
  • 3
  • 4
  • 5