public interface RegressorImpurity
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Modifier and Type | Interface and Description |
---|---|
static class |
RegressorImpurity.ImpurityTuple
Tuple class for the impurity and summed weight.
|
Modifier and Type | Method and Description |
---|---|
double |
impurity(float[] targets,
float[] weights)
Calculates the impurity based on the supplied weights and targets.
|
default double |
impurity(int[] indices,
float[] targets,
float[] weights)
Calculates the weighted impurity of the targets specified in the indices array.
|
default double |
impurity(int[] indices,
int indicesLength,
float[] targets,
float[] weights)
Calculates the weighted impurity of the targets specified in the indices array.
|
default double |
impurity(IntArrayContainer indices,
float[] targets,
float[] weights)
Calculates the weighted impurity of the targets specified in the indices container.
|
default double |
impurity(List<int[]> indices,
float[] targets,
float[] weights)
Calculates the weighted impurity of the targets specified in all the indices arrays.
|
RegressorImpurity.ImpurityTuple |
impurityTuple(int[] indices,
int indicesLength,
float[] targets,
float[] weights)
Calculates the weighted impurity of the targets specified in the indices array.
|
RegressorImpurity.ImpurityTuple |
impurityTuple(List<int[]> indices,
float[] targets,
float[] weights)
Calculates the weighted impurity of the targets specified in all the indices arrays.
|
double impurity(float[] targets, float[] weights)
targets
- The targets.weights
- The weights.RegressorImpurity.ImpurityTuple impurityTuple(int[] indices, int indicesLength, float[] targets, float[] weights)
indices
- The indices in the targets and weights arrays.indicesLength
- The number of values to use in indices.targets
- The regression targets.weights
- The example weights.RegressorImpurity.ImpurityTuple impurityTuple(List<int[]> indices, float[] targets, float[] weights)
indices
- The indices in the targets and weights arrays.targets
- The regression targets.weights
- The example weights.default double impurity(int[] indices, int indicesLength, float[] targets, float[] weights)
indices
- The indices in the targets and weights arrays.indicesLength
- The number of values to use in indices.targets
- The regression targets.weights
- The example weights.default double impurity(List<int[]> indices, float[] targets, float[] weights)
indices
- The indices in the targets and weights arrays.targets
- The regression targets.weights
- The example weights.default double impurity(int[] indices, float[] targets, float[] weights)
indices
- The indices in the targets and weights arrays.targets
- The regression targets.weights
- The example weights.default double impurity(IntArrayContainer indices, float[] targets, float[] weights)
indices
- The indices in the targets and weights arrays.targets
- The regression targets.weights
- The example weights.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.