deeplearning4j / deeplearning4j-examples

Deeplearning4j Examples (DL4J, DL4J Spark, DataVec)
http://deeplearning4j.konduit.ai
Other
2.46k stars 1.82k forks source link

Support turning off truncated backpropagation. Other minor fixes. #1071

Closed DonaldAlan closed 1 year ago

DonaldAlan commented 1 year ago

Support turning off truncated backpropagation. Print out configuration info to stdout and to composition output file (in comments). Use JFileChooser in PlayMelodyStrings. Improve documentation. Clean up code.

What changes were proposed in this pull request?

Support turning off truncated backpropagation by setting tbpttLength=0.

Print out configuration information as a comment in the output composition file and to stdout. (This helps with benchmarking.)

Use JFileChooser in PlayMelodyStrings to choose the file to play melodies from. By default it uses the directory where MelodyModelingExample saves compositions.

Improve documentation. Clean up code.

How was this patch tested?

I ran MelodyModelingExample several times, with tbpttLength=0 and tbpttLength>0. I verified that composition files appear in the expected location.

Please review https://github.com/eclipse/deeplearning4j/blob/master/CONTRIBUTING.md before opening a pull request.