CustomMappingCatalog.FilterByStatefulCustomPredicate<TSrc,TState> 메서드

정의

지정된 조건자가 true를 반환하는 행을 삭제합니다. 이 필터를 사용하면 커서당 상태를 유지할 수 있습니다.

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

형식 매개 변수

TSrc

들어오는 데이터에서 취할 열을 정의하는 클래스입니다.

TState

커서당 상태를 설명하는 형식입니다.

매개 변수

catalog
DataOperationsCatalog

데이터 작업 카탈로그입니다.

input
IDataView

입력 데이터입니다.

filterPredicate
Func<TSrc,TState,Boolean>

형식의 입력과 형식 TSrc 의 상태 개체 TState를 사용하고 행을 필터링(삭제)해야 하는 경우 true를 반환하고, 그렇지 않으면 false를 반환하는 조건자입니다.

stateInitAction
Action<TState>

커서가 초기화되기 전에 한 번 호출되는 상태 개체를 초기화하는 작업입니다.

반환

적용 대상