摘要: 城市 golf course 高尔夫球场 tennis court 网球场 football pitch 绿茵场 skating rink 旱冰场 radio station 广播电台 concert hall 音乐厅 museum 博物馆 This is not take-away, in oth 阅读全文
posted @ 2020-05-13 20:14 okay4321 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 线性回归 梯度下降公式推导步骤: J(θ)是损失函数。下降的过程需要,同时更新θi 和θj 的值,也就是减去各自方向的偏导数。 损失函数求偏导数推导过程: [1.1]->[1.2] [1.2]->[1.3] [1.3]->[1.4] 引文θ1方向 中间偏导求的结果X没带上角标 https://mcc 阅读全文
posted @ 2020-12-30 15:20 okay4321 阅读(87) 评论(0) 推荐(0) 编辑
摘要: The new stuff can be divided into a few different categories: security, performance, ease-of-use, and even some entirely new functionality. Redis 6 br 阅读全文
posted @ 2020-12-23 16:21 okay4321 阅读(75) 评论(0) 推荐(0) 编辑
摘要: Levels of Abstraction flink 提供了不同层次的API来进行 流处理 或者批处理 最低层次的抽象 提供了有状态的流 通过 Process Function 嵌入到 DataStream API 当中去,它允许用户自由的处理events,并且使用state,另外用户可以注册ev 阅读全文
posted @ 2020-06-22 22:53 okay4321 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Factorization Machines (FM) 首先这种算法是一种有监督的机器学习模型,既可以用在分类问题也可以用在回归问题当中,它是一种非线性的模型,相比逻辑回归具备了二阶交叉特征表达能力(不易拓展到三阶以上)。可以通过stochastic(随机) gradient descent (SG 阅读全文
posted @ 2020-06-22 21:46 okay4321 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 神经网络的工作内容就是张量计算(高维空间的几何变换),可以理解为将两张不同颜色的纸,揉成团以后的展开过程,使得两张纸再度可分。 数据的张量表示 人口统计数据集,其中包括每个人的年龄、邮编和收入。每个人可以表示为包含 3 个值的向量,而整个数据集包含 100 000 个人,因此可以存储在形状为 (10 阅读全文
posted @ 2020-06-11 21:40 okay4321 阅读(886) 评论(0) 推荐(0) 编辑
摘要: 我的云笔记 一张张上传图片太麻烦了 经典算法题目复习.note 链接:http://note.youdao.com/noteshare?id=e2e9d04c2e885a4c330ce0dd45c20def 阅读全文
posted @ 2020-05-12 18:39 okay4321 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 在spark ml pipeline的特征提取和转换阶段,有一种transformer可以将机器学习训练数据中常见的字符串列(例如表示各种分类)转换为数值索引列,以便于计算机处理。它就是StringIndexer。它支持的索引范围为[0, numLabels)(不支持的会编码为numLabels), 阅读全文
posted @ 2020-04-04 07:54 okay4321 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. What Is a Circular Dependency(循环依赖)? It happens when a bean A depends on another bean B, and the bean B depends on the bean A as well: Bean A → Bea 阅读全文
posted @ 2020-03-30 20:33 okay4321 阅读(376) 评论(0) 推荐(0) 编辑
摘要: https://www.youtube.com/watch?v=f1wnYdLEpgI 阅读全文
posted @ 2020-03-27 20:34 okay4321 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1) Every node has a color either red or black. 2) Root of tree is always black. 3) There are no two adjacent red nodes (A red node cannot have a red p 阅读全文
posted @ 2020-03-27 20:11 okay4321 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 专业术语:equation /ɪˈkweɪʒn/ 方程式eigenvalues /'ɛgən,væljuz/ 特征值determinant /dɪˈtɜːmɪnənt/ 行列式product 乘积equation of the first degree / first order equation 阅读全文
posted @ 2020-03-25 07:32 okay4321 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Raft是一种易于理解的分布式系统一致性算法(弱一致性,最终一致性)。它在容错性和性能上相当于Paxos。不同之处在于,它被分解成相对独立的子问题,并且清晰地处理了实际系统所需的所有主要部分。 系统角色 leader follower candidate(leader失败以后 follower的一种 阅读全文
posted @ 2020-03-19 20:33 okay4321 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 以斐波那契数列为例 来看一下 滚动数组 是如何节约空间的 传统方式:如果想求解fib(7) 需要8个数组空间 0 1 1 2 3 5 8 通过观察 我们可以发现 求解fib(n) 我们只关心fib(n-1)和fib(n-2) 对再之前的数据并不关心 也就是可以认为是无效数据 这种特征特别适用于动态规 阅读全文
posted @ 2020-03-12 08:59 okay4321 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Bellman–Ford Algorithm 是由 Richard Bellman(DP创始人) 和 Ford 共同创立的,求解单源最短路径问题的一种算法。它的原理是对图进行顶点个数减一次的松弛操作(逐渐逼近最终解的过程),得到所有顶点到源点的最短路径。该算法优于dijkstra的方面在于其边的权值 阅读全文
posted @ 2020-03-11 21:06 okay4321 阅读(246) 评论(0) 推荐(0) 编辑
摘要: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ Horizontal Pod Autoscaler 可以通过监控CPU利用率 动态调整Pod的数量 达到动态扩容和缩容的目的。 阅读全文
posted @ 2020-03-10 10:38 okay4321 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 解决区间求最大最小值 区间和问题 朴素暴力方法时间复杂度为O(n) 而这种方法可以使复杂度降低为O(logn) 数组元素 存在叶子节点 {1, 3, 5, 7, 9, 11} public class SegmentTree { private static int[] arr = {1, 3, 5 阅读全文
posted @ 2020-03-05 15:53 okay4321 阅读(154) 评论(0) 推荐(0) 编辑
摘要: MVCC一种多版本数据记录方式 读旧版本数据 写新版本数据 实现数据库事务的隔离级别 数据库事务的特性及其保障方式: 原子性:使用 undo log ,从而达到回滚 持久性:使用 redo log,从而达到故障后恢复 隔离性:使用锁以及MVCC(read-committed and repeatab 阅读全文
posted @ 2020-02-10 17:19 okay4321 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 分享自我的云笔记 http://note.youdao.com/noteshare?id=bdb11d0982c50e40991dbe74439dd592 阅读全文
posted @ 2019-08-19 20:56 okay4321 阅读(227) 评论(0) 推荐(0) 编辑
摘要: class Clock extends React.Component { constructor(props) { super(props); this.state = {date: new Date()}; } componentDidMount() { this.timerID = setIn 阅读全文
posted @ 2019-08-19 14:12 okay4321 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 使用@keyframes规则,你可以创建动画,也可以操作SVG格式文件里面的元素创建动画。SVG是一种用XML描述的矢量图形组合。 阅读全文
posted @ 2019-08-19 14:09 okay4321 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 递归神经网络的理解 分享自我的云笔记 https://note.youdao.com/ynoteshare1/index.html?id=3d342f377dcc5c1d1e84407f018cc953&type=note 阅读全文
posted @ 2019-08-15 15:59 okay4321 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Semaphore 与操作系统概念中的 信号量和PV操作 类似 控制最大的并发线程数 *countdownLatch也可以实现类似功能 Example // java program to demonstrate // use of semaphores Locks import java.util 阅读全文
posted @ 2019-07-27 17:37 okay4321 阅读(211) 评论(0) 推荐(0) 编辑
摘要: The Guava project contains several of Google's core libraries that we rely on in our Java-based projects: collections, caching, primitives support, co 阅读全文
posted @ 2019-07-27 13:37 okay4321 阅读(160) 评论(0) 推荐(0) 编辑
摘要: https://docs.oracle.com/javase/8/docs/technotes/guides/reflection/proxy.html 核心就是 method.invoke(obj, args); 其他一切 都是为拼凑这句话服务的。这句话所在的handler 也只是$Proxy0( 阅读全文
posted @ 2019-07-26 18:44 okay4321 阅读(192) 评论(0) 推荐(0) 编辑