-
Notifications
You must be signed in to change notification settings - Fork 23
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
KeyError: 'opensmile' #6
Comments
similar problem happens, when running from this line below ser-with-w2v2/run_paper_experiments.sh Line 23 in c9be8a9
Traceback (most recent call last): |
I cannot solve this problem. Could you please help? |
It was my mistake that I erased becaues this line occurs an error It solved with undergrading tqdm version into 1.2.5. |
KeyError: 'opensmile'
the error occurs with simple run sh.
Traceback (most recent call last):
File "/opt/conda/bin/paiprun", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.8/site-packages/paips/run_paips.py", line 50, in main
main_task.run()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 459, in run
out_dict = self.__serial_run(run_async=run_async)
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run
outs = self.process()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 654, in process
out_dict = task.run()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 459, in run
out_dict = self.__serial_run(run_async=run_async)
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run
outs = self.process()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 654, in process
out_dict = task.run()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 471, in run
out_dict = self.__serial_map(iteration=iteration,run_async=run_async)
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 395, in __serial_map
outs.append(self.__serial_run(run_async=run_async))
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run
outs = self.process()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 654, in process
out_dict = task.run()
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 459, in run
out_dict = self.__serial_run(run_async=run_async)
File "/opt/conda/lib/python3.8/site-packages/paips/core.py", line 346, in __serial_run
outs = self.process()
File "/home/emotion/ser-with-w2v2/tasks/normalize.py", line 75, in process
grouped_data = data.loc[data[normalization_by] == g][col]
File "/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py", line 3455, in getitem
indexer = self.columns.get_loc(key)
File "/opt/conda/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3363, in get_loc
raise KeyError(key) from err
KeyError: 'opensmile'
So I start debugging and tried to print every necessary variable.
ser-with-w2v2/tasks/normalize.py
Line 75 in f3983fa
this line has 4 necessary variables data, normalized_by, g, col
data is dataframe of Session1 IEMOCAP data.
below is sample of data
normalized_byis 'subject'(str).
g is indexed of groups which is ['Ses01F' 'Ses01M'].
data[normalization_by] == g
so this line means selecting data if the 'subject' column identificate with g which can be 'Ses01F' or 'Ses01M'.
Here comes the problem. I look into col and column
column is a list; ['opensmile']. So col is str; 'opensmile'
this doesn't make sense.
Dataframe data doesn't have any of 'opensmile'.
The text was updated successfully, but these errors were encountered: