public class Util extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.ExampleArray
A nominal tuple.
|
static class |
Util.SequenceExampleArray
A nominal tuple.
|
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static Util.SequenceExampleArray |
shuffle(SparseVector[][] features,
int[][] labels,
double[] weights,
SplittableRandom rng)
Shuffles a sequence of features, labels and weights, returning a tuple of the shuffled values.
|
static Util.ExampleArray |
shuffle(SparseVector[] features,
int[] labels,
double[] weights,
SplittableRandom rng)
Shuffles the features, labels and weights returning a tuple of the shuffled inputs.
|
static void |
shuffleInPlace(SparseVector[][] features,
int[][] labels,
double[] weights,
SplittableRandom rng)
In place shuffle used for sequence problems.
|
static void |
shuffleInPlace(SparseVector[] features,
int[] labels,
double[] weights,
int[] indices,
SplittableRandom rng)
In place shuffle of the features, labels, weights and indices.
|
static void |
shuffleInPlace(SparseVector[] features,
int[] labels,
double[] weights,
SplittableRandom rng)
In place shuffle of the features, labels and weights.
|
public static void shuffleInPlace(SparseVector[] features, int[] labels, double[] weights, SplittableRandom rng)
features
- Input features.labels
- Input labels.weights
- Input weights.rng
- SplittableRandom number generator.public static void shuffleInPlace(SparseVector[] features, int[] labels, double[] weights, int[] indices, SplittableRandom rng)
features
- Input features.labels
- Input labels.weights
- Input weights.indices
- Input indices.rng
- SplittableRandom number generator.public static Util.ExampleArray shuffle(SparseVector[] features, int[] labels, double[] weights, SplittableRandom rng)
features
- Input features.labels
- Input labels.weights
- Input weights.rng
- SplittableRandom number generator.public static void shuffleInPlace(SparseVector[][] features, int[][] labels, double[] weights, SplittableRandom rng)
features
- Input features.labels
- Input labels.weights
- Input weights.rng
- SplittableRandom number generator.public static Util.SequenceExampleArray shuffle(SparseVector[][] features, int[][] labels, double[] weights, SplittableRandom rng)
features
- Input features.labels
- Input labels.weights
- Input weights.rng
- SplittableRandom number generator.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.