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 物件

適用於