自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (1)
  • 收藏
  • 关注

原创 推荐系统学习路线

1. 基础知识学习STF 机器学习视频SKlearntensorflowC++李航2. 推荐系统知识推荐系统书籍推荐系统转向算法3. 通用知识算法数据结构

2020-06-10 23:45:08 662

原创 提升系统执行效率的经典方式

提升系统执行效率的经典方式:1. c++ 支持引用的方式,相对于传值的方法能较大的节省时间数参数使用传值 & 引用方式例如: string类 传值 函数会学习类的特性调用构造 和析构函数 极大程度的消耗函数执行效率引用的方式: 直接接触对象,不会造成传值问题2. 内联函数函数的频繁调用会造成高频的栈现场保护, 去指定函数地址开栈, 清栈, 回到现场地址继续执行等动作, 执行地址的偏移会造成执行效率下降使用内联函数在编译的过程可以函数编译到调用函数处,实际运行过程中就不在做执行地址的偏移

2020-06-06 10:34:02 398

原创 413. 等差数列划分

都是连续的 数组才 ++动态规划 注意边界值class Solution(object): def numberOfArithmeticSlices(self, A): sizeof_input = len(A) if sizeof_input < 3: return 0 dp = [0] * sizeof_...

2019-07-29 12:48:20 91

原创 Range Sum Query - Immutable

不占用另存资源破坏原有数据class NumArray(object): def __init__(self, nums): self.sums = nums for i in range(1, len(nums)): self.sums[i] += self.sums[i-1] def sumRange(self, i, j): if...

2019-06-12 09:00:37 69

原创 Odd Even Linked List

感觉写的还不错 好多坑 PYTHON 居然有next 保护 神奇class ListNode(object): def __init__(self, x): self.val = x self.next = Noneclass Solution(object): def oddEvenList(self, head): if head == None: ...

2019-06-12 00:41:02 73

原创 目标 做到累加 linst

2019-04-18 13:46:49 245

原创 改善深层神经网络:超参数调试、正则化以及优化

结构化机器学习项目1.2 正交化修改某个维度的比那两 不能影响其他维度正交化 不同维度 评估 防止评估项存在过多偏正mini - batch 为解决梯度下降方法卷积神经网络Padding 设置 滤波器Vaild 卷积 和 Same 卷积过滤器 均为 奇数...

2019-04-04 09:27:13 108

原创 Repeated DNA Sequence

字典存储一下class Solution(object): def findRepeatedDnaSequences(self, s): """ :type s: str :rtype: List[str] """ if len(s) <= 10: return [] ...

2019-04-01 16:47:30 113

原创 Validate Binary Search Tree

描述的树的中序历遍有改进方法class Solution(object): def isValidBST(self, root): self.list = [] self.inorder(root) for index in range(1, len(self.list)): if self.list[index] &l...

2019-03-30 15:18:32 58

原创 Merge Two Binary Trees

功能驱动迭代class Solution(object): def mergeTrees(self, t1, t2): if not t1 and not t2: return if t1 and not t2: return t1 if t2 and not t1: return t2 t1.val = t1....

2019-03-28 15:29:22 147

原创 Uncommon Words from Two Sentences

只出现过一次#Uncommon Words from Two Sentencesclass Solution(object): def uncommonFromSentences(self, A, B): """ :type A: str :type B: str :rtype: List[str] """...

2019-03-27 10:47:01 161

原创 Fair Candy Swap

import mathclass Solution(object):def fairCandySwap(self, A, B):“”":type A: List[int]:type B: List[int]:rtype: List[int]“”"if not A or not B:return []A_sum = sum(A)B_sum = sum(B)result = A...

2019-03-27 10:45:58 157

原创 Powerful Integers

import mathclass Solution(object): def powerfulIntegers(self, x, y, bound): pow = [] x1 = int(math.log(bound, x)) if x!=1 else 1 y1 = int(math.log(bound, y)) if y!=1 else ...

2019-03-25 15:13:19 165

原创 Univalued Binary Tree

class Solution(object): def isUnivalTree(self, root): if root == None: return True if self.Methon(root, root.val) == True: return False return True de...

2019-03-25 11:58:16 50

原创 Smallest Range I

看清楚题 想清楚思路再写吧class Solution(object): def smallestRangeI(self, A, K): return max(max(A)-min(A)-2*K,0)

2019-03-20 13:43:44 85

原创 Verifying an Alien Dictionary

字典排序:理解错了 以为每个单词都要排序 那就不用isWordOk 那个def了class Solution(object): def isAlienSorted(self, words, order): dict = {} for index in range(len(order)): dict[order[index]] = index if...

2019-03-20 13:30:38 128

原创 Linked List Cycle

成环 dict 内存 判断class Solution(object): def hasCycle(self, head): map = {} while head: if id(head) in map: return True map[id(head)] = True head = head.next return False...

2019-03-20 10:23:50 55

原创 Maximum Depth of Binary Tree

最大深度遍历每一个点 递归最easy了class Solution:def maxDepth(self, root):if root == None:return 0return 1 + max(self.maxDepth(root.left), self.maxDepth(root.right))

2019-03-19 22:47:04 56

原创 Path Sum

递归深度搜索一下就可以了class Solution: def hasPathSum(self, root, sum) -> bool: if root == None: return False if root.left == None and root .right == None: return root.val == sum ...

2019-03-19 22:31:52 47

原创 Remove Element

class Solution: def removeElement(self, nums: List[int], val: int) -&gt; int: j = len(nums) - 1 for i in range(len(nums)-1,-1, -1): if nums[i] == val: nums[j],nums[i]=nums[i...

2019-03-14 22:34:05 119

原创 Next Permutation

class Solution: def nextPermutation(self, nums):if len(nums) &lt;= 1: return numspartition = -1for i in range(len(nums)-2, -1, -1):if nums[i] &lt; nums[i+1]:partition = ibreakif partition ==...

2019-03-14 22:00:26 55

原创 Longest Substring Without Repeating Characters

class Solution:def lengthOfLongestSubstring(self, s: str) -&gt; int:left = 0right =0res = 0chars = dict()for right in range(len(s)):if s[right] in chars:left = max(chars[s[right]]+1, left)cha...

2019-03-14 13:55:47 56

原创 two sum

class Solution:def twoSum(self, nums, target):“”":type nums: List[int]:type target: int:rtype: List[int]“”"for i, num in enumerate(nums):reset = target - numrest_list = nums[i+1:]if reset in...

2019-03-14 11:35:16 73

原创 String to Integer

String to Integer:读取空格 读取 字符 读取数据计算判断是否达到极限A. &gt;7 || &gt;=7 || &gt;6 || &gt;=8B. &gt;8 || &gt;=8 || &gt;7 || &gt;=9____________ &gt; 7 为统一解class Solution:def myAtoi(self, str: str) -&gt; int:...

2019-03-14 09:53:36 70

原创 the world is too big

写给已经很艰难的你最重要的不是选一个最好的,最适合你的,重要的选一个先进行起来,时光不等人了。真切的感觉到你在这的意义。知道还有很多希望在,不要着急否认。吴恩达课程:笔记:github 适配:leetcode: 每天10 must我着急做 比赛:找一些domo 跑一下别再做哪些没有意义的事情了...

2019-03-13 22:06:25 127

原创 2019.3.13

9:20~10:00CSLB日志打印描述 定位

2019-03-13 09:24:28 64

原创 2019.02.26 daily_record

9:30 告警建模整理

2019-02-26 09:30:48 199

原创 219.02.16 daily_record

9:00看定时器代码, 告警编译

2019-02-16 09:09:58 71

机器学习数据资源整合集

具有延迟性质的网络流数据 用于开放式计算, 能够有效训练

2019-10-20

空空如也

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

TA关注的人

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