Table of Contents

Class Sent140FederatedBenchmarkOptions

Namespace
AiDotNet.Configuration
Assembly
AiDotNet.dll

Configuration options for running the Sent140 LEAF federated benchmark suite.

public sealed class Sent140FederatedBenchmarkOptions
Inheritance
Sent140FederatedBenchmarkOptions
Inherited Members

Remarks

Sent140 is a federated sentiment classification benchmark derived from tweets. LEAF stores the dataset as JSON where each "user" corresponds to a federated client.

For Beginners: You provide the train/test JSON files, and AiDotNet loads the per-user partitions, tokenizes the tweet text, and evaluates your model.

Properties

LoadOptions

Gets or sets load options controlling how many users/clients are loaded.

public LeafFederatedDatasetLoadOptions LoadOptions { get; set; }

Property Value

LeafFederatedDatasetLoadOptions

MaxSamplesPerUser

Gets or sets the maximum number of samples to use per user/client (null uses all available).

public int? MaxSamplesPerUser { get; set; }

Property Value

int?

MaxSequenceLength

Gets or sets the maximum token sequence length for each tweet after tokenization.

public int? MaxSequenceLength { get; set; }

Property Value

int?

Remarks

If null, AiDotNet uses an industry-standard default (and smaller defaults in CI mode).

TestFilePath

Gets or sets the optional path to the Sent140 test split JSON file.

public string? TestFilePath { get; set; }

Property Value

string

Remarks

If null, the suite will evaluate on the train split (CI/local-only convenience).

TokenizerTrainingSampleCount

Gets or sets the maximum number of texts used to train a default WordPiece tokenizer when needed.

public int? TokenizerTrainingSampleCount { get; set; }

Property Value

int?

Remarks

If null, AiDotNet uses a sensible default (smaller in CI mode).

TokenizerVocabularySize

Gets or sets the desired WordPiece vocabulary size when the model result does not already provide a tokenizer.

public int? TokenizerVocabularySize { get; set; }

Property Value

int?

Remarks

If null, AiDotNet uses an industry-standard default (and smaller defaults in CI mode).

TrainFilePath

Gets or sets the path to the Sent140 train split JSON file.

public string? TrainFilePath { get; set; }

Property Value

string