Skip navigation links

Package org.lenskit.config

Configuration loading support.

See: Description

Package org.lenskit.config Description

Configuration loading support.

This package provides support for loading LensKit configurations from configuration files written using a Groovy-based DSL. For example, the following:


// configure the item scorer
bind ItemScorer to ItemItemScorer
// set up a baseline scorer
bind (BaselineScorer, ItemScorer) to ItemMeanRatingPredictor
// use the baseline for normalizing user ratings
bind UserVectorNormalizer to BaselineSubtractingUserVectorNormalizer
// the default neighborhood size is 20, so the next line isn't technically needed
set NeighborhoodSize to 20

See ConfigHelpers for entry points to quickly load configurations, and ConfigurationLoader for more control over the configuration load process.

Skip navigation links