自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 特征归一化

1、为什么需要归一化? 比如分析一个人身高体重对健康的影响,身高的区间大约是1.5m~1.8m,体重40kg~100kg,显然体重的数值变化比较大,对结果的影响更大,那么为了得到更准确的结果,就需要使各指标处于同一个数值区间,以便进行分析,而归一化就是这样的一种方式。2、归一化常用的方法有哪些? 1、线性归一化 ...

2019-08-14 15:05:28 166

转载 对称矩阵、Hermite矩阵、正交矩阵、酉矩阵、奇异矩阵、正规矩阵、幂等矩阵

题目:对称矩阵、Hermite矩阵、正交矩阵、酉矩阵、奇异矩阵、正规矩阵、幂等矩阵        看文献的时候,经常见到各种各样矩阵,本篇总结了常见的对称矩阵、Hermite矩阵、正交矩阵、酉矩阵、奇异矩阵、正规矩阵、幂等矩阵七种矩阵的定义,作为概念备忘录吧,忘了可以随时查一下。1、对称矩阵(文献【1】第40页)其中上标T表示求矩阵的转置(文献【1】

2017-12-11 13:07:32 1368

转载 机器学习中的矩阵方法04:SVD 分解

前面我们讲了 QR 分解有一些优良的特性,但是 QR 分解仅仅是对矩阵的行进行操作(左乘一个酉矩阵),可以得到列空间。这一小节的 SVD 分解则是将行与列同等看待,既左乘酉矩阵,又右乘酉矩阵,可以得出更有意思的信息。奇异值分解( SVD, Singular Value Decomposition ) 在计算矩阵的伪逆( pseudoinverse ),最小二乘法最优解,矩阵近似,确定矩阵的列向量空

2017-12-11 13:01:32 801

原创 sort-list

Sort a linked list in O(n log n) time using constant space complexity.class Solution(object): def mergeTwoLists(self, left, right): if left == None: return left if right == None:

2017-09-22 14:46:33 168

原创 convert-sorted-list-to-binary-search-tree

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.class TreeNode(object): def __init__(self, val, left=None, right=None): self.d

2017-09-22 13:57:19 220

原创 copy-list-with-random-pointer

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.class Node(object): def _

2017-09-22 13:18:38 150

原创 palindrome-number

Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Determine whether an integer is a palindrome. Do this without extra space.click to show s

2017-09-21 23:13:33 154

原创 valid-palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama"is a palindrome."race a car"is not a pa

2017-09-21 23:05:30 145

原创 palindrome-partitioning-ii

Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.For example, given s ="aab",Retur

2017-09-21 22:13:08 167

原创 palindrome-partitioning

Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s ="aab",Return [ ["aa","b

2017-09-21 21:06:30 137

原创 longest-palindromic-substring

Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.def longestPalin

2017-09-21 18:43:46 145

原创 longest-substring-without-repeating-characters

Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo

2017-09-21 17:38:15 185

原创 substring-with-concatenation-of-all-words

You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...

2017-09-21 17:19:13 230

原创 minimum-window-substring

题目描述Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S ="ADOBECODEBANC"T ="ABC"Minimum

2017-09-21 16:17:03 252

空空如也

空空如也

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

TA关注的人

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