Michael Nolan
m-nolan / mrae Goto Github PK
View Code? Open in Web Editor NEWMultiblock RNN Autoencoder
License: MIT License
Multiblock RNN Autoencoder
License: MIT License
Line 20 in 1951d46
The device
input to the model is entirely for show. This needs to be applied to all parts of the model. Also, every array created within the model needs to be assigned to the appropriate memory location.
Line 111 in a32fd63
The current training loop runs and optimizes the model to minimize training loss. This has no stop point beyond the max iterations argument.
This needs an early stopping mechanism, either a moving average of the loss delta, some train/valid loss crossover, etc.
Test with the sample dataset.
Add a test with random data (?) to show that it works to stop training if it isn't learning anything.
Line 10 in 1951d46
The directory management and hparam.yaml file management should be refactored to utils.py
.
The rest of the script should be refactored into a def main()
method that's called from the if __name__ == "__main__": ...
block at the end of the file. Maybe the "create_mrae_from_hyperparams()" method, etc, could be moved to utils.py
as well.
Line 267 in 7f6743c
Something breaks when switching to CUDA. Memory blows up by training epoch 10, max.
Line 114 in 1951d46
I don't plan to change the model architecture at this point, other than perhaps to move the training loop out of the MRAE model and into a separate training run manager class. Regardless, having the current code state (i.e. git commit hash, etc) saved into the run directory along with the model checkpoints is a good idea. Either adding this at the run initialization or at the beginning of the training script would work, I think.
Line 204 in 1951d46
The train/valid objective and loss outputs should be saved for each epoch. Maybe some stats over the batch as well?
You would want to be able to write to this again after resuming a previous run, so something simple like a .csv file would work fine.
ex:
epoch_idx,train_total_loss,train_output_loss,train_block_loss_0,train_block_loss_1,...,valid_total_loss,valid_output_loss,...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.