Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

What dose Space Searching and Final Training do? #52

Open
gzzzzzd opened this issue Aug 8, 2022 · 1 comment
Open

What dose Space Searching and Final Training do? #52

gzzzzzd opened this issue Aug 8, 2022 · 1 comment
Labels
question Further information is requested

Comments

@gzzzzzd
Copy link

gzzzzzd commented Aug 8, 2022

Hello,First of all I would like to thank you for this excellent framework.
I get a question :
Can I just train the model once and skip the Space Searching ?
image
image

@zhangxjohn
Copy link
Collaborator

Thank you for your interest in HpyerTS. If you only want to train once without performing the search, you can do it in one of two ways:
1、Set max_trials=1, final_retrain_on_wholedata=False (in make_experiment);
2、If you want to train a particular model only once (e.g., N-Beats),you can customize the search space and set max_trials=1. Such as:

from hyperts import make_experiment
from hypernets.core.search_space import Choice, Int, Real
from hyperts.framework.search_space.macro_search_space import DLForecastSearchSpace

custom_search_space = DLForecastSearchSpace(
    enable_deepar=False, 
    enable_hybirdrnn=False, 
    enable_lstnet=False, 
    enable_nbeats=True,
    nebeats_init_kwargs = {
        'nb_blocks_per_stack': 2,
        'hidden_layer_units': 32,
        ...
    }
)

experiment = make_experiment(train_data.copy(), 
                             task='forecast',
                             timestamp='TimeStamp',
                             search_space=custom_search_space,
                             max_trials=1,
                             final_retrain_on_wholedata=False) 

However, we do not recommend that final_retrain_on_wholedata=False, as this may affect performance.

@zhangxjohn zhangxjohn added the question Further information is requested label Aug 9, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants