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.
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.