public abstract class RegressionInfo extends Object implements OutputInfo<Regressor>
Regressor
s.
Stores the observed min, max, mean and variance for each dimension.
Modifier and Type | Field and Description |
---|---|
protected Map<String,com.oracle.labs.mlrg.olcut.util.MutableLong> |
countMap |
protected Map<String,com.oracle.labs.mlrg.olcut.util.MutableDouble> |
maxMap |
protected Map<String,com.oracle.labs.mlrg.olcut.util.MutableDouble> |
meanMap |
protected Map<String,com.oracle.labs.mlrg.olcut.util.MutableDouble> |
minMap |
protected long |
overallCount |
protected Map<String,com.oracle.labs.mlrg.olcut.util.MutableDouble> |
sumSquaresMap |
protected int |
unknownCount |
Modifier and Type | Method and Description |
---|---|
abstract RegressionInfo |
copy()
Generates a copy of this OutputInfo, including it's mutability.
|
ImmutableOutputInfo<Regressor> |
generateImmutableOutputInfo()
Generates an
ImmutableOutputInfo which has a copy of the data
in this OutputInfo , but also has id values and is immutable. |
MutableOutputInfo<Regressor> |
generateMutableOutputInfo()
Generates a mutable copy of this
OutputInfo . |
Set<Regressor> |
getDomain()
Returns a set containing a Regressor for each dimension with the minimum value observed.
|
double |
getMax(String name)
Gets the maximum value this RegressionInfo has seen, or NaN if it's not seen that dimension.
|
double |
getMean(String name)
Gets the mean value this RegressionInfo has seen, or NaN if it's not seen that dimension.
|
double |
getMin(String name)
Gets the minimum value this RegressionInfo has seen, or NaN if it's not seen anything.
|
int |
getUnknownCount()
Returns the number of unknown
Output instances (generated by OutputFactory.getUnknownOutput() )
that this OutputInfo has seen. |
double |
getVariance(String name)
Gets the variance this RegressionInfo has seen, or NaN if it's not seen that dimension.
|
Iterable<com.oracle.labs.mlrg.olcut.util.Pair<String,Long>> |
outputCountsIterable()
An Iterable over the possible outputs and the number of times they were observed.
|
int |
size()
The number of dimensions this OutputInfo has seen.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toReadableString
public int getUnknownCount()
OutputInfo
Output
instances (generated by OutputFactory.getUnknownOutput()
)
that this OutputInfo has seen.getUnknownCount
in interface OutputInfo<Regressor>
public Set<Regressor> getDomain()
getDomain
in interface OutputInfo<Regressor>
public double getMin(String name)
name
- The dimension to check.public double getMax(String name)
name
- The dimension to check.public double getMean(String name)
name
- The dimension to check.public double getVariance(String name)
name
- The dimension to check.public int size()
size
in interface OutputInfo<Regressor>
public ImmutableOutputInfo<Regressor> generateImmutableOutputInfo()
OutputInfo
ImmutableOutputInfo
which has a copy of the data
in this OutputInfo
, but also has id values and is immutable.generateImmutableOutputInfo
in interface OutputInfo<Regressor>
public MutableOutputInfo<Regressor> generateMutableOutputInfo()
OutputInfo
OutputInfo
.generateMutableOutputInfo
in interface OutputInfo<Regressor>
public abstract RegressionInfo copy()
OutputInfo
copy
in interface OutputInfo<Regressor>
public Iterable<com.oracle.labs.mlrg.olcut.util.Pair<String,Long>> outputCountsIterable()
OutputInfo
Provides similar functionality to an iterator over the entrySet of a Map, though this is a copy of the data and immutable.
outputCountsIterable
in interface OutputInfo<Regressor>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.