自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(435)
  • 收藏
  • 关注

原创 optuna强于hyperopt的原因

optuna强于hyperopt的原因

2022-09-20 21:33:48 329 1

原创 DataFrame中删除重复列(即保留重复列的其中一列)的解决方法

2022-09-20 18:45:25 3317

原创 SQL求互关的对数

-- Table structure for `tst`-- ----------------------------DROP TABLE IF EXISTS `tst`;CREATE TABLE `tst` (`uid` int(10) NOT NULL,`uuid` int(10) NOT NULL,`desc` varchar(50) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;-- ----------------...

2022-03-06 20:17:50 666 3

原创 根据日志求出每个用户访问过第一第二的位置(SQL实现)

select uid ,max(case when ranking = 1 then position end) as position1 ,max(case when ranking = 2 then position end) as position2 from( select * from( select uid ,position ,rank() over (partition by ...

2022-02-10 19:54:05 525

原创 文章同一位置引用多篇参考文献标注方法

文章同一位置引用多篇参考文献标注方法_XUERUFENG的博客-CSDN博客_几个参考文献一起怎么标注

2021-12-10 10:08:08 8076

原创 如何把Word英文默认字体设置成Times NewRoman汉字设置为宋体

如何把Word英文默认字体设置成Times NewRoman汉字设置为宋体https://jingyan.baidu.com/article/e75057f2ddef91ebc91a89f4.html

2021-11-16 22:28:40 3606

原创 2021-11-15

蚁群算法库 Python实现_hothydra的博客-程序员宅基地https://github.com/guofei9987/scikit-opt再次点赞老外开源社区

2021-11-15 10:14:18 110

原创 word中 插入visio对象显示不全的问题

word中 插入visio对象显示不全的问题_学之知之的博客-CSDN博客_visio粘贴到word显示不完全

2021-11-11 22:49:02 997

原创 matplotlib.pyplot的使用总结大全(入门加进阶)

matplotlib.pyplot的使用总结大全(入门加进阶) - 知乎

2021-11-10 21:27:21 282

原创 LSTM老外很棒的博客

LSTMhttps://colah.github.io/posts/2015-08-Understanding-LSTMs/

2021-11-06 19:38:17 141

原创 python中matplotlib的颜色及线条控制

python中matplotlib的颜色及线条控制(原)python中matplotlib的颜色及线条控制 - darkknightzh - 博客园

2021-11-05 14:55:39 208

原创 公式居中、编号右对齐

Word 2016 撰写论文(1): 公式居中、编号右对齐_TechArtisan6的博客-CSDN博客_word公式居中对齐,编号右对齐

2021-10-26 22:36:25 128

原创 kaggle比赛里面的融合多个模型和选取的时候选择相关性差的模型提升大的理论背景

机器学习比赛大杀器 ---- 模型融合 (stacking & blending) - AIQ

2021-10-23 10:03:41 203

原创 SciPy中的经典优化算法

SciPy中的经典优化算法 | msgsxj'blog

2021-10-22 21:05:58 732

原创 数学公式识别神器—Mathpix Snip

数学公式识别神器—Mathpix Snip - 知乎

2021-10-22 14:18:29 793

原创 论文写作点滴:合理和有效的引用参考文献

论文写作点滴:合理和有效的引用参考文献

2021-10-18 08:59:31 126

原创 word参考文献插入和上标设置

原来Word中插入参考文献,竟如此简单~Word批量设置论文参考文献标注以及选中所有数字_sax_157001的博客-CSDN博客

2021-10-17 16:23:17 1011

原创 图解设计模式

参考常用设计模式有哪些?

2021-09-27 09:14:08 90

原创 窗口函数: 排序篇

思路6:窗口函数实际上,在mysql8.0中有相关的内置函数,而且考虑了各种排名问题:row_number(): 同薪不同名,相当于行号,例如3000、2000、2000、1000排名后为1、2、3、4rank(): 同薪同名,有跳级,例如3000、2000、2000、1000排名后为1、2、2、4dense_rank(): 同薪同名,无跳级,例如3000、2000、2000、1000排名后为1、2、2、3ntile(): 分桶排名,即首先按桶的个数分出第一二三桶,然后各桶内从1排名,实际不是很

2021-08-29 15:41:41 207

原创 快速理解脏读、不可重复读、幻读和MVCC

参考

2021-08-10 13:44:42 129

原创 【模型评价指标】python的 MAP, RPrec, MRR, NDCG, MRR@10 计算代码_机器学习

参考

2021-07-27 18:03:23 1504

原创 python操作mysql自动发送数据邮件,让你工作效率翻倍

参考

2021-06-17 21:33:26 191

原创 【学习笔记】LightGBM Tuner: New Optuna Integration for Hyperparameter Optimization用optuna调参LightGBM

参考

2021-06-05 10:54:50 442

原创 【学习笔记】导入数据减少内存的办法

def reduce_mem_usage(df): """ iterate through all the columns of a dataframe and modify the data type to reduce memory usage. """ start_mem = df.memory_usage().sum() / 1024**2 print('Memory usage of dataframe is {:.2f} MB'.format(st

2021-06-04 11:01:48 148 2

原创 【问题解决】[W 10:37:59.074 LabApp] Permission to listen on port 8888 denied.

参考jupyter notebook --port 9999 问题解决

2021-06-03 10:39:17 917 1

原创 MAPE的实现方式

import numpy as npdef masked_mape_np(y_true, y_pred, null_val=np.nan): with np.errstate(divide='ignore', invalid='ignore'): if np.isnan(null_val): mask = ~np.isnan(y_true) else: mask = np.not_equal(y_true, nu.

2021-05-04 16:32:02 1006

原创 【剑指offer】56 - II、44、14-II

剑指 Offer 56 - II. 数组中数字出现的次数 II方法一:数学法叼炸天:c = (3(a+b+c)-(a+a+a+b+b+b+c))/2class Solution: def singleNumber(self, nums: List[int]) -> int: return (3*sum(list(set(nums)))-sum(nums))//2剑指 Offer 44. 数字序列中某一位的数字链接class Solution: def fi

2021-04-08 22:01:42 65

原创 【剑指offer】18、53-I、59-II

剑指 Offer 18. 删除链表的节点class Solution: def deleteNode(self, head: ListNode, val: int) -> ListNode: if head.val == val: return head.next pre, cur = head, head.next while cur and cur.val != val: pre, cur

2021-04-06 18:22:27 82

原创 windows远程桌面连接使用方法及技巧

参考

2021-03-29 11:07:30 152

原创 103. 二叉树的锯齿形层序遍历

103. 二叉树的锯齿形层序遍历# Definition for a binary tree node.# class TreeNode:# def __init__(self, val=0, left=None, right=None):# self.val = val# self.left = left# self.right = rightclass Solution: def zigzagLevelOrder(self,

2021-03-28 18:47:25 65

原创 剑指 Offer 36. 二叉搜索树与双向链表

剑指 Offer 36. 二叉搜索树与双向链表class Solution: def treeToDoublyList(self, root: 'Node') -> 'Node': def dfs(cur): if not cur: return dfs(cur.left) # 递归左子树 if self.pre: # 修改节点引用 s

2021-03-20 22:23:40 75

原创 【剑指offer】剑指 Offer 32 - II. 从上到下打印二叉树 II

剑指 Offer 32 - II. 从上到下打印二叉树 II# 此题利用了 python 的 双端队列deque,其 popleft方法可达到 O(1)的时间复杂度class Solution: def levelOrder(self, root: TreeNode) -> List[List[int]]: if not root:return [] res,queue = [],collections.deque() queue.appen

2021-03-18 22:32:46 127

原创 【leetcode]523. 连续的子数组和

523. 连续的子数组和class Solution: def checkSubarraySum(self, nums: List[int], k: int) -> bool: if k == 0: return any(nums[i] == 0 and nums[i+1] == 0 for i in range(len(nums) - 1)) mods, cum_sum_mod_k = {0:-1}, 0 for i

2021-03-18 22:08:37 74

原创 提高国内访问 GitHub 的速度的 9 种方案

参考

2021-03-17 12:04:26 208

原创 ubuntu如何实现双屏显示

参考

2021-03-14 11:46:02 626

原创 [Docker镜像] 关于阿里云容器镜像服务的使用(以天池比赛提交镜像为例)

参考艾兄的文章写的很好

2021-03-14 10:38:09 160

原创 【剑指offer】14-I

剑指 Offer 14- I. 剪绳子class Solution: def cuttingRope(self, n: int) -> int: dp = [None, 1] for m in range (2, n + 1): j = m - 1 i = 1 max_product = 0 while i <= j: max

2021-03-11 14:06:13 63

原创 【MT-链表】92

92. 反转链表 IIStep1:The part I need to reversed is node 2 to node 4, which has n - m + 1 = 3 nodes.Therefore, I would like to maintain a window with n - m + 1 nodes with the window’s head whead and window’s tail wtail, then if whead is head, wtail would be

2021-03-10 10:11:54 79

原创 【剑指offer】35、14-I、65、67、32-II

剑指 Offer 35. 复杂链表的复制class Solution: def copyRandomList(self, head: 'Node') -> 'Node': if not head: return dic = {} # 3. 复制各节点,并建立 “原节点 -> 新节点” 的 Map 映射 cur = head while cur: dic[cur] = Node(cur

2021-03-08 11:33:14 101

原创 【MT-链表】141、142、202、19、83、82

141. 环形链表class Solution: def hasCycle(self, head: ListNode) -> bool: try: slow, fast = head, head.next while slow is not fast: slow, fast = slow.next, fast.next.next return True

2021-03-06 20:13:50 141

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除