Monty.Frameworks.Models.Salience.Strategies.Vocus2.WeightedSum (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

Adds the feature maps up, each scaled by its weight.

Mirrors tbp/monty/frameworks/models/salience/strategies/vocus2/vocus2.py::WeightedSum. A weight of zero silences a channel without having to reconfigure the strategy that produced it.

Note the difference from WeightedMean: this one does not renormalise, so a config's weights set the overall scale of the salience map as well as the relative importance of the channels.

Summary

Types

t()

@type t() :: %Monty.Frameworks.Models.Salience.Strategies.Vocus2.WeightedSum{
  weights: %{optional(String.t()) => number()}
}

Functions

new(weights)

@spec new(%{optional(String.t()) => number()}) :: t()