Package org.tribuo.regression.sgd
Class Util
java.lang.Object
org.tribuo.regression.sgd.Util
Utilities. Currently stores methods for shuffling examples and their associated regression dimensions and weights.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
shuffleInPlace
(SparseVector[] features, DenseVector[] regressors, double[] weights, int[] indices, SplittableRandom rng) In place shuffle of the features, labels and weights.static void
shuffleInPlace
(SparseVector[] features, DenseVector[] regressors, double[] weights, SplittableRandom rng) In place shuffle of the features, labels and weights.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
shuffleInPlace
public static void shuffleInPlace(SparseVector[] features, DenseVector[] regressors, double[] weights, SplittableRandom rng) In place shuffle of the features, labels and weights.- Parameters:
features
- Input features.regressors
- Input regressors.weights
- Input weights.rng
- SplittableRandom number generator.
-
shuffleInPlace
public static void shuffleInPlace(SparseVector[] features, DenseVector[] regressors, double[] weights, int[] indices, SplittableRandom rng) In place shuffle of the features, labels and weights.- Parameters:
features
- Input features.regressors
- Input regressors.weights
- Input weights.indices
- Input indices.rng
- SplittableRandom number generator.
-