You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by krishan goyal <kr...@gmail.com> on 2020/07/07 12:40:27 UTC

LTR feature computation caching

Hi,

I am adding few features to my LTR model which re-uses the same value for
different features.

For example, I have features that compare different similarities for each
document with the input text: "token1 token2 token3 token4"

My features are

   - No of common terms
   - No of common terms / Term count in document
   - Term count in document - No of common terms
   - 4 - No of common terms
   - Boolean feature : Is no of common terms == 3

As you can see "No of common terms" is recomputed for each feature. Feature
cache caches the values per feature and isn't helpful here.

Is there any way where "No of common terms" is computed per document only
once and can be shared for all features for that document ?