DataFrame.RandomSplit(Double[], Nullable<Int64>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用提供的權數隨機分割此 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[]
分割的權數
傳回
DataFrame 物件