Companion

object Companion

Properties

Link copied to clipboard

The candidate's vector score.

Functions

Link copied to clipboard
Link copied to clipboard
fun expDecay(x: Expression, target: Expression? = null, scale: Double? = null, midpoint: Double? = null): Expression

Decay x towards zero as it moves away from target, reaching midpoint at a distance of scale. The classic use is recency: x is a datetime key, scale a number of seconds.

Link copied to clipboard
fun gaussDecay(x: Expression, target: Expression? = null, scale: Double? = null, midpoint: Double? = null): Expression

As expDecay, with a Gaussian curve.

Link copied to clipboard
Link copied to clipboard
fun key(name: String): Expression

A payload key, e.g. popularity or a nested seller.rating.

Link copied to clipboard
fun linDecay(x: Expression, target: Expression? = null, scale: Double? = null, midpoint: Double? = null): Expression

As expDecay, with a linear curve.

Link copied to clipboard
fun mult(vararg operands: Expression): Expression
Link copied to clipboard
fun of(value: Number): Expression
Link copied to clipboard
fun sum(vararg operands: Expression): Expression