摘要: 1. 线性归一化 x' = (x-min(x)) / (max(x)-min(x)) 适用于数值比较集中的情况,可使用经验值常量来来代替max,min 2. 标准差归一化 x'=(x-μ) / σ 经过处理后符合标准正态分布,即均值为0,标准差为1 3. 非线性归一化 使用非线性函数log、指数、正 阅读全文
posted @ 2017-11-13 10:50 HitAnyKey 阅读(2083) 评论(0) 推荐(0) 编辑
摘要: 问题: 来源:https://leetcode.com/problems/simplify-path Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home 阅读全文
posted @ 2017-11-13 09:23 HitAnyKey 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 题目: 链接:https://www.nowcoder.com/questionTerminal/9ae56e5bdf4f480387df781671db5172来源:牛客网 我们有两个字符串m和n,如果它们的子串a和b内容相同,则称a和b是m和n的公共子序列。子串中的字符不一定在原字符串中连续。例 阅读全文
posted @ 2017-11-13 08:44 HitAnyKey 阅读(200) 评论(0) 推荐(0) 编辑