- 博客(13)
- 资源 (17)
- 收藏
- 关注
原创 matlablib 作图
Example1: 使用matlablib做图import matplotlib.pyplot as pltimport numpy as npx = np.linspace(-5, 5, 100)y1 = np.sin(x)y2 = np.cos(x)plt.figure(num=3, figsize=(8, 5))plt.plot(x, y1)plt.plot(x,
2018-01-26 10:11:20 1563
原创 清洗outliers
Example1: 采用标准化后的数据z-score方法进行计算import numpy as npdef outlier(points, threshold=3.5): if len(points.shape) == 1: points = points[:,None] median = np.median(points, axis=0) di
2018-01-24 16:54:04 748
原创 scipy
假设: 数据符合正态分布,下面我们验证该假设的正确性Example 1: 采用默认随机数据集import scipy.stats as statsx = stats.norm.rvs(size = 100)static, pvalue = stats.normaltest(x)if pvalue > 0.05: print 'normal distribution'el
2018-01-24 16:04:05 384
原创 numpy 之 array
Example1: initializationimport numpy as npa = np.array([])print aprint a.shapeExample2: appendimport numpy as npa = np.array([])print aprint a.shapevalue = 1a = np.append(a,value)pri
2018-01-24 15:16:11 2166
原创 python2.7 和python3.5切换
1. 设置优先级 这里我们默认让python3.5优先级150,高于python2.7优先级100sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100sudo update-alternatives --install /usr/bin/python python /usr/bin/py
2018-01-22 21:41:59 2685
原创 Git + CSDN码云
1. 添加远程访问CSDN码云账户的SSH公钥将本地公钥添加到远程CSDN码云账户上,表示本地有权限访问该账户; 将本地公钥添加到远程CSDN码云账户的某个项目上,表示本地有权限访问该项目; 其中,一个账户可以拥有多个项目。我们默认将公钥添加到远程CSDN码云账户上,避免每一个新的项目都得添加一遍访问权限。ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
2018-01-14 16:28:24 390
原创 Ubuntu16.04 IPV6
1. 安装 Teredo 的虚拟网卡sudo apt-get install miredoifconfigsudo miredo2. 校验ping6 ipv6.google.com
2018-01-09 16:11:36 2041
原创 Ubuntu16.04安装MongoDB, PyMongo
1. 安装MongoDBsudo apt-get install mongodb如果能成功打印出MongoDB的版本信息,验证安装成功mongo -version开启/关闭MongoDB Serviceservice mongodb startservice mongodb stop显示Databaseshow dbs使用某个Database, 比如local
2018-01-07 16:08:32 2784
原创 MongoDB删除数据集
1. 实例 MongoDB数据库名称(比如:database1),数据集名称(比如:dataset1)#!/usr/bin/env python# -*- coding:utf-8 -*-from pymongo import MongoClientconn = MongoClient('127.0.0.1', 27017)db = conn.database1dataset =
2018-01-07 11:42:50 1272
原创 Excel柱状图,饼图,折线图
1. 打开文件 用Excel打开”Test1”文件2. 选择数据 按住鼠标左键,选中指定数据区域 3. 数据选中之后,点击EXCEL菜单的“INSERT”选项卡,选择Excel柱状图,饼图或者折线图 Excel柱状图,饼图或者折线图依次如下: 注意:excel转成csv格式,某些信息(比如生成的图)会消失。
2018-01-06 16:33:19 1658 1
原创 从MongoDB导出.csv文件
1. 实例 MongoDB数据库名称(比如:database1),数据集名称(比如:dataset1),需要导出的数据集的若干字段(比如:ipv4, delay),导出路径及文件名(比如:/home/joe/sharecode/ipv4.csv) mongoexport -d database1 -c dataset1 -f ipv4, delay –csv -o /home/joe/s
2018-01-06 15:54:02 5856
hyperledger-fabric-readthedocs-io-en-v2.2.1.pdf
2021-01-27
LibreOffice Draw 之网络图示模板 VRTnetworkequipment_1.2.0-lo
2018-08-01
1999年到2018年香港房地产走势数据
2018-04-02
GeoIP Databases of Country and City
2017-06-06
Performance analysis of the Blockchain
2017-01-19
An introduction to Blockchain that is a supporting technology of Bitcoin.
2017-01-03
Linux Kervel Version 1.0 (open source)
2017-01-03
GPU与MATLAB混合编程之书本实现代码
2016-07-15
Totem拓扑数据
2016-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人