Can't find zero.normalizer pickle file
See original GitHub issueHi 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:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 😃
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
.