Build an anchor contrast from prototype feature sets
Source:R/dkge-anchor-fit.R
dkge_anchor_contrast_from_prototypes.RdBuild an anchor contrast from prototype feature sets
Usage
dkge_anchor_contrast_from_prototypes(
anchors,
positives,
negatives = NULL,
sigma = NULL,
normalize = TRUE
)Arguments
- anchors
Matrix of anchor coordinates (`L x d`).
- positives
Matrix (or vector) of positive prototypes in feature space.
- negatives
Optional matrix (or vector) of negative prototypes.
- sigma
Optional bandwidth for the prototype kernel. Defaults to the median distance between anchors and prototypes.
- normalize
Logical; L2-normalise the resulting contrast.