added interactive regression example for NeuralNetwork class #843
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear ml5 community,
I'm making a Pull Request(PR). Please see the details below.
β Step 1: Which branch are you submitting to? π²
development to add an example for Regression on the NeuralNetwork class
β Step 2: Describe your Pull Request π
Important: This replaces ml5js/ml5-examples#257 due to examples now being added to the ml5-library repository.
I am submitting a new interactive example for Regression using the NeuralNetwork class.
Previously there were some problems with it, described at #721. Basically, the issue was that not all data points were taken into account (since the validationSplit parameter of the NeuralNetwork training option was permanently set to 0.1).
But since this issue is now closed and changes were merged to the development branch (see f749d4e; src/NeuralNetwork/NeuralNetwork.js; line 108) the example now works as expected.
The idea behind this example is that one can add multiple data points to use regression to fit a line. The already present example of NeuralNetwork_Simple_Regression does not have the feature to add points interactively + to change some core model parameters. This is why I wanted to share this example.
One can add data points and modify:
and see the changes.
I would not be upset if you decide not to add this example, since it might be a little bit redundant compared to NeuralNetwork_Simple_Regression.
β Step 4: Screenshots or Relevant Documentation πΌ
Here's some helpful screenshots and/or documentation of the new feature