Class DataFrame2D
Inherited Members
Namespace: SiaNet.Data
Assembly: SiaNet.dll
Syntax
public class DataFrame2D : DataFrame
Constructors
| Improve this Doc View SourceDataFrame2D(Int64)
Initializes a new instance of the DataFrame2D class.
Declaration
public DataFrame2D(long num_features)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | num_features | The number features this 2D frame have. |
Methods
| Improve this Doc View SourceLoad(Single[])
Loads the specified array into the data frame.
Declaration
public void Load(params float[] array)
Parameters
Type | Name | Description |
---|---|---|
System.Single[] | array | The array data. |
ReadCsv(String, Boolean)
Reads the CSV file and load into the data frame.
Declaration
public static DataFrame2D ReadCsv(string filepath, bool hasHeader = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | filepath | The filepath of the csv. |
System.Boolean | hasHeader | if set to |
Returns
Type | Description |
---|---|
DataFrame2D |
ToFrame(Tensor)
Converts to tensor to data frame.
Declaration
public override void ToFrame(Tensor t)
Parameters
Type | Name | Description |
---|---|---|
Tensor | t | The t. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentException | 2D tensor expected |