Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

MAX_EXPR_LENGTH did not take effect #11

Open
wangtianqi1993 opened this issue Jan 22, 2025 · 1 comment
Open

MAX_EXPR_LENGTH did not take effect #11

wangtianqi1993 opened this issue Jan 22, 2025 · 1 comment

Comments

@wangtianqi1993
Copy link

When running train_AFF.py, it was found that the MAX_EXPR_LENGTH parameter in alphagen.config.py did not take effect, meaning there is currently no parameter to control the length of the generated expressions.

@DulyHao
Copy link
Owner

DulyHao commented Jan 24, 2025

Yes,thank you for your feedback, this is a bug caused by code iteration.

You could set MAX_EXPR_LENGTH through modifying following code in train_aff.py:

for seed in seeds:
    reseed_everything(seed)
    class cfg:
        name = f'{save_name}_{instruments}_{train_end}_{seed}'
        # 
        max_len = 20   《----------------------  Modify Here to control max length

        batch_size = 256
        potential_size = 100
        n_layers = 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants