64 references to TrainTestSplit
Microsoft.ML.AutoML (5)
API\BinaryClassificationExperiment.cs (1)
183var splitData = Context.Data.TrainTestSplit(trainData);
API\MulticlassClassificationExperiment.cs (1)
167var splitData = Context.Data.TrainTestSplit(trainData);
API\RegressionExperiment.cs (1)
189var splitData = Context.Data.TrainTestSplit(trainData);
Tuner\SmacTuner.cs (1)
147var trainTestSplit = _context.Data.TrainTestSplit(data);
Utils\SplitUtil.cs (1)
53var splitData = context.Data.TrainTestSplit(trainData, samplingKeyColumnName: samplingKeyColumn);
Microsoft.ML.AutoML.Samples (2)
AutoMLExperiment.cs (1)
26var trainTestSplit = context.Data.TrainTestSplit(dataView);
Sweepable\SweepableLightGBMBinaryExperiment.cs (1)
39var trainTestSplit = context.Data.TrainTestSplit(dataView, testFraction: 0.1);
Microsoft.ML.AutoML.Tests (8)
AutoFitTests.cs (4)
102var dataTrainTest = context.Data.TrainTestSplit(trainData); 161var trainTestSplit = context.Data.TrainTestSplit(dataset); 338TrainTestData trainTestData = context.Data.TrainTestSplit(trainData, testFraction: 0.2, seed: 1); 589var dataTrainTest = context.Data.TrainTestSplit(dataFull);
AutoMLExperimentTests.cs (4)
108experiment.SetDataset(context.Data.TrainTestSplit(data)) 225experiment.SetDataset(context.Data.TrainTestSplit(data)) 250experiment.SetDataset(context.Data.TrainTestSplit(data)) 329experiment.SetDataset(context.Data.TrainTestSplit(data))
Microsoft.ML.Fairlearn.Tests (1)
GridSearchTest.cs (1)
94var trainTestSplit = context.Data.TrainTestSplit(shuffledDataset, 0.2);
Microsoft.ML.IntegrationTests (2)
Training.cs (1)
36var trainTestSplit = mlContext.Data.TrainTestSplit(data);
Validation.cs (1)
107var dataSplit = mlContext.Data.TrainTestSplit(data, testFraction: 0.2);
Microsoft.ML.PerformanceTests (1)
ImageClassificationBench.cs (1)
69TrainTestData trainTestData = _mlContext.Data.TrainTestSplit(
Microsoft.ML.Samples (18)
Dynamic\DataOperations\TrainTestSplit.cs (2)
31.TrainTestSplit(dataview, testFraction: 0.1, 57split = mlContext.Data.TrainTestSplit(dataview, testFraction: 0.2);
Dynamic\ModelOperations\OnnxConversion.cs (1)
46.TrainTestSplit(originalData, testFraction: 0.3);
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (1)
24.TrainTestSplit(data, testFraction: 0.3);
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (1)
24.TrainTestSplit(data, testFraction: 0.3);
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (1)
24.TrainTestSplit(data, testFraction: 0.3);
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (1)
24.TrainTestSplit(data, testFraction: 0.3);
Dynamic\Trainers\BinaryClassification\Gam.cs (1)
27var dataSets = mlContext.Data.TrainTestSplit(data);
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (1)
28var dataSets = mlContext.Data.TrainTestSplit(data);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
58TrainTestData trainTestData = mlContext.Data.TrainTestSplit(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
57TrainTestData trainTestData = mlContext.Data.TrainTestSplit(
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
57TrainTestData trainTestData = mlContext.Data.TrainTestSplit(
Dynamic\Trainers\Regression\GamAdvanced.cs (1)
27var dataSets = mlContext.Data.TrainTestSplit(data);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (1)
28var dataSets = mlContext.Data.TrainTestSplit(data);
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (1)
30var split = mlContext.Data.TrainTestSplit(dataView, testFraction: 0.1);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (1)
30var split = mlContext.Data.TrainTestSplit(dataView, testFraction: 0.1);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
49var split = mlContext.Data.TrainTestSplit(dataView, testFraction: 0.2);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
49var split = mlContext.Data.TrainTestSplit(dataView, testFraction: 0.2);
Microsoft.ML.Samples.GPU (3)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
58TrainTestData trainTestData = mlContext.Data.TrainTestSplit(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
57TrainTestData trainTestData = mlContext.Data.TrainTestSplit(
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
57TrainTestData trainTestData = mlContext.Data.TrainTestSplit(
Microsoft.ML.TensorFlow.Tests (5)
TensorflowTests.cs (5)
1412TrainTestData trainTestData = _mlContext.Data.TrainTestSplit( 1487TrainTestData trainTestData = _mlContext.Data.TrainTestSplit( 1619TrainTestData trainTestData = _mlContext.Data.TrainTestSplit( 1774TrainTestData trainTestData = _mlContext.Data.TrainTestSplit( 1864TrainTestData trainTestData = _mlContext.Data.TrainTestSplit(
Microsoft.ML.Tests (17)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
655var split = mlContext.Data.TrainTestSplit(data, testFraction: 0.1);
Scenarios\Api\TestApi.cs (14)
308var ttSplit = mlContext.Data.TrainTestSplit(fullInput); 309var ttSplitWithSeed = mlContext.Data.TrainTestSplit(fullInput, seed: 10); 310var ttSplitWithSeedAndSamplingKey = mlContext.Data.TrainTestSplit(fullInput, seed: 10, samplingKeyColumnName: "Workclass"); 364var simpleSplit = mlContext.Data.TrainTestSplit(input); 365var splitWithSeed = mlContext.Data.TrainTestSplit(input, seed: 10); 377var stratSplit = mlContext.Data.TrainTestSplit(input, samplingKeyColumnName: "Workclass"); 389var stratSeed = mlContext.Data.TrainTestSplit(input, samplingKeyColumnName: "Workclass", seed: 1000000); 456var split = mlContext.Data.TrainTestSplit(input, 0.5, nameof(Input.TextStrat)); 460split = mlContext.Data.TrainTestSplit(input, 0.5, nameof(Input.FloatStrat)); 464split = mlContext.Data.TrainTestSplit(input, 0.5, nameof(Input.VectorStrat)); 468split = mlContext.Data.TrainTestSplit(input, 0.5, nameof(Input.DateTimeStrat)); 472split = mlContext.Data.TrainTestSplit(input, 0.5, nameof(Input.DateTimeOffsetStrat)); 476split = mlContext.Data.TrainTestSplit(input, 0.5, nameof(Input.TimeSpanStrat)); 482split = mlContext.Data.TrainTestSplit(inputWithKey, 0.5, "KeyStrat");
Scenarios\RegressionTest.cs (1)
23var splitData = context.Data.TrainTestSplit(taxiData, testFraction: 0.1);
TrainerEstimators\TreeEnsembleFeaturizerTest.cs (1)
799var split = ML.Data.TrainTestSplit(dataView, 0.5);
Microsoft.ML.TorchSharp.Tests (2)
TextClassificationTests.cs (2)
175var trainTestSplit = mlContext.Data.TrainTestSplit(df, testFraction: 0.2); 432var dataSplit = ML.Data.TrainTestSplit(dataView, testFraction: 0.2);