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

AttributeError: 'GithubDataset' object has no attribute 'time_bar' #9

Open
lbq8942 opened this issue Mar 14, 2022 · 1 comment
Open

Comments

@lbq8942
Copy link

lbq8942 commented Mar 14, 2022

In data_loader.py,

def __getitem__(self.index):
        time_bar = self.time_bar.copy()
        assert u != v, (tpl, rel)

but self has no no attribute 'time_bar'.

@bknyaz
Copy link
Collaborator

bknyaz commented Mar 14, 2022

Hi, unfortunately our code is not very clean and does not follow good practice. In the case of time_bar, we set this variable in the main.py before getitem is called https://github.com/uoguelph-mlrg/LDG/blob/master/main.py#L368

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

2 participants