csinva / imodelsX

Scikit-learn friendly library to interpret, and prompt-engineer text datasets using large language models.
https://csinva.io/imodelsX/
MIT License
161 stars 26 forks source link

Does this implementation accept multiple hidden layers? #10

Closed valeman closed 1 month ago

valeman commented 6 months ago

I was wondering if this implementation allowed for multiple hidden layers that is key in getting good performance.

csinva commented 6 months ago

I just pushed support for this :)

You'll need to update the package (pip install imodelsx), then can pass hidden_layer_sizes list for multiple layers (like sklearn's MLP). See the second cell of the updated notebook for an example.