Skip to content

feat(nn): add SingleLayerPerceptron models - #309

Open
ChickenisLegit wants to merge 1 commit into
pyfenn:mainfrom
ChickenisLegit:feat/single-layer-perceptron
Open

feat(nn): add SingleLayerPerceptron models#309
ChickenisLegit wants to merge 1 commit into
pyfenn:mainfrom
ChickenisLegit:feat/single-layer-perceptron

Conversation

@ChickenisLegit

Copy link
Copy Markdown

This PR adds the SingleLayerPerceptronClassifier and SingleLayerPerceptronRegressor as requested in #220.

These models subclass MLPClassifier and MLPRegressor but restrict the network to have zero hidden layers. The BaseMLP validation logic was updated to support empty hidden layer sizes.

Unit tests have been provided for both classes.

Fixes #220.

Adds SingleLayerPerceptronClassifier and SingleLayerPerceptronRegressor which are essentially MLPs with zero hidden layers. Tests are included.

Resolves pyfenn#220
@ApusBerliozi
ApusBerliozi requested a review from blkdmr August 8, 2026 08:29
@ApusBerliozi ApusBerliozi added enhancement New feature or request templates Relates to templates labels Aug 8, 2026
@blkdmr

blkdmr commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Hi @ChickenisLegit, thank you for your work! However, this issue was already assigned to another contributor, so your PR will not be accepted unless the designed contributor decide to quit. Sorry for the inconvenience.

@blkdmr

blkdmr commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Btw @ChickenisLegit it was a very good work, thank you for very much for it! If you want you can leave this PR opened, you are the second in the priority order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request templates Relates to templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add basic SingleLayerPerceptron Class

3 participants