File size: 682 Bytes
7cec401
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import pickle
import os

class Dataset:
    def __init__(self, name, path):
        self.name = name
        self.path = os.path.abspath(path) 
        self.tasks = None

    def get_tasks(self):
        with open(self.path, "rb") as file:
            self.tasks = pickle.load(file)
            return self.tasks

current_dir = os.path.dirname(os.path.abspath(__file__))

SayPlanOffice = Dataset("office29", os.path.join(current_dir, "office", "office29.pkl"))
Behaviour1K = Dataset("behaviour177", os.path.join(current_dir, "behaviour1k", "behaviour177.pkl"))
VirtualHome = Dataset("virtualhome317", os.path.join(current_dir, "virtualhome", "virtualhome317.pkl"))