다음을 통해 공유


RankingCatalog.CrossValidate 메서드

정의

접기, 맞춤 estimator및 제공된 경우 존중을 rowGroupColumnName통해 numberOfFolds 교차 유효성 검사를 실행합니다data. 그런 다음 각 하위 모델을 labelColumnName 평가하고 메트릭을 반환합니다.

public System.Collections.Generic.IReadOnlyList<Microsoft.ML.TrainCatalogBase.CrossValidationResult<Microsoft.ML.Data.RankingMetrics>> CrossValidate (Microsoft.ML.IDataView data, Microsoft.ML.IEstimator<Microsoft.ML.ITransformer> estimator, int numberOfFolds = 5, string labelColumnName = "Label", string rowGroupColumnName = "GroupId", int? seed = default);
member this.CrossValidate : Microsoft.ML.IDataView * Microsoft.ML.IEstimator<Microsoft.ML.ITransformer> * int * string * string * Nullable<int> -> System.Collections.Generic.IReadOnlyList<Microsoft.ML.TrainCatalogBase.CrossValidationResult<Microsoft.ML.Data.RankingMetrics>>
Public Function CrossValidate (data As IDataView, estimator As IEstimator(Of ITransformer), Optional numberOfFolds As Integer = 5, Optional labelColumnName As String = "Label", Optional rowGroupColumnName As String = "GroupId", Optional seed As Nullable(Of Integer) = Nothing) As IReadOnlyList(Of TrainCatalogBase.CrossValidationResult(Of RankingMetrics))

매개 변수

data
IDataView

교차 유효성 검사를 실행할 데이터입니다.

estimator
IEstimator<ITransformer>

맞출 추정기입니다.

numberOfFolds
Int32

교차 유효성 검사 접기 수입니다.

labelColumnName
String

레이블 열(평가용)입니다.

rowGroupColumnName
String

행을 그룹화하는 데 사용되는 groupId 열 data의 이름입니다. 이 열은 교차 유효성 검사를 위해 데이터를 분할할 때 자동으로 SamplingKeyColumn으로 사용됩니다. 이는 행 그룹화가 수행되지 않는 경우 null 순위 알고리즘에 필요하기 때문에 이 열입니다.

seed
Nullable<Int32>

교차 유효성 검사 폴드에 대한 행을 선택하는 데 사용되는 난수 생성기의 초기값입니다.

반환

접기별 결과: 메트릭, 모델, 점수가 매기된 데이터 세트.

적용 대상