Share via


CustomMappingCatalog.FilterByStatefulCustomPredicate<TSrc,TState> Méthode

Définition

Supprimez des lignes où un prédicat spécifié retourne true. Ce filtre permet de conserver un état par curseur.

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

Paramètres de type

TSrc

Classe définissant les colonnes à prendre à partir des données entrantes.

TState

Type qui décrit l’état par curseur.

Paramètres

catalog
DataOperationsCatalog

Catalogue des opérations de données.

input
IDataView

Données d'entrée.

filterPredicate
Func<TSrc,TState,Boolean>

Prédicat, qui prend une entrée de type et un objet d’état de type TSrcTState, et retourne true si la ligne doit être filtrée (supprimée) et false sinon.

stateInitAction
Action<TState>

Action permettant d’initialiser l’objet d’état, appelée une fois avant l’initialisation du curseur.

Retours

S’applique à