brain.js icon indicating copy to clipboard operation
brain.js copied to clipboard

[Feature Request] - Typescript type definition file - ITrainStreamOptions should extend INeuralNetworkTrainingOptions

Open michaelonubogu opened this issue 7 years ago • 2 comments

Alt Text

What is wrong?

The ITrainStreamOptions interface does not allow one to add neural net-specific training options to the neural net of the train stream - even though internally, the Train stream inherits default options from the INeuralNetworkTrainingOptions interface.

When not using strict typing, adding INeuralNetworkTrainingOption properties i.e. errorThreshold, iterations - to the TrainStream object does in fact affect the neural net's training characteristics used in the Train stream.

Where does it happen?

When using TrainStream

How do we replicate the issue?

Create a TrainStream and view the options of the trainStream at runtime

How important is this (1-5)?

2

Expected behavior (i.e. solution)

ITrainStreamOptions should probably extend INeuralNetworkTrainingOptions.

Other Comments

I wanted to ask first to see if this is necessary. If it is, I could do a PR. Up to the team I guess.

michaelonubogu avatar May 20 '19 16:05 michaelonubogu

Sound good to me, can you create a PR please?

mubaidr avatar Oct 07 '19 03:10 mubaidr

Should be fixed after we complete emigration to typescript (very soon).

https://github.com/BrainJS/brain.js/issues/551

mubaidr avatar Oct 05 '20 09:10 mubaidr