科学计算
科学计算必备DataFrames
DataFrames基本操作
跟Python中的pandas的用法很像,相信用过Pandas的朋友上手应该无压力
DataFrame定义
新建一个DataFrame...中的宏
@where
using DataFramesMeta
@where(df, :x1 .> 0.2)
?...中采样一次数据
sample(a, 3) # 从a中采样3次数据,返回1维Array
>>3-element Array{Int64,1}:
3
2
3
a1 = [1, 10, 20, 30...(a1, a2) # 从a1中,按照a2的类型取出length(a2)次数据
>>3-element Array{Int64,1}:
20
10
30
a1 = [1, 10, 20, 30]...,但为机器学习提供很多的必要工具,比如Cross validation等
先来看下MLBase中几个做简单数据处理的函数
repeach(1:3, 2)
>>6-element Array{Int64,1