Skip to content

something wrong with the parameters when config the BLSTM  #1

@hongyuK

Description

@hongyuK

There is a ValueError when I git down all the code and run the code follow the guidance.
Traceback is follow:

Traceback (most recent call last): File "vuldeepecker.py", line 100, in main() File "vuldeepecker.py", line 95, in main blstm = BLSTM(df,name=base) File "D:\vuldetect\dataset\VulDeePecker-master\VDPython-master\blstm.py", line 40, in init test_size=0.2, stratify=labels[resampled_idxs]) File "F:\Anaconda\envs\tensorflow\lib\site-packages\sklearn\model_selection_split.py", line 2100, in train_test_split
default_test_size=0.25) File "F:\Anaconda\envs\tensorflow\lib\site-packages\sklearn\model_selection_split.py", line 1782, in _validate_shuffle_split
train_size) ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions