EfficientNetConfiguration

Options & Configuration · AiDotNet.Configuration

Configuration options for EfficientNet neural network architectures.

For Beginners

EfficientNet is designed to achieve better accuracy with fewer parameters by systematically scaling all network dimensions. Choose a variant based on your accuracy requirements and computational budget.

How It Works

EfficientNet uses compound scaling to balance network depth, width, and resolution. Each variant (B0-B7) represents a different scale factor.

Constructors

Constructor Summary
EfficientNetConfiguration(EfficientNetVariant variant, int numClasses, int inputChannels, int? customInputHeight, double? customWidthMultiplier, double? customDepthMultiplier) Initializes a new instance of the EfficientNetConfiguration class.

Properties

Property Summary
EfficientNetVariant Variant { get; } Gets the EfficientNet variant to use.
double DropConnectRate { get; set; } The stochastic-depth rate of the last MBConv block: block i of n drops its residual branch with probability rate·i/n during training (Tan & Le 2019, Sec.
double? CustomDepthMultiplier { get; } Gets the custom depth multiplier (only used when Variant is Custom).
double? CustomWidthMultiplier { get; } Gets the custom width multiplier (only used when Variant is Custom).
int InputChannels { get; } Gets the number of input channels.
int NumClasses { get; } Gets the number of output classes for classification.
int? CustomInputHeight { get; } Gets the custom input height (only used when Variant is Custom).
int[] InputShape { get; } Gets the computed input shape as [channels, height, width].

Methods

Method Summary
EfficientNetConfiguration CreateB0(int numClasses) Creates an EfficientNet-B0 configuration (recommended default).
double GetDepthMultiplier() Gets the depth multiplier for this variant.
double GetDropoutRate() Gets the dropout rate for this variant.
double GetWidthMultiplier() Gets the width multiplier for this variant.
int GetInputHeight() Gets the recommended input height for this variant.
int GetInputWidth() Gets the recommended input width for this variant.