Skip to main content

ClikaRT::nn::SoftplusOptions

struct

Header: ClikaRT/nn/generated/activation.h

Settings of Softplus: chain the setters, or assign the fields.

Member functions​

SoftplusOptions()​

SoftplusOptions() =default

Declared in ClikaRT/nn/generated/activation.h, line 765

SoftplusOptions(double, double)​

explicit SoftplusOptions(double beta, double threshold = 20.0)

SoftplusOptions(beta, threshold): the positional form.

Declared in ClikaRT/nn/generated/activation.h, line 767

beta(double)​

SoftplusOptions& beta(double v)

Sets beta, the sharpness; larger approaches ReLU.

Declared in ClikaRT/nn/generated/activation.h, line 771

beta()​

double beta() const

Reads beta.

Declared in ClikaRT/nn/generated/activation.h, line 773

threshold(double)​

SoftplusOptions& threshold(double v)

Sets threshold, the switch point on beta * input above which the exact linear input is returned.

Declared in ClikaRT/nn/generated/activation.h, line 779

threshold()​

double threshold() const

Reads threshold.

Declared in ClikaRT/nn/generated/activation.h, line 781

Data members​

beta_​

double beta_ = 1.0

The sharpness; larger approaches ReLU. Default 1.0.

Declared in ClikaRT/nn/generated/activation.h, line 775

threshold_​

double threshold_ = 20.0

The switch point on beta * input above which the exact linear input is returned. Default 20.0.

Declared in ClikaRT/nn/generated/activation.h, line 784