6 instantiations of FloatLabelCursor
Microsoft.ML.Data (2)
Training\TrainerUtils.cs (2)
158using (var cursor = new FloatLabelCursor(data)) 940return new FloatLabelCursor(input, data, opt, signal);
Microsoft.ML.Ensemble (1)
OutputCombiners\BaseStacking.cs (1)
177using (var cursor = new FloatLabelCursor(data, CursOpt.AllFeatures | CursOpt.AllLabels))
Microsoft.ML.FastTree (2)
FastTree.cs (1)
1838using (var cursor = new FloatLabelCursor(_data, curOptions))
GamModelParameters.cs (1)
656using (var cursor = new FloatLabelCursor(_data, CursOpt.Label | CursOpt.Features))
Microsoft.ML.StandardTrainers (1)
LdSvm\LdSvmTrainer.cs (1)
512using (var cursor = new FloatLabelCursor(data, CursOpt.Label | CursOpt.Features))
81 references to FloatLabelCursor
Microsoft.ML.Data (3)
Training\TrainerUtils.cs (3)
158using (var cursor = new FloatLabelCursor(data)) 931public new sealed class Factory : FactoryBase<FloatLabelCursor> 938protected override FloatLabelCursor CreateCursorCore(DataViewRowCursor input, RoleMappedData data, CursOpt opt, Action<CursOpt> signal)
Microsoft.ML.Ensemble (1)
OutputCombiners\BaseStacking.cs (1)
177using (var cursor = new FloatLabelCursor(data, CursOpt.AllFeatures | CursOpt.AllLabels))
Microsoft.ML.FastTree (6)
FastTree.cs (1)
1838using (var cursor = new FloatLabelCursor(_data, curOptions))
GamModelParameters.cs (1)
656using (var cursor = new FloatLabelCursor(_data, CursOpt.Label | CursOpt.Features))
RandomForestClassification.cs (2)
235var cursorFactory = new FloatLabelCursor.Factory(trainData, cursorOpt); 266private void TrainCoreOneDal(IChannel ch, FloatLabelCursor.Factory cursorFactory, int featureCount)
RandomForestRegression.cs (2)
374var cursorFactory = new FloatLabelCursor.Factory(trainData, cursorOpt); 399private void TrainCoreOneDal(IChannel ch, FloatLabelCursor.Factory cursorFactory, int featureCount)
Microsoft.ML.LightGbm (16)
LightGbmTrainerBase.cs (16)
551private FloatLabelCursor.Factory CreateCursorFactory(RoleMappedData data) 560var factory = new FloatLabelCursor.Factory(data, loadFlags); 747private static double DetectDensity(FloatLabelCursor.Factory factory, int numRows = 1000) 751using (var cursor = factory.Create()) 766private void GetMetainfo(IChannel ch, FloatLabelCursor.Factory factory, 781using (var cursor = factory.Create()) 836private static bool MoveMany(FloatLabelCursor cursor, long count) 846private void GetFeatureValueDense(IChannel ch, FloatLabelCursor cursor, CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<float> featureValues) 883private void GetFeatureValueSparse(IChannel ch, FloatLabelCursor cursor, 934private void CreateDatasetFromSamplingData(IChannel ch, FloatLabelCursor.Factory factory, 959using (var cursor = factory.Create()) 1025private void LoadDataset(IChannel ch, FloatLabelCursor.Factory factory, Dataset dataset, int numRow, int batchSize, CategoricalMetaData catMetaData) 1053using (var cursor = factory.Create()) 1089using (var cursor = factory.Create()) 1133private void CopyToArray(IChannel ch, FloatLabelCursor cursor, float[] features, CategoricalMetaData catMetaData, Random rand, ref int numElem) 1171private void CopyToCsr(IChannel ch, FloatLabelCursor cursor,
Microsoft.ML.Mkl.Components (11)
OlsLinearRegression.cs (7)
176var cursorFactory = new FloatLabelCursor.Factory(examples, cursorOpt); 196private void ComputeOneDalRegression(IChannel ch, FloatLabelCursor.Factory cursorFactory, int m, ref Double[] beta, Double[] xtx, ref long n, ref Double yMean) 214using (var cursor = cursorFactory.Create()) 304private void ComputeMklRegression(IChannel ch, FloatLabelCursor.Factory cursorFactory, int m, ref Double[] beta, Double[] xtx, ref long n, ref Double yMean) 308using (var cursor = cursorFactory.Create()) 413private OlsModelParameters TrainCore(IChannel ch, FloatLabelCursor.Factory cursorFactory, int featureCount) 457using (var cursor = cursorFactory.Create())
SymSgdClassificationTrainer.cs (4)
536private readonly FloatLabelCursor.Factory _cursorFactory; 537private FloatLabelCursor _cursor; 554public InputDataManager(SymbolicSgdLogisticRegressionBinaryTrainer trainer, FloatLabelCursor.Factory cursorFactory, IChannel ch) 704var cursorFactory = new FloatLabelCursor.Factory(data, CursOpt.Label | CursOpt.Features);
Microsoft.ML.OneDal (2)
OneDalUtils.cs (2)
44internal static long GetTrainData(IChannel channel, FloatLabelCursor.Factory cursorFactory, ref List<float> featuresList, ref List<float> labelsList, int numberOfFeatures) 47using (var cursor = cursorFactory.Create())
Microsoft.ML.StandardTrainers (42)
LdSvm\LdSvmTrainer.cs (1)
512using (var cursor = new FloatLabelCursor(data, CursOpt.Label | CursOpt.Features))
Standard\LogisticRegression\LbfgsPredictorBase.cs (11)
183private FloatLabelCursor.Factory _cursorFactory; 312private protected virtual Optimizer InitializeOptimizer(IChannel ch, FloatLabelCursor.Factory cursorFactory, 345private protected virtual VBuffer<float> InitializeWeightsSgd(IChannel ch, FloatLabelCursor.Factory cursorFactory) 372FloatLabelCursor cursor = null; 490var cursorFactory = new FloatLabelCursor.Factory(data, cursorOpt); 496using (var cursor = cursorFactory.Create()) 595var cursorFactory = new FloatLabelCursor.Factory(data, cursorOpt); 599using (var cursor = cursorFactory.Create()) 736private protected abstract void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory cursorFactory, float loss, int numParams); 860private protected float DifferentiableFunctionStream(FloatLabelCursor.Factory cursorFactory, in VBuffer<float> xDense, ref VBuffer<float> grad, IProgressChannel pch) 872using (var cursor = cursorFactory.Create())
Standard\LogisticRegression\LogisticRegression.cs (3)
220private protected override void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory cursorFactory, float loss, int numParams) 343using (var cursor = cursorFactory.Create()) 424private protected override Optimizer InitializeOptimizer(IChannel ch, FloatLabelCursor.Factory cursorFactory,
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
232private protected override Optimizer InitializeOptimizer(IChannel ch, FloatLabelCursor.Factory cursorFactory, 308private protected override void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory cursorFactory, float loss, int numParams)
Standard\Online\OnlineLinear.cs (2)
327var cursorFactory = new FloatLabelCursor.Factory(data, cursorOpt); 333using (var cursor = cursorFactory.Create(rand))
Standard\PoissonRegression\PoissonRegression.cs (1)
198private protected override void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory factory, float loss, int numParams)
Standard\SdcaBinary.cs (14)
140private protected virtual int ComputeNumThreads(FloatLabelCursor.Factory cursorFactory) 334var cursorFactory = new FloatLabelCursor.Factory(data, cursorOpt); 381using (var cursor = cursorFactory.Create()) 431using (var cursor = cursorFactory.Create()) 571using (var cursor = cursorFactory.Create()) 790private protected virtual void TrainWithoutLock(IProgressChannelProvider progress, FloatLabelCursor.Factory cursorFactory, Random rand, 805using (var cursor = SdcaTrainerOptions.Shuffle ? cursorFactory.Create(rand) : cursorFactory.Create()) 948FloatLabelCursor.Factory cursorFactory, 971using (var cursor = cursorFactory.Create()) 1036private protected abstract float GetInstanceWeight(FloatLabelCursor cursor); 1539private protected override float GetInstanceWeight(FloatLabelCursor cursor) 2032var cursorFactory = new FloatLabelCursor.Factory(data, cursorOpt); 2077using (var cursor = cursorFactory.Create()) 2118using (var cursor = _options.Shuffle ? cursorFactory.Create(rand) : cursorFactory.Create())
Standard\SdcaMulticlass.cs (5)
174private protected override void TrainWithoutLock(IProgressChannelProvider progress, FloatLabelCursor.Factory cursorFactory, Random rand, 194using (var cursor = SdcaTrainerOptions.Shuffle ? cursorFactory.Create(rand) : cursorFactory.Create()) 343FloatLabelCursor.Factory cursorFactory, 372using (var cursor = cursorFactory.Create()) 478private protected override float GetInstanceWeight(FloatLabelCursor cursor)
Standard\SdcaRegression.cs (2)
158private protected override float GetInstanceWeight(FloatLabelCursor cursor) 170private protected override int ComputeNumThreads(FloatLabelCursor.Factory cursorFactory)
Standard\StochasticTrainerBase.cs (1)
47private protected virtual int ComputeNumThreads(FloatLabelCursor.Factory cursorFactory)