Skip to content

feat: add AlphaDropout layer with hot-pink node color#340

Open
Sickwoman wants to merge 1 commit intoc2siorg:mainfrom
Sickwoman:feature/add-alpha-dropout-layer
Open

feat: add AlphaDropout layer with hot-pink node color#340
Sickwoman wants to merge 1 commit intoc2siorg:mainfrom
Sickwoman:feature/add-alpha-dropout-layer

Conversation

@Sickwoman
Copy link
Copy Markdown
Contributor

@Sickwoman Sickwoman commented Apr 27, 2026

Backend:

  • Add customalphadropout to model_generation._build_layer()
  • Validates rate in (0, 1) exclusive — strict bounds for AlphaDropout
  • Falls back to rate=0.5 on empty input
  • 9 unit tests: valid rates, edge cases, invalid inputs, full model pipeline

Frontend:

  • AlphaDropoutNode component (hot-pink: rgb(220,53,153) / header rgb(190,24,93))
  • Color token: node-alphadropout in tailwind.config.js
  • Registered in Canvas.jsx nodeTypes and defaultParams
  • Added to Sidebar.jsx layer palette
  • NodePropertiesPanel.jsx config with SELU usage hint
  • Helpers.jsx validation — rate must be in (0,1) exclusive
  • 8 frontend tests covering render, configured, not-configured states

All 171 backend tests pass. All 50 frontend tests pass.

Description

Brief summary of the changes. Reference any related issues.

Fixes #(issue number)

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

How Has This Been Tested?

Describe the tests you ran to verify your changes.

  • Existing tests pass
  • New tests added
  • Manual testing

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review
  • I have added/updated documentation as needed
  • My changes generate no new warnings
  • Tests pass locally

@Sickwoman Sickwoman force-pushed the feature/add-alpha-dropout-layer branch from 38bd6a0 to 6c25845 Compare April 28, 2026 05:27
Backend:
- Add customalphadropout to model_generation._build_layer()
- Validates rate in (0, 1) exclusive — strict bounds for AlphaDropout
- Falls back to rate=0.5 on empty input
- 9 unit tests: valid rates, edge cases, invalid inputs, full model pipeline

Frontend:
- AlphaDropoutNode component (hot-pink: rgb(220,53,153) / header rgb(190,24,93))
- Color token: node-alphadropout in tailwind.config.js
- Registered in Canvas.jsx nodeTypes and defaultParams
- Added to Sidebar.jsx layer palette
- NodePropertiesPanel.jsx config with SELU usage hint
- Helpers.jsx validation — rate must be in (0,1) exclusive
- 8 frontend tests covering render, configured, not-configured states

All 171 backend tests pass. All 50 frontend tests pass.
@Sickwoman Sickwoman force-pushed the feature/add-alpha-dropout-layer branch from 6c25845 to 96906a0 Compare April 28, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant