Class | Description |
---|---|
BindingDSL |
Groovy DSL definition for configuring LensKit recommenders.
|
ConfigHelpers |
LensKit configuration helper utilities.
|
ConfigurationLoader |
Load LensKit configurations using the configuration DSL.
|
GroovyUtils |
Support utilities for LensKit's use of Groovy.
|
LenskitConfigDSL |
Methods for the LensKit configuration DSL.
|
LenskitConfigScript |
Base class for LensKit configuration scripts.
|
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.