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

ValueError: '0' is not in list #122

Open
Ownspirit opened this issue Mar 3, 2022 · 0 comments
Open

ValueError: '0' is not in list #122

Ownspirit opened this issue Mar 3, 2022 · 0 comments

Comments

@Ownspirit
Copy link

When I run below command, got a error message. Any idea to fix it? Thanks.

python -um mimic3models.length_of_stay.main --network mimic3models/keras_models/lstm.py --dim 64 --timestep 1.0 --depth 1 --dropout 0.3 --mode train --batch_size 8 --partition custom --output_dir mimic3models/length_of_stay
Traceback (most recent call last):
  File "G:\Anaconda3\envs\keras\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "G:\Anaconda3\envs\keras\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "E:\Model\NewYerevaNN\mimic3-benchmarks\mimic3models\in_hospital_mortality\main.py", line 109, in <module>
    train_raw = utils.load_data(train_reader, discretizer, normalizer, args.small_part)
  File "E:\Model\NewYerevaNN\mimic3-benchmarks\mimic3models\in_hospital_mortality\utils.py", line 18, in load_data
    data = [discretizer.transform(X, end=t)[0] for (X, t) in zip(data, ts)]
  File "E:\Model\NewYerevaNN\mimic3-benchmarks\mimic3models\in_hospital_mortality\utils.py", line 18, in <listcomp>
    data = [discretizer.transform(X, end=t)[0] for (X, t) in zip(data, ts)]
  File "E:\Model\NewYerevaNN\mimic3-benchmarks\mimic3models\preprocessing.py", line 109, in 
    write(data, bin_id, channel, row[j], begin_pos)
  File "E:\Model\NewYerevaNN\mimic3-benchmarks\mimic3models\preprocessing.py", line 80, in write
    category_id = self._possible_values[channel].index(value)
ValueError: '0' is not in list
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

1 participant