Comments (3)
The simplest way to do it as follows:
- Start training with mode=epe-all (regardless of the top_n value) for some epochs (e.g, say 50) and save a snapshot.
- Then continue training by loading the snapshot and change the mode=epe-top-n and top_n=10 (supposed that you have 20 hypotheses at the beginning) and train for 50 epochs.
- Continue doing the same until you training the last step with mode=epe and top_n=1.
Alternatively, you can do the following:
epoch_loss_type_dict = ['epe-all', 'epe-top-10', 'epe-top-5', 'epe-top-2', 'epe', 'epe']
for epoch in range(1, total_epochs + 1):
train_loss(....., loss_type=epoch_loss_type_dict[int((epoch - 1) / 50)])
Note that in this case, you need to parse the strings as follows:
'epe-all' to two parameters mode='epe-all' and top_n=1
'epe-top-10' to two parameters mode='epe-top-n' and top_n=10
'epe-top-5' to two parameters mode='epe-top-n' and top_n=5
'epe-top-2' to two parameters mode='epe-top-n' and top_n=2
'epe' to two parameters mode='epe' and top_n=1
Hope this helps. In case of more questions, please let me know.
Best,
from multimodal-future-prediction.
Yes, you can do that. It will do the same thing.
Best,
from multimodal-future-prediction.
Hi Osama,
Thank you very much for your solutions! May I ask another question?
Is it necessary to add two parameters (the mode and the top-n) in the loss function? Based on my understanding, the modes of "epe-all" and "epe" are variants of "epe-top-n" mode, can we just use the "epe-top-n" mode and compute the loss only based on the top-n value. In this case, when we set top-n to 20, the "epe-top-n" is actually doing the "epe-all" job, and when the top-n is 1, the "epe-top-n" is doing the "epe" job.
Best,
Sha
from multimodal-future-prediction.
Related Issues (12)
- OSError: dlopen(wemd/lib/libwemd.so, 6): image not found HOT 5
- Question about training the fitting stage HOT 3
- Training scripts for SDD dataset
- What is the `tb` package? HOT 4
- EMD on CPI dataset HOT 2
- Training scripts for CPI dataset HOT 14
- Figure3 on paper HOT 4
- Questions about sampling network training process HOT 7
- Questions about dataset creation HOT 3
- Feasibility for the training script HOT 1
- Questions about the optimizers used for training the sampling and fitting neural networks HOT 3
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 multimodal-future-prediction.