CustomMappingCatalog.FilterByCustomPredicate<TSrc> Метод

Определение

Удаление строк, в которых указанный предикат возвращает значение true.

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

Параметры типа

TSrc

Класс, определяющий, какие столбцы следует принимать из входящих данных.

Параметры

catalog
DataOperationsCatalog

Каталог операций с данными.

input
IDataView

Входные данные.

filterPredicate
Func<TSrc,Boolean>

Предикат, который принимает входные данные типа TSrc и возвращает значение true, если строка должна быть отфильтрована (удалена) и false в противном случае.

Возвращаемое значение

Применяется к