Comments (2)
-
Thanks for informing. I guess I have tried different batch sizes but I'm not sure how large I have tried. Batch size depends on the memory size of GPU. Nevertheless, It's worth knowing.
-
I think you can get loss value which is written as cost in my original code.
cost = self.model.train_on_batch(batch[0], batch[1])
And I can't imagine how you can get accuracy but if you can have loss and accuracy after performing each iteration, it seems easy to save weight file by adding simple condition.
if acc > 0.99 or loss < 0.04:
SAVE_MODEL
Related code is here :
Maybe modifying codes in that block would work.
from improving-rnn-recommendation-model.
- Yep, it depends on GPU performance.
- After digging into the source code, I found there was 2 parameter from the command line to force save a weight file in iterations. --progress and --min-iter. I have set the two parameters as 500. the weight file can be generated out quickly.
from improving-rnn-recommendation-model.
Related Issues (8)
- got an error during the train HOT 6
- model image
- Hi how do you process your input data, and if i want to trainning other data , this mode is ok for me ? HOT 5
- get 'ValueError: invalid literal for int() with base 10' message HOT 5
- there is no attribute or method named "self.tarining" HOT 3
- May I know the command line parameter when running LSTM_weight_tying(dim:100) HOT 5
- when enabled --l_emb , then testing the model it will raise an excption.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from improving-rnn-recommendation-model.