转自:https://www.cnblogs.com/chaosimple/p/4153167.html 一、标准化(Z-Score),或者去除均值和方差缩放 公式为:(X-mean)/std 计算时对每个属性/每列分别进行。 将数据按期属性(按列进行)减去其均值,并处以其方差。得到的结果是,对于每 ...
分类:
其他好文 时间:
2020-07-28 17:09:32
阅读次数:
72
Leetcode.283 Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero e ...
分类:
编程语言 时间:
2020-07-28 14:38:35
阅读次数:
91
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2020-07-28 14:04:15
阅读次数:
77
硬件条件:Thinkpad P52 + SAMSUNG 1T M.2新硬盘 Step1:安装ubuntu Bugs: 首先需要disable security boot! Magic Number void!(找个新优盘,装ubuntu) 安装过程到选择硬盘空间时卡死(不支持P1000显卡驱动,在b ...
分类:
系统相关 时间:
2020-07-28 10:08:38
阅读次数:
109
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0 ...
分类:
移动开发 时间:
2020-07-28 00:01:53
阅读次数:
111
题目链接 https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/ 题解 递归解法 路径:一条从树中任意节点出发,达到任意节点的序列。该路径至少包含一个节点,且不一定经过根节点。 这道题和LeetCode687最长同值路径和Leet ...
分类:
其他好文 时间:
2020-07-27 23:35:37
阅读次数:
74
Additive Number Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. ...
分类:
其他好文 时间:
2020-07-27 17:46:30
阅读次数:
60
题目来源:http://codeforces.com/contest/158/problem/B After the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrat ...
分类:
其他好文 时间:
2020-07-27 16:07:20
阅读次数:
89
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:
其他好文 时间:
2020-07-27 15:58:17
阅读次数:
93
Given an array of positive integers target and an array initial of same size with all zeros. Return the minimum number of operations to form a target ...
分类:
其他好文 时间:
2020-07-27 15:38:31
阅读次数:
66