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