cnellington / Contextualized

An SKLearn-style toolbox for estimating and analyzing models, distributions, and functions with context-specific parameters.
http://contextualized.ml/
GNU General Public License v3.0
65 stars 9 forks source link

Linear encoder #97

Closed blengerich closed 1 year ago

blengerich commented 2 years ago

It'd be great to have a convenience for linear encoders. This could be done by having a NGAM with depth 1 and width 1, or by creating a new encoder class with a flat beta.

cnellington commented 1 year ago

This is enabled for the contextualized.modules encoders, should we use that functionality or wait for a convenience parameter in easy modules? @blengerich

blengerich commented 1 year ago

Where is it enabled? I'm hoping for an encoder called something like Linear available in contextualized.modules.ENCODERS.

cnellington commented 1 year ago

I see, it's enabled using an MLP with layers=1 so we can easily add this to the Encoders.