question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find zero.normalizer pickle file

See original GitHub issue

Hi Nice work first! When I have prepared train and test set for in-hospital-mortality. I get an error like this File "E:/PythonProject/mimic3-benchmarks/mimic3models/in_hospital_mortality/main.py", line 58, in <module> normalizer.load_params(normalizer_state) File "E:\PythonProject\mimic3-benchmarks\mimic3models\preprocessing.py", line 215, in load_params with open(load_file_path, "rb") as load_file: OSError: [Errno 22] Invalid argument: 'E:/PythonProject/mimic3-benchmarks/mimic3models/in_hospital_mortality\\ihm_ts1.0.input_str:previous.start_time:zero.normalizer'

I follow the instructions in the Building a benchmark but I didn’t got the zero.normalizer file. Can anyone help me?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
farbodabcommented, Mar 12, 2020

@safynaz I assume you figured it out. But for those running into the same issue, it’s being caused by windows not liking the ‘:’ character in file names.

Solution:

Line 55 of ‘main.py’ in mimic3models\in_hospital_mortality

Change to: normalizer_state = ‘ihm_ts{}.input_str_{}.start_time_zero.normalizer’.format(args.timestep, args.imputation)

Should fix it 😃

1reaction
hrayrharcommented, Aug 5, 2018

I haven’t uploaded normalizer state files for all configuration. To create a state file with a specific configuration use script create_normalizer_state.py.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load files using pickle and multiple modules
The issue is that you're pickling objects defined in Settings by actually running the 'Settings' module, then you're trying to unpickle the ...
Read more >
How can I solve it ,TypeError: cannot pickle 'dict_keys' object?
I'm new to the DataLoader function but it sounds like by setting num_workers to 0 that you removed any parallel processing. Is that...
Read more >
pandas.Series.to_pickle — pandas 1.5.2 documentation
File path where the pickled object will be stored. compressionstr or dict, default 'infer'. For on-the-fly compression of the output data. If 'infer ......
Read more >
pickle — Python object serialization — Python 3.11.1 ...
The pickle module keeps track of the objects it has already serialized, so that later references to the same object won't be serialized...
Read more >
Loading and Saving Models - Microsoft Learn
However, for models trained from external sources such as the ML.NET C# application, pickle cannot be used, and the load_model() method needs to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found