ModelInputGroup Class

Represents a group of variables with a specific purpose in a statistical or machine learning model.

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public class ModelInputGroup
Inheritance
Object  →  ModelInputGroup

Remarks

Use the ModelInputGroup class to work with a group of variables as a unit. The ModelInput class defines groups for features and targets (independent and dependent variables, respectively), weights, groupings, and custom groups.

Properties

Category Gets the category of variables the group contains.
Data Gets or sets the data frame like object that supplies the data for the input group.
ExpandedSchema Gets the collection of actual terms represented by the schema.
HasData Gets whether data has been supplied for the group.
Schema Gets the schema for the model input group.

Methods

AddIntercept Adds an intercept term to the group.
AsCategorical Returns a representation of the data as an untyped categorical vector in accordance with a specification.
AsCategoricalColumns Returns a representation of the data as an array of categorical vectors in accordance with a specification.
AsMatrix<T> Returns a matrix representation of the data in accordance with a specification.
AsRowVectors<T> Returns a representation of the data as an array of row vectors in accordance with a specification.
AsVector<T> Returns a vector representation of the data in accordance with a specification.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEncoding Gets the encoding of the specified variable.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InferSchema(String) Sets the model input group's schema to a single term with the specified key and unknown type.
InferSchema(IList<String>, Boolean) Sets the model input group's schema to a collection of terms with the specified keys.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Populate(IEnumerable<ICategoricalVector>) Populates the model input group from a sequence of categorical vectors.
Populate(ICategoricalVector, String) Populates the model input group from the specified vector.
Populate(IDataFrame, String) Populates the model input group using the specified data frame and column key.
Populate(IDataFrame, String[]) Populates the model input group using the specified data frame and column keys.
Populate(IEnumerable<Vector<Double>>, Boolean) Populates the model input group from a sequence of vectors.
Populate(Vector<Double>, String) Populates the model input group from the specified vector.
Populate(IDataFrame, Boolean, String[]) Populates the model input group using the specified data frame and column keys.
Populate(Matrix<Double>, Boolean, String) Populates the model input group using the specified matrix.
Populate(IDataFrame, Boolean, String, Boolean, Boolean) Populates the model input group using the specified data frame, optionally clearing the group's schema first.
RemoveConstantColumns Returns a new model input group that has redundant constant columns removed.
RemoveIntercept Removes an intercept term from the group.
SetEncoding Sets the encoding of the specified variable.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also