- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 ROS
packages:ROS 软件包是一组用于实现特定功能的相关文件的集合,包括可执行文件和其他支持文件。 在 ROS 中,所有软件都被组织为软件包的形式,比如 turtlesim 包就包含turtlesim_node 和turtle_teleop_key> 可执行文件,当然还有一些其他的可执行文件和配置文件。Node:节点是各自独立的可执行文件,在ROS程序的运行实例被称为节点程
2018-01-20 20:07:30
263
原创 SFrame
安装https://turi.com/download/install-graphlab-create.html快速使用import graphlab 项目 价格 Importing and parsing data url=https://static.turi.com/datasets/millionsong/song_data.csv’ songs = graphlab.SFra
2017-10-22 18:38:33
1186
转载 csr_matrix
csr_matrixcsr_matrix>>> indptr = np.array([0, 2, 3, 6])>>> indices = np.array([0, 2, 2, 0, 1, 2])>>> data = np.array([1, 2, 3, 4, 5, 6])>>> csr_matrix((data, indices, indptr), shape=(3, 3)).toarray(
2017-10-17 17:26:42
509
原创 聚类
聚类Models Nearest neighbors Clustering Mixture of Gaussians 高斯混合 Latent Dirichlet allocation 潜在狄利克雷分布 Nearest neighbors应用:文章相似性 需要两点: 如何描述文章 做法很简单,(用文章生成词袋),摇一摇 数数出现在其中的单词 这就是单词在该
2017-10-17 17:18:38
607
原创 python 解压zip文件
使用zipfile,python自带模块,解压zip文件:代码块“` python import os import zipfileimport timefrom common.error_code import E804, E805 from common.utils import success_msg, error_msgdef unzipfile(file_dir, file_name
2017-02-23 14:03:43
683
原创 python计算时间差
last_time = last.device_createtime now_time = datetime.datetime.now() diff = now_time - last_time if diff.days > 0: last_createtime = str(diff.days) + ' Days Ago' else:
2017-02-12 16:55:15
711
原创 python获取系统信息,psutil
psutil获取系统cpu使用率的方法是cpu_percent(),其有两个参数,分别是interval和percpu,interval指定的是计算cpu使用率的时间间隔,percpu则指定是选择总的使用率还是每个cpu的使用率代码块代码块语法遵循标准markdown代码,例如: import psutil #cpu使用率 cpu=(str)(psutil.cpu_percent
2017-02-12 16:48:54
3405
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人