public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static 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.
|
public static void shuffleInPlace(SparseVector[] features, DenseVector[] regressors, double[] weights, SplittableRandom rng)
features
- Input features.regressors
- Input regressors.weights
- Input weights.rng
- SplittableRandom number generator.public static void shuffleInPlace(SparseVector[] features, DenseVector[] regressors, double[] weights, int[] indices, SplittableRandom rng)
features
- Input features.regressors
- Input regressors.weights
- Input weights.indices
- Input indices.rng
- SplittableRandom number generator.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.