You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from elliot.run import run_experiment
run_experiment(f"config_files/split_hm.yml")
Error Stacktrace
Traceback (most recent call last):
File "./Ducho-meets-Elliot/start_experiments.py", line 8, in <module>
run_experiment(f"config_files/{args.config}.yml")
File "./Ducho-meets-Elliot/elliot/run.py", line 59, in run_experiment
dataloader = dataloader_class(config=base.base_namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./Ducho-meets-Elliot/elliot/dataset/dataset.py", line 112, in __init__
self.tuple_list = splitter.process_splitting()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".r/Ducho-meets-Elliot/elliot/splitter/base_splitter.py", line 90, in process_splitting
tuple_list = self.handle_hierarchy(data, splitting_ns.test_splitting)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./Ducho-meets-Elliot/elliot/splitter/base_splitter.py", line 156, in handle_hierarchy
tuple_list = self.splitting_temporal_holdout(data, float(valtest_splitting_ns.test_ratio))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./Ducho-meets-Elliot/elliot/splitter/base_splitter.py", line 228, in splitting_temporal_holdout
data['rank_first'] = data.groupby(['userId'])['timestamp'].rank(method='first', ascending=True, axis=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./ducho_env/lib/python3.11/site-packages/pandas/core/groupby/groupby.py", line 4769, in rank
axis = self.obj._get_axis_number(axis)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./ducho_env/lib/python3.11/site-packages/pandas/core/generic.py", line 577, in _get_axis_number
raise ValueError(f"No axis named {axis} for object type {cls.__name__}")
ValueError: No axis named 1 for object type Series
System details (please complete the following information):
OS: Ubuntu 22.04.5 LTS
Python Version 3.11.2
Version of the Libraries: elliot v0.3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Trying to split my dataset using a temporal hold out throws an error.
To Reproduce
Steps to reproduce the behavior:
config file
Sample of dataset (tried with no headers, and different camelCase writing e.g. userID, userId, userid)
Error Stacktrace
System details (please complete the following information):
The text was updated successfully, but these errors were encountered: