Class Util

java.lang.Object
org.tribuo.regression.sgd.Util

public class Util extends Object
Utilities. Currently stores methods for shuffling examples and their associated regression dimensions 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.