60 references to TakeRows
Microsoft.ML.AutoML (5)
AutoMLExperiment\IDatasetManager.cs (1)
89var subSampledTrainDataset = context.Data.TakeRows(_trainDataset, count);
ColumnInference\ColumnTypeInference.cs (1)
270idv = context.Data.TakeRows(idv, args.MaxRowsToRead);
ColumnInference\PurposeInference.cs (1)
244data = context.Data.TakeRows(data, MaxRowsToRead);
ColumnInference\TextFileContents.cs (1)
94var idv = context.Data.TakeRows(textLoader.Load(source), 1000);
DatasetDimensions\DatasetDimensionsApi.cs (1)
15data = context.Data.TakeRows(data, MaxRowsToRead);
Microsoft.ML.AutoML.Tests (5)
AutoFitTests.cs (5)
243.Execute(context.Data.TakeRows(dataset, 1000), label); 250var model = result.BestRun.Estimator.Fit(context.Data.TakeRows(dataset, 1000)); 306trainData = context.Data.TakeRows(trainData, crossValRowCountThreshold - 1); 420var testDataView = mlContext.Data.TakeRows(trainDataView, 500); 484trainDataView = mlContext.Data.TakeRows(trainDataView, 1499);
Microsoft.ML.IntegrationTests (12)
DataTransformation.cs (2)
39data = mlContext.Data.TakeRows(data, numSamples); 92data = mlContext.Data.TakeRows(data, numSamples);
Debugging.cs (1)
147foreach (var row in mlContext.Data.CreateEnumerable<HousingRegression>(mlContext.Data.TakeRows(data, 1), true))
Explainability.cs (4)
189var shuffledSubset = mlContext.Data.TakeRows(mlContext.Data.ShuffleRows(outputData), 10); 226var shuffledSubset = mlContext.Data.TakeRows(mlContext.Data.ShuffleRows(outputData), 10); 263var shuffledSubset = mlContext.Data.TakeRows(mlContext.Data.ShuffleRows(outputData), 10); 301var shuffledSubset = mlContext.Data.TakeRows(mlContext.Data.ShuffleRows(outputData), 10);
ModelFiles.cs (1)
119var dataEnumerator = mlContext.Data.CreateEnumerable<HousingRegression>(mlContext.Data.TakeRows(data, 5), false);
ONNX.cs (3)
68var dataEnumerator = mlContext.Data.CreateEnumerable<HousingRegression>(mlContext.Data.TakeRows(data, 5), false); 120var dataEnumerator = mlContext.Data.CreateEnumerable<HousingRegression>(mlContext.Data.TakeRows(data, 5), false); 167var dataEnumerator = mlContext.Data.CreateEnumerable<HousingRegression>(mlContext.Data.TakeRows(data, 5), false);
Validation.cs (1)
160var scoredDataOneRow = model.Transform(mlContext.Data.TakeRows(data, 1));
Microsoft.ML.Samples (8)
Dynamic\DataOperations\TakeRows.cs (1)
44var filteredData = mlContext.Data.TakeRows(data, 5);
Dynamic\Trainers\Ranking\FastTree.cs (1)
44var topTransformedTestData = mlContext.Data.TakeRows(
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (1)
58var topTransformedTestData = mlContext.Data.TakeRows(
Dynamic\Trainers\Ranking\LightGbm.cs (1)
44var topTransformedTestData = mlContext.Data.TakeRows(
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (1)
59var topTransformedTestData = mlContext.Data.TakeRows(
Dynamic\Transforms\CalculateFeatureContribution.cs (1)
50.TakeRows(transformedData, 1));
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (1)
52.TakeRows(transformedData, 1));
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (1)
58transformedData = mlContext.Data.TakeRows(transformedData, 5);
Microsoft.ML.Tests (30)
FeatureContributionTests.cs (2)
243var savedData = ML.Data.TakeRows(estimator.Fit(data).Transform(data), 4); 434var someRows = ML.Data.TakeRows(trainingDataView, numberOfInstances);
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
476var shuffledSubset = context.Data.TakeRows(context.Data.ShuffleRows(featureContributionData), 10);
TermEstimatorTests.cs (1)
81data = ML.Data.TakeRows(data, 10);
Transformers\CategoricalHashTests.cs (1)
102var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\CategoricalTests.cs (1)
174var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\ConcatTests.cs (2)
70data = ML.Data.TakeRows(data, 10); 122data = ML.Data.TakeRows(data, 10);
Transformers\FeatureSelectionTests.cs (4)
50var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 87var savedData = ML.Data.TakeRows(trans.Transform(data), 4); 129var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 189var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\NAIndicatorTests.cs (1)
117var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\NAReplaceTests.cs (1)
143var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\NormalizerTests.cs (4)
675var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 709var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 772var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 832var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\PcaTests.cs (1)
60var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\RffTests.cs (1)
77var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4);
Transformers\TextFeaturizerTests.cs (7)
444var savedData = ML.Data.TakeRows(feat.Fit(data).Transform(data), 4); 475var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 495var outdata = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 544var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 605var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 640var savedData = ML.Data.TakeRows(est.Fit(data).Transform(data), 4); 699var savedData = ML.Data.TakeRows(transformedData, 4);
Transformers\TextNormalizer.cs (1)
63var savedData = ML.Data.TakeRows(pipeVariations.Fit(dataView).Transform(dataView), 5);
Transformers\WordEmbeddingsTests.cs (2)
51var savedData = ML.Data.TakeRows(pipe.Fit(words).Transform(words), 4); 94var savedData = ML.Data.TakeRows(pipe.Fit(words).Transform(words), 10);