public abstract class SparseModel<T extends Output<T>> extends Model<T>
ALL_OUTPUTS, BIAS_FEATURE, featureIDMap, generatesProbabilities, name, outputIDInfo, provenance, provenanceOutput
Constructor and Description |
---|
SparseModel(String name,
ModelProvenance provenance,
ImmutableFeatureMap featureIDMap,
ImmutableOutputInfo<T> outputIDInfo,
boolean generatesProbabilities,
Map<String,List<String>> activeFeatures)
Constructs a sparse model from the supplied arguments.
|
Modifier and Type | Method and Description |
---|---|
SparseModel<T> |
copy()
Copies a model, returning a deep copy of any mutable state, and a shallow copy otherwise.
|
Map<String,List<String>> |
getActiveFeatures()
Return an immutable view on the active features for each dimension.
|
copy, generatesProbabilities, getExcuse, getExcuses, getFeatureIDMap, getName, getOutputIDInfo, getProvenance, getTopFeatures, innerPredict, predict, predict, predict, setName, toString, validate
public SparseModel(String name, ModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, boolean generatesProbabilities, Map<String,List<String>> activeFeatures)
name
- The model name.provenance
- The model provenance.featureIDMap
- The features the model knows.outputIDInfo
- The outputs the model can produce.generatesProbabilities
- Does this model generate probabilistic outputs.activeFeatures
- The active features in this model.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.