ApolloResearch / rib

Library for methods related to the Local Interaction Basis (LIB)
MIT License
2 stars 0 forks source link

Use raw MLP class for modular MLPs #269

Closed danbraunai-apollo closed 9 months ago

danbraunai-apollo commented 9 months ago

Use raw MLP class for modular MLPs

Description

Related Issue

Motivation and Context

Having a ModularMLP class which is actually just an MLP with different weights really smells. It also made things awkward when considering what the type of the model.cfg should be (e.g. should your do a super() and then overwrite the parent self.cfg with the child self.cfg? And how to avoid type errors if doing this?).

How Has This Been Tested?

Does this PR introduce a breaking change?