DataFrame.RandomSplit(Double[], Nullable<Int64>) 方法

定义

使用提供的权重随机拆分此 DataFrame 内容。

public Microsoft.Spark.Sql.DataFrame[] RandomSplit (double[] weights, long? seed = default);
member this.RandomSplit : double[] * Nullable<int64> -> Microsoft.Spark.Sql.DataFrame[]
Public Function RandomSplit (weights As Double(), Optional seed As Nullable(Of Long) = Nothing) As DataFrame()

参数

weights
Double[]

拆分的权重

seed
Nullable<Int64>

可选随机种子

返回

DataFrame 对象

适用于