Model Input Group.Populate Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Populate( | Populates the model input group from a sequence of categorical vectors. |
Populate( | Populates the model input group from the specified vector. |
Populate( | Populates the model input group using the specified data frame and column key. |
Populate( | Populates the model input group using the specified data frame and column keys. |
Populate( | Populates the model input group from a sequence of vectors. |
Populate( | Populates the model input group from the specified vector. |
Populate( | Populates the model input group using the specified data frame and column keys. |
Populate( | Populates the model input group using the specified matrix. |
Populate( | Populates the model input group using the specified data frame, optionally clearing the group's schema first. |
Populate(IEnumerable<ICategoricalVector>)
Populates the model input group
from a sequence of categorical vectors.
public void Populate(
IEnumerable<ICategoricalVector> columns
)
Parameters
- columns IEnumerable<ICategoricalVector>
- A sequence of categorical vectors.
Exceptions
Argument | columns is null. |
Populate(ICategoricalVector, String)
Populates the model input group
from the specified vector.
public void Populate(
ICategoricalVector? values,
string? name = null
)
Parameters
- values ICategoricalVector
- A vector of categorical data.
- name String (Optional)
- (Optional.) The name of the variable.
Populate(IDataFrame, String)
Populates the model input group using the specified
data frame and column key.
public void Populate(
IDataFrame frame,
string? key
)
Parameters
- frame IDataFrame
- A data frame or matrix.
- key String
- The key of the column that contains the data.
Exceptions
Argument | frame is null. |
Populate(IDataFrame, String[])
Populates the model input group using the specified
data frame and column keys.
public void Populate(
IDataFrame frame,
params string[]? keys
)
Parameters
- frame IDataFrame
- A data frame or matrix.
- keys String[]
- The keys of the column that contains the data.
Exceptions
Argument | frame is null. -or- keys is null. |
Populate(IEnumerable<Vector<Double>>, Boolean)
Populates the model input group
from a sequence of vectors.
public void Populate(
IEnumerable<Vector<double>> columns,
bool noIntercept = true
)
Parameters
- columns IEnumerable<Vector<Double>>
- A sequence of categorical vectors.
- noIntercept Boolean (Optional)
- Specifies whether an intercept (constant) term should be included or not.
Exceptions
Argument | columns is null. |
Populate(Vector<Double>, String)
Populates the model input group
from the specified vector.
public void Populate(
Vector<double>? values,
string? name = null
)
Parameters
Populate(IDataFrame, Boolean, String[])
Populates the model input group using the specified
data frame and column keys.
public void Populate(
IDataFrame frame,
bool noIntercept,
string[]? keys
)
Parameters
- frame IDataFrame
- A data frame or matrix.
- noIntercept Boolean
- Specifies whether an intercept (constant) term should be included or not.
- keys String[]
- The keys of the column that contains the data.
Exceptions
Argument | frame is null. -or- keys is null. |
Populate(Matrix<Double>, Boolean, String)
Populates the model input group using the specified
matrix.
public void Populate(
Matrix<double> values,
bool noIntercept = true,
string? prefix = null
)
Parameters
Exceptions
Argument | values is null. |
Populate(IDataFrame, Boolean, String, Boolean, Boolean)
Populates the model input group using the specified
data frame, optionally clearing the group's schema first.
public void Populate(
IDataFrame frame,
bool allowSkip = true,
string? prefix = null,
bool clearSchema = false,
bool noIntercept = true
)
Parameters
- frame IDataFrame
- The data frame from which to populate the model input group.
- allowSkip Boolean (Optional)
- (Optional.) Specifies whether columns with an incompatible data type may be skipped. The default is true.
- prefix String (Optional)
- (Optional.) Prefix to be used when constructing column keys when frame does not have a column index.
- clearSchema Boolean (Optional)
- Specifies whether the group's current schema should be cleared and a new schema inferred from the data frame.
- noIntercept Boolean (Optional)
- Specifies whether an intercept (constant) term should be included or not.
Exceptions
Argument | frame is null. |
Invalid | . |