Dents6679 / LSTMusic

A Web-Based Melody Extender: My final year University project.
1 stars 0 forks source link

Melody Requests sometimes fail due to a key error in backend. #13

Open Dents6679 opened 6 months ago

Dents6679 commented 6 months ago

Melodies sometimes cannot be extended due to a key error in the backend when translating from the network's encoded representation to the time series representation.

Frist assumptions are that is caused by a missing key-value pair, As the network's number mappings are constructed from the dataset, and this map is where the error is occuring. Is the LSTM Generating a number for a mapping which was never seen? this makes zero sense as it shouldn't be able to generate something not found in its training data.

Therefore i've got no real idea of what this may actually be!

Solution? Quick Fix: Add a try/catch block to the mapping function, simply retrying a note generation if an exception is raised.

Actual Fix: Use a better model structure and better Music representation.