CustomMappingCatalog.FilterByCustomPredicate<TSrc> Methode

Definition

Drop-Zeilen, in denen ein angegebenes Prädikat true zurückgibt.

public static Microsoft.ML.IDataView FilterByCustomPredicate<TSrc> (this Microsoft.ML.DataOperationsCatalog catalog, Microsoft.ML.IDataView input, Func<TSrc,bool> filterPredicate) where TSrc : class, new();
static member FilterByCustomPredicate : Microsoft.ML.DataOperationsCatalog * Microsoft.ML.IDataView * Func<'Src, bool (requires 'Src : null and 'Src : (new : unit -> 'Src))> -> Microsoft.ML.IDataView (requires 'Src : null and 'Src : (new : unit -> 'Src))
<Extension()>
Public Function FilterByCustomPredicate(Of TSrc As {Class, New}) (catalog As DataOperationsCatalog, input As IDataView, filterPredicate As Func(Of TSrc, Boolean)) As IDataView

Typparameter

TSrc

Die Klasse, die definiert, welche Spalten aus den eingehenden Daten stammen sollen.

Parameter

catalog
DataOperationsCatalog

Der Datenvorgängenkatalog.

input
IDataView

Die Eingabedaten.

filterPredicate
Func<TSrc,Boolean>

Ein Prädikat, das eine Eingabe vom Typ TSrc verwendet und true zurückgibt, wenn die Zeile gefiltert werden soll (gelöscht) und andernfalls false.

Gibt zurück

Gilt für: