上一页 1 ··· 4 5 6 7 8
摘要: 有时需要给自己写的小程序做个简单的 benchmark,查看内存使用情况和运行时间。这时可以试试 valgrind。 Ubuntu 下安装很简单: 显示堆空间使用情况 用图表表示堆空间使用情况 用图表表示所有空间的内存占用情况 "Reference" Written with "StackEdit" 阅读全文
posted @ 2018-10-09 17:52 LexLuc 阅读(285) 评论(0) 推荐(0)
摘要: Spark Shell Example 1 Process Data from List: Example 2 Process Data from Local Text File RDD transformation and action can now be applied on the Exam 阅读全文
posted @ 2018-10-09 17:44 LexLuc 阅读(427) 评论(0) 推荐(0)
摘要: 变量作用域 自 ES2015 起,JS 引入 和 关键词定义变量的块作用域(Block Scope)。 仅支持全局作用域(Global Scope)和函数作用域(Function Scope); 支持块作用域,即严格定义作用域在花括号 里面; 不仅支持块作用域,且定义的变量无法再修改。 javasc 阅读全文
posted @ 2018-10-09 12:53 LexLuc 阅读(195) 评论(0) 推荐(0)
摘要: Berkeley 大学最近推出的针对自动驾驶的街景数据集,号称比 Cityscapes 数据量更大,可泛化性更好。 语义实例分割(Semantic Instance Segmentation) 数据集一共有 40 种物体类别 与 Cityscapes 的对比 街景数据来自 US 的城市 模型更熟悉美 阅读全文
posted @ 2018-09-16 00:32 LexLuc 阅读(1470) 评论(0) 推荐(0)
摘要: 独立(Independence) 统计独立(Statistical Independence) 两个随机变量X,Y统计独立的条件是当且仅当其联合概率分布等于边际概率分布之积: $$ X \perp Y \leftrightarrow P(X,Y)=P(Y) P(Y) $$ 思考:假设 $X \per 阅读全文
posted @ 2018-09-13 16:47 LexLuc 阅读(829) 评论(0) 推荐(0)
摘要: Reducer receives (key, values) pairs and aggregate values to a desired format, then write produced (key, value) pairs back into HDFS. E.g. Input: (ter 阅读全文
posted @ 2018-09-01 17:41 LexLuc 阅读(206) 评论(0) 推荐(0)
摘要: Mapper maps input key/value pairs into intermediate key/value pairs. E.g. Input: (docID, doc) Output: (term, 1) Mapper Class Prototype: Special Data T 阅读全文
posted @ 2018-09-01 16:41 LexLuc 阅读(296) 评论(0) 推荐(0)
摘要: ``` !/usr/bin/python3 coding: UTF 8 import requests import time import gzip import urllib import json import hashlib import base64 def audio_dictation 阅读全文
posted @ 2018-08-30 01:15 LexLuc 阅读(1231) 评论(0) 推荐(0)
摘要: Filter Filter 常用于从大量文本、数据中提取需求的部分。下面介绍几个常用的 filter 命令。 cut $ cut -c 5-8 textfile.txt # 切出 textfile.txt 中每行的第 5 到第 8 个 character $ cut -f2-4 -d',' text 阅读全文
posted @ 2018-08-11 17:04 LexLuc 阅读(2691) 评论(0) 推荐(0)
摘要: 概率论复习 概率(Probability) 频率学派(Frequentist) :由大量试验得到的期望频率(致命缺陷:有些事情无法大量试验,例如一封邮件是垃圾邮件的概率,雷达探测的物体是一枚导弹的概率); 贝叶斯学派(Bayesian) :基于已有信息而对预测结果的不确定性; 离散随机变量(Disc 阅读全文
posted @ 2018-08-04 14:04 LexLuc 阅读(471) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8