Show / Hide Table of Contents

Class DataFrameIter

Inheritance
System.Object
DataFrameIter
Namespace: SiaNet.Data
Assembly: SiaNet.dll
Syntax
public class DataFrameIter

Constructors

| Improve this Doc View Source

DataFrameIter(DataFrame, DataFrame)

Initializes a new instance of the DataFrameIter class.

Declaration
public DataFrameIter(DataFrame X, DataFrame Y = null)
Parameters
Type Name Description
DataFrame X

The X data frame.

DataFrame Y

The Y data frame.

| Improve this Doc View Source

DataFrameIter(Tensor, Tensor)

Initializes a new instance of the DataFrameIter class.

Declaration
public DataFrameIter(Tensor X, Tensor Y = null)
Parameters
Type Name Description
Tensor X

The X Tensor.

Tensor Y

The Y Tensor.

Properties

| Improve this Doc View Source

DataSize

Gets the size of the data which is typically the number of records or images to be processed.

Declaration
public long DataSize { get; }
Property Value
Type Description
System.Int64

The size of the data.

Methods

| Improve this Doc View Source

GetBatch()

Gets the next batch of data to process.

Declaration
public (Tensor, Tensor)GetBatch()
Returns
Type Description
System.ValueTuple<Tensor, Tensor>
| Improve this Doc View Source

GetBatchX()

Gets the batch for X data frame.

Declaration
public Tensor GetBatchX()
Returns
Type Description
Tensor
| Improve this Doc View Source

GetBatchY()

Gets the batch Y data frame.

Declaration
public Tensor GetBatchY()
Returns
Type Description
Tensor
| Improve this Doc View Source

Next()

Navigates to next batch.

Declaration
public bool Next()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Reset()

Resets this batch size.

Declaration
public void Reset()
| Improve this Doc View Source

SetBatchSize(Int32)

Sets the size of the batch.

Declaration
public void SetBatchSize(int _batchSize)
Parameters
Type Name Description
System.Int32 _batchSize

Size of the batch.

| Improve this Doc View Source

Shuffle()

Shuffles this data set randomly.

Declaration
public void Shuffle()
| Improve this Doc View Source

Split(Double)

Splits the current dataset to train and test.

Declaration
public (DataFrameIter, DataFrameIter)Split(double testDataSize = 0.33000001311302185)
Parameters
Type Name Description
System.Double testDataSize

Size of the test data.

Returns
Type Description
System.ValueTuple<DataFrameIter, DataFrameIter>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX