machinelearning-samples icon indicating copy to clipboard operation
machinelearning-samples copied to clipboard

CrossValidate vs Fit method

Open kicaj29 opened this issue 2 years ago • 0 comments

Hi

Can someone explain relation between CrossValidate and Fit methods?

I documentation I found this example: https://learn.microsoft.com/en-us/dotnet/machine-learning/how-to-guides/train-machine-learning-model-cross-validation-ml-net where first we call Fit and next we call CrossValidate - here result of the Fit is used in CrossValidate call.

In another example https://github.com/dotnet/machinelearning-samples/blob/main/samples/csharp/end-to-end-apps/MulticlassClassification-GitHubLabeler/GitHubLabeler/GitHubLabelerConsoleApp/Program.cs#L101 I see that first we call CrossValidate and next we call Fit but the Fit method does not use any output from the CrossValidate - it looks that it does not make sense or I am reading it wrong?

kicaj29 avatar Dec 27 '23 10:12 kicaj29