Memogrocery

CentOS上安装Python 3

CentOS上默认自带了Python 2,但没有Python 3。记录一种在CentOS上安装Python 3的方法。 步骤 下载Python包并解压缩 12$ wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tar.xz$ tar -xvf Python-3.6.9.tar.xz 安装相关依赖包(root权限下) ......

Install Python 3 On Centos

Introduction Python 3 is not installed by default in CentOS. This blog tells one way to install python 3 on CentOS. Steps Download and extract python package 12$ wget https://www.python.org/ftp......

Representation Learning Notes: Node2Vec

...

Representation Learning Notes: DeepWalk

...

Representation Learning Notes: From Word2Vec to Item2Vec

Introduction Tools Google word2vec Gensim Spark Tensorflow ...

Machine Learning Notes: FTRL

Introduction The Algorithm Logistic Regression Online Gradient Descend Sparsity Truncated Gradient FOBOS RDA FTRL References ...

算法笔记: 力扣#836 矩形重叠

问题描述 解法 分析 Python 实现 123456class Solution: def isRectangleOverlap(self, rec1, rec2): return not (rec1[0] >= rec2[2] or rec1[1] >= rec2[3] or ......

Algorithm Notes: Leetcode#836 Rectangle Overlap

Problem Solution Initial thoughts Python implementation 123456class Solution: def isRectangleOverlap(self, rec1, rec2): return not (rec1[0] >= rec2[2] or rec1[1] &......

算法笔记: 力扣#405 数字转换为十六进制数

问题描述 解法 分析 Python 实现 123456789101112class Solution: def toHex(self, num): if 0 <= num < 10: return str(num) if num < 0: num = num + 2**32 ch......

Algorithm Notes: Leetcode#405 Convert a Number to Hexadecimal

Problem Solution Initial thoughts Python implementation 123456789101112class Solution: def toHex(self, num): if 0 <= num < 10: return str(num) if num < 0: ......