Show / Hide Table of Contents

Class DataFrame2D

Inheritance
System.Object
DataFrame
DataFrame2D
Inherited Members
DataFrame.Shape
DataFrame.Reshape(Int64[])
DataFrame.GetTensor()
DataFrame.Item[UInt32, UInt32]
DataFrame.Item[UInt32]
DataFrame.GetBatch(Int32, Int32, Int32)
DataFrame.Head(UInt32, String)
Namespace: SiaNet.Data
Assembly: SiaNet.dll
Syntax
public class DataFrame2D : DataFrame

Constructors

| Improve this Doc View Source

DataFrame2D(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 Source

Load(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.

| Improve this Doc View Source

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 true [will consider first row as column names].

Returns
Type Description
DataFrame2D
| Improve this Doc View Source

ToFrame(Tensor)

Converts to tensor to data frame.

Declaration
public override void ToFrame(Tensor t)
Parameters
Type Name Description
Tensor t

The t.

Overrides
DataFrame.ToFrame(Tensor)
Exceptions
Type Condition
System.ArgumentException

2D tensor expected

See Also

DataFrame
  • Improve this Doc
  • View Source
Back to top Generated by DocFX