Table of Contents

Class LeafFederatedDataset<TInput, TOutput>

Namespace
AiDotNet.FederatedLearning.Benchmarks.Leaf
Assembly
AiDotNet.dll

Represents a LEAF dataset with optional train/test splits.

public sealed class LeafFederatedDataset<TInput, TOutput>

Type Parameters

TInput

The client feature type.

TOutput

The client label type.

Inheritance
LeafFederatedDataset<TInput, TOutput>
Inherited Members

Remarks

For Beginners: Many datasets ship with a training split (used to learn) and a testing split (used to evaluate). This type groups those together.

Constructors

LeafFederatedDataset(LeafFederatedSplit<TInput, TOutput>, LeafFederatedSplit<TInput, TOutput>?)

Initializes a new instance of the LeafFederatedDataset<TInput, TOutput> class.

public LeafFederatedDataset(LeafFederatedSplit<TInput, TOutput> train, LeafFederatedSplit<TInput, TOutput>? test = null)

Parameters

train LeafFederatedSplit<TInput, TOutput>

The train split.

test LeafFederatedSplit<TInput, TOutput>

The optional test split.

Properties

Test

Gets the optional test split.

public LeafFederatedSplit<TInput, TOutput>? Test { get; }

Property Value

LeafFederatedSplit<TInput, TOutput>

Train

Gets the training split.

public LeafFederatedSplit<TInput, TOutput> Train { get; }

Property Value

LeafFederatedSplit<TInput, TOutput>