最新 最热

Python 系列文章 —— queue

queue_common_function_demoimport queueq = queue.Queue()q.put(100)q.put(200)q.qsize() # 获取队列大小,此处结果为 2import queueq = queue.Queue(maxsize=1)q.empty() #...

2022-01-13
1

机器学习大牛是如何选择回归损失函数的?

无论在机器学习还是深度领域中,损失函数都是一个非常重要的知识点。损失函数(Loss Function)是用来估量模型的预测值 f(x) 与真实值 y 的不一致程度。我们的目标就是最小化损失函数,让 f(x) 与 y 尽量接近。通常可以使用...

2022-01-12
1

fiddler自定义显示目标IP和时间

点击菜单栏Rules->CustomRules然后按Ctrl+F搜索 static function Main() 即可看到如下内容,粘贴规则:

2022-01-12
1

Leetcode 题目解析之 H-Index

Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.

2022-01-10
1

Leetcode 题目解析之 Count Primes

As you can see, calculations of 4 × 3 and 6 × 2 are not necessary. Therefore, we only need to consider factors up to √n because, if n is divisible by some numbe...

2022-01-10
1

Leetcode 题目解析之 Bulls and Cows

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your frie...

2022-01-10
1

Leetcode 题目解析之 Search in Rotated Sorted Array II

Follow up for "Search in Rotated Sorted Array":

2022-01-10
1

Laravel笔记

1.Laravel在truncate表的时候,如果有外键,先把约束检查关掉再清空表。如:

2022-01-10
1

Leetcode 题目解析之 Remove Duplicates from Sorted Array II

Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given

2022-01-09
1

Leetcode 题目解析之 Remove Duplicates from Sorted Array

Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.

2022-01-09
1