CustomMappingCatalog.FilterByStatefulCustomPredicate<TSrc,TState> Método

Definición

Coloque filas en las que un predicado especificado devuelva true. Este filtro permite mantener un estado por cursor.

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

Parámetros de tipo

TSrc

Clase que define qué columnas se van a tomar de los datos entrantes.

TState

Tipo que describe el estado por cursor.

Parámetros

catalog
DataOperationsCatalog

Catálogo de operaciones de datos.

input
IDataView

Los datos de entrada.

filterPredicate
Func<TSrc,TState,Boolean>

Un predicado, que toma una entrada de tipo y un objeto de estado TSrc de tipo TState, y devuelve true si la fila debe filtrarse (quitarse) y false en caso contrario.

stateInitAction
Action<TState>

Acción para inicializar el objeto de estado, al que se llama una vez antes de inicializar el cursor.

Devoluciones

Se aplica a