BrainJS / BrainJS/train-stream

train-stream does not support the Recurrent class

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I tried to configure a Recurrent network to use train-stream, but ran into the following error:
```
one-brain-1 | node:internal/event_target:1037
one-brain-1 | process.nextTick(() => { throw err; });
one-brain-1 | ^
one-brain-1 |
one-brain-1 | TypeError [Error]: neuralNetwork.updateTrainingOptions is not a function
one-brain-1 | at new TrainStream (/one/node_modules/train-stream/dist/index.js:41:23)
one-brain-1 | at MessagePort. (file:///one/src/encoder.js:57:29)
one-brain-1 | at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20)
one-brain-1 | at exports.emitMessage (node:internal/per_context/messageport:23:28)
one-brain-1 | Emitted 'error' event on Worker instance at:
one-brain-1 | at [kOnErrorMessage] (node:internal/worker:326:10)
one-brain-1 | at [kOnMessage] (node:internal/worker:337:37)
one-brain-1 | at MessagePort. (node:internal/worker:232:57)
one-brain-1 | at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20)
one-brain-1 | at exports.emitMessage (node:internal/per_context/messageport:23:28)
one-brain-1 |
one-brain-1 | Node.js v20.3.1
```
I was unsure if this was a known issue. The docs say nothing about supporting the Recurrent class, nor do I even think the class is ready, in vanilla Brain.js? I'm not sure, but I've struggled to make one of these networks work in any environment.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia da src/encoder.js e dalla costruzione di TrainStream mostrata nello stack trace; riproduci la configurazione Recurrent segnalata e traccia la chiamata mancante a updateTrainingOptions. Il lavoro è completato quando train-stream supporta Recurrent senza questo errore oppure stabilisce chiaramente il comportamento supportato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
node.js, typescript
Ambito
backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.