共用方式為


IRowToRowMapper.GetRow 方法

定義

DataViewRow根據輸入 input 取得具有指示作用中資料行的 。 取得傳回資料列非使用中資料行的值將會擲回。

Schemainput 應該與 相同。 InputSchema 如果不是這種情況,這個方法的實作者應該會擲回。 相反地,傳回的值必須與 具有相同的架構 OutputSchema

這個方法會在輸入和輸出 DataViewRowDataViewRow 之間建立即時連線。 特別是,當叫用輸出 DataViewRow 的 getter 時,會叫用輸入資料列的 getter,並將輸出值以輸入的 DataViewRow 目前值為基礎。 透過 getter 要求輸出 DataViewRow 值時,會重新計算輸出值。 此外,傳 DataViewRow 回的 會在處置時處置 input

public Microsoft.ML.DataViewRow GetRow (Microsoft.ML.DataViewRow input, System.Collections.Generic.IEnumerable<Microsoft.ML.DataViewSchema.Column> activeColumns);
abstract member GetRow : Microsoft.ML.DataViewRow * seq<Microsoft.ML.DataViewSchema.Column> -> Microsoft.ML.DataViewRow
Public Function GetRow (input As DataViewRow, activeColumns As IEnumerable(Of DataViewSchema.Column)) As DataViewRow

參數

input
DataViewRow

傳回

適用於