CodingTrain / CodingTrain/Toy-Neural-Network-JS

Bias variable names are a little confusing

Offen
#128 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
437
Forks
242
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The bias nodes exist only in pre-output layers, but for example, the weight connected the the hidden bias neuron is called `bias_o`. This confused me a lot, so I think it is easier to understand `bias_o` as `bias_h` and `bias_h` as `bias_i`. This way I think it's easier to read the code that updates the biases, since the gradient from the output layer, for example, is mapped to the bias in the *previous* layer, as the process of backpropagation might suggest by its name.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Search the repository for `bias_o` and `bias_h`, then inspect the bias-update code and surrounding variable definitions. Rename the variables consistently so the output-connected bias uses `bias_h` and the hidden-connected bias uses `bias_i`, while preserving the existing updates.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
machine-learning
Issue-Typ
Refactoring
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.