Class SparseModel<T extends Output<T>>
java.lang.Object
org.tribuo.Model<T>
org.tribuo.SparseModel<T>
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<ModelProvenance>
,Serializable
- Direct Known Subclasses:
SkeletalIndependentRegressionSparseModel
,TreeModel
-
Field Summary
Fields inherited from class org.tribuo.Model
ALL_OUTPUTS, BIAS_FEATURE, featureIDMap, generatesProbabilities, name, outputIDInfo, provenance, provenanceOutput
-
Constructor Summary
ConstructorsConstructorDescriptionSparseModel
(String name, ModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<T> outputIDInfo, boolean generatesProbabilities, Map<String, List<String>> activeFeatures) Constructs a sparse model from the supplied arguments. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies a model, returning a deep copy of any mutable state, and a shallow copy otherwise.Return an immutable view on the active features for each dimension.Methods inherited from class org.tribuo.Model
castModel, copy, generatesProbabilities, getExcuse, getExcuses, getFeatureIDMap, getName, getOutputIDInfo, getProvenance, getTopFeatures, innerPredict, predict, predict, predict, setName, toString, validate
-
Constructor Details
-
SparseModel
public 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.- Parameters:
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.
-
-
Method Details
-
getActiveFeatures
-
copy
-