WeightBySpaceClause

WeightBySpaceClause(space_weight_map=<factory>)

Parameters

space_weight_map
SpaceWeightMap
default:"<factory>"
Mapping of spaces to their corresponding weight parameters.

Inheritance

Inheritance Chain:
  • WeightBySpaceClause
  • QueryClause
  • NLQCompatible
  • ABC

Properties

annotation_by_space_annotation
dict[str, str]
Mapping of space annotations to their corresponding annotations.
params
Sequence[TypedParam | Evaluated[TypedParam]]
Sequence of parameters used in this clause.
space_weight_map
SpaceWeightMap
The mapping of spaces to their weight parameters.

Static Methods

from_params()

from_params(weight_param_by_space, all_space) -> WeightBySpaceClause
weight_param_by_space
Mapping[Space, NumericParamType]
required
Mapping of spaces to their weight parameters.
all_space
Sequence[Space]
required
All spaces available for weighting.
Returns: WeightBySpaceClause - A new weight by space clause instance.