|
48 | 48 | },
|
49 | 49 | {
|
50 | 50 | "cell_type": "code",
|
51 |
| - "execution_count": 1, |
| 51 | + "execution_count": null, |
52 | 52 | "metadata": {},
|
53 | 53 | "outputs": [],
|
54 | 54 | "source": [
|
55 |
| - "# With this cell any imported module is reloaded before each cell execution\n", |
56 |
| - "%load_ext autoreload\n", |
57 |
| - "%autoreload 2\n", |
58 |
| - "from modules.data.load.loaders import GraphLoader\n", |
59 |
| - "from modules.data.preprocess.preprocessor import PreProcessor\n", |
60 |
| - "from modules.utils.utils import (\n", |
61 |
| - " describe_data,\n", |
62 |
| - " load_dataset_config,\n", |
63 |
| - " load_model_config,\n", |
64 |
| - " load_transform_config,\n", |
65 |
| - ")" |
| 55 | + "# # With this cell any imported module is reloaded before each cell execution\n", |
| 56 | + "# %load_ext autoreload\n", |
| 57 | + "# %autoreload 2\n", |
| 58 | + "# from modules.data.load.loaders import GraphLoader\n", |
| 59 | + "# from modules.data.preprocess.preprocessor import PreProcessor\n", |
| 60 | + "# from modules.utils.utils import (\n", |
| 61 | + "# describe_data,\n", |
| 62 | + "# load_dataset_config,\n", |
| 63 | + "# load_model_config,\n", |
| 64 | + "# load_transform_config,\n", |
| 65 | + "# )" |
66 | 66 | ]
|
67 | 67 | },
|
68 | 68 | {
|
69 | 69 | "cell_type": "code",
|
70 |
| - "execution_count": 14, |
| 70 | + "execution_count": null, |
71 | 71 | "metadata": {},
|
72 |
| - "outputs": [ |
73 |
| - { |
74 |
| - "ename": "NameError", |
75 |
| - "evalue": "name 'data' is not defined", |
76 |
| - "output_type": "error", |
77 |
| - "traceback": [ |
78 |
| - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
79 |
| - "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)", |
80 |
| - "Cell \u001b[0;32mIn[14], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mdata\u001b[49m\n", |
81 |
| - "\u001b[0;31mNameError\u001b[0m: name 'data' is not defined" |
82 |
| - ] |
83 |
| - } |
84 |
| - ], |
| 72 | + "outputs": [], |
85 | 73 | "source": []
|
86 | 74 | },
|
87 | 75 | {
|
|
100 | 88 | },
|
101 | 89 | {
|
102 | 90 | "cell_type": "code",
|
103 |
| - "execution_count": 41, |
| 91 | + "execution_count": null, |
104 | 92 | "metadata": {},
|
105 | 93 | "outputs": [
|
106 | 94 | {
|
|
124 | 112 | }
|
125 | 113 | ],
|
126 | 114 | "source": [
|
127 |
| - "dataset_name = \"manual_dataset\"\n", |
128 |
| - "dataset_config = load_dataset_config(dataset_name)\n", |
129 |
| - "loader = GraphLoader(dataset_config)" |
| 115 | + "# dataset_name = \"manual_dataset\"\n", |
| 116 | + "# dataset_config = load_dataset_config(dataset_name)\n", |
| 117 | + "# loader = GraphLoader(dataset_config)" |
130 | 118 | ]
|
131 | 119 | },
|
132 | 120 | {
|
|
138 | 126 | },
|
139 | 127 | {
|
140 | 128 | "cell_type": "code",
|
141 |
| - "execution_count": 42, |
| 129 | + "execution_count": null, |
142 | 130 | "metadata": {},
|
143 | 131 | "outputs": [
|
144 | 132 | {
|
|
171 | 159 | }
|
172 | 160 | ],
|
173 | 161 | "source": [
|
174 |
| - "dataset = loader.load()\n", |
175 |
| - "describe_data(dataset)" |
| 162 | + "# dataset = loader.load()\n", |
| 163 | + "# describe_data(dataset)" |
176 | 164 | ]
|
177 | 165 | },
|
178 | 166 | {
|
|
204 | 192 | },
|
205 | 193 | {
|
206 | 194 | "cell_type": "code",
|
207 |
| - "execution_count": 46, |
| 195 | + "execution_count": null, |
208 | 196 | "metadata": {},
|
209 | 197 | "outputs": [
|
210 | 198 | {
|
|
224 | 212 | }
|
225 | 213 | ],
|
226 | 214 | "source": [
|
227 |
| - "# Define transformation type and id\n", |
228 |
| - "transform_type = \"liftings\"\n", |
229 |
| - "# If the transform is a topological lifting, it should include both the type of the lifting and the identifier\n", |
230 |
| - "transform_id = \"graph2simplicial/neighborhood_complex_lifting\"\n", |
| 215 | + "# # Define transformation type and id\n", |
| 216 | + "# transform_type = \"liftings\"\n", |
| 217 | + "# # If the transform is a topological lifting, it should include both the type of the lifting and the identifier\n", |
| 218 | + "# transform_id = \"graph2simplicial/neighborhood_complex_lifting\"\n", |
231 | 219 | "\n",
|
232 |
| - "# Read yaml file\n", |
233 |
| - "transform_config = {\n", |
234 |
| - " \"lifting\": load_transform_config(transform_type, transform_id)\n", |
235 |
| - " # other transforms (e.g. data manipulations, feature liftings) can be added here\n", |
236 |
| - "}" |
| 220 | + "# # Read yaml file\n", |
| 221 | + "# transform_config = {\n", |
| 222 | + "# \"lifting\": load_transform_config(transform_type, transform_id)\n", |
| 223 | + "# # other transforms (e.g. data manipulations, feature liftings) can be added here\n", |
| 224 | + "# }" |
237 | 225 | ]
|
238 | 226 | },
|
239 | 227 | {
|
|
245 | 233 | },
|
246 | 234 | {
|
247 | 235 | "cell_type": "code",
|
248 |
| - "execution_count": 50, |
| 236 | + "execution_count": null, |
249 | 237 | "metadata": {},
|
250 | 238 | "outputs": [
|
251 | 239 | {
|
|
294 | 282 | }
|
295 | 283 | ],
|
296 | 284 | "source": [
|
297 |
| - "lifted_dataset = PreProcessor(dataset, transform_config, loader.data_dir, force_reload=True)\n", |
298 |
| - "describe_data(lifted_dataset)" |
| 285 | + "# lifted_dataset = PreProcessor(dataset, transform_config, loader.data_dir, force_reload=True)\n", |
| 286 | + "# describe_data(lifted_dataset)" |
299 | 287 | ]
|
300 | 288 | },
|
301 | 289 | {
|
|
314 | 302 | },
|
315 | 303 | {
|
316 | 304 | "cell_type": "code",
|
317 |
| - "execution_count": 20, |
| 305 | + "execution_count": null, |
318 | 306 | "metadata": {},
|
319 | 307 | "outputs": [
|
320 | 308 | {
|
|
335 | 323 | }
|
336 | 324 | ],
|
337 | 325 | "source": [
|
338 |
| - "from modules.models.simplicial.san import SANModel\n", |
| 326 | + "# from modules.models.simplicial.san import SANModel\n", |
339 | 327 | "\n",
|
340 |
| - "model_type = \"simplicial\"\n", |
341 |
| - "model_id = \"san\"\n", |
342 |
| - "model_config = load_model_config(model_type, model_id)\n", |
| 328 | + "# model_type = \"simplicial\"\n", |
| 329 | + "# model_id = \"san\"\n", |
| 330 | + "# model_config = load_model_config(model_type, model_id)\n", |
343 | 331 | "\n",
|
344 |
| - "model = SANModel(model_config, dataset_config)" |
| 332 | + "# model = SANModel(model_config, dataset_config)" |
345 | 333 | ]
|
346 | 334 | },
|
347 | 335 | {
|
348 | 336 | "cell_type": "code",
|
349 |
| - "execution_count": 52, |
| 337 | + "execution_count": null, |
350 | 338 | "metadata": {},
|
351 | 339 | "outputs": [],
|
352 | 340 | "source": [
|
353 |
| - "y_hat = model(lifted_dataset.get(0))" |
| 341 | + "# y_hat = model(lifted_dataset.get(0))" |
354 | 342 | ]
|
355 | 343 | },
|
356 | 344 | {
|
|
363 | 351 | ],
|
364 | 352 | "metadata": {
|
365 | 353 | "kernelspec": {
|
366 |
| - "display_name": "venv_topox", |
| 354 | + "display_name": "topox", |
367 | 355 | "language": "python",
|
368 | 356 | "name": "python3"
|
369 | 357 | },
|
|
0 commit comments