|
137 | 137 | "id": "ef85e105", |
138 | 138 | "metadata": { |
139 | 139 | "execution": { |
140 | | - "iopub.execute_input": "2025-12-18T16:41:42.923396Z", |
141 | | - "iopub.status.busy": "2025-12-18T16:41:42.923242Z", |
142 | | - "iopub.status.idle": "2025-12-18T16:41:44.148918Z", |
143 | | - "shell.execute_reply": "2025-12-18T16:41:44.148039Z" |
| 140 | + "iopub.execute_input": "2025-12-19T11:22:47.606749Z", |
| 141 | + "iopub.status.busy": "2025-12-19T11:22:47.606569Z", |
| 142 | + "iopub.status.idle": "2025-12-19T11:22:48.826124Z", |
| 143 | + "shell.execute_reply": "2025-12-19T11:22:48.825151Z" |
144 | 144 | } |
145 | 145 | }, |
146 | 146 | "outputs": [], |
|
219 | 219 | "id": "fa585400", |
220 | 220 | "metadata": { |
221 | 221 | "execution": { |
222 | | - "iopub.execute_input": "2025-12-18T16:41:44.150748Z", |
223 | | - "iopub.status.busy": "2025-12-18T16:41:44.150523Z", |
224 | | - "iopub.status.idle": "2025-12-18T16:41:44.157504Z", |
225 | | - "shell.execute_reply": "2025-12-18T16:41:44.156834Z" |
| 222 | + "iopub.execute_input": "2025-12-19T11:22:48.828240Z", |
| 223 | + "iopub.status.busy": "2025-12-19T11:22:48.827995Z", |
| 224 | + "iopub.status.idle": "2025-12-19T11:22:48.835810Z", |
| 225 | + "shell.execute_reply": "2025-12-19T11:22:48.834886Z" |
226 | 226 | } |
227 | 227 | }, |
228 | 228 | "outputs": [ |
|
303 | 303 | "id": "98b465d4", |
304 | 304 | "metadata": { |
305 | 305 | "execution": { |
306 | | - "iopub.execute_input": "2025-12-18T16:41:44.159333Z", |
307 | | - "iopub.status.busy": "2025-12-18T16:41:44.159158Z", |
308 | | - "iopub.status.idle": "2025-12-18T16:41:44.171030Z", |
309 | | - "shell.execute_reply": "2025-12-18T16:41:44.170458Z" |
| 306 | + "iopub.execute_input": "2025-12-19T11:22:48.837522Z", |
| 307 | + "iopub.status.busy": "2025-12-19T11:22:48.837338Z", |
| 308 | + "iopub.status.idle": "2025-12-19T11:22:48.849980Z", |
| 309 | + "shell.execute_reply": "2025-12-19T11:22:48.849174Z" |
310 | 310 | } |
311 | 311 | }, |
312 | 312 | "outputs": [], |
|
441 | 441 | "id": "6ccb1cfa", |
442 | 442 | "metadata": { |
443 | 443 | "execution": { |
444 | | - "iopub.execute_input": "2025-12-18T16:41:44.172734Z", |
445 | | - "iopub.status.busy": "2025-12-18T16:41:44.172435Z", |
446 | | - "iopub.status.idle": "2025-12-18T16:41:44.179025Z", |
447 | | - "shell.execute_reply": "2025-12-18T16:41:44.178351Z" |
| 444 | + "iopub.execute_input": "2025-12-19T11:22:48.851471Z", |
| 445 | + "iopub.status.busy": "2025-12-19T11:22:48.851312Z", |
| 446 | + "iopub.status.idle": "2025-12-19T11:22:48.858041Z", |
| 447 | + "shell.execute_reply": "2025-12-19T11:22:48.857178Z" |
448 | 448 | } |
449 | 449 | }, |
450 | 450 | "outputs": [ |
|
536 | 536 | "id": "e16a0f66", |
537 | 537 | "metadata": { |
538 | 538 | "execution": { |
539 | | - "iopub.execute_input": "2025-12-18T16:41:44.180675Z", |
540 | | - "iopub.status.busy": "2025-12-18T16:41:44.180515Z", |
541 | | - "iopub.status.idle": "2025-12-18T16:41:44.189231Z", |
542 | | - "shell.execute_reply": "2025-12-18T16:41:44.188419Z" |
| 539 | + "iopub.execute_input": "2025-12-19T11:22:48.859646Z", |
| 540 | + "iopub.status.busy": "2025-12-19T11:22:48.859476Z", |
| 541 | + "iopub.status.idle": "2025-12-19T11:22:48.868188Z", |
| 542 | + "shell.execute_reply": "2025-12-19T11:22:48.867515Z" |
543 | 543 | } |
544 | 544 | }, |
545 | 545 | "outputs": [], |
|
633 | 633 | "id": "c034fcc9", |
634 | 634 | "metadata": { |
635 | 635 | "execution": { |
636 | | - "iopub.execute_input": "2025-12-18T16:41:44.190684Z", |
637 | | - "iopub.status.busy": "2025-12-18T16:41:44.190525Z", |
638 | | - "iopub.status.idle": "2025-12-18T16:41:44.200310Z", |
639 | | - "shell.execute_reply": "2025-12-18T16:41:44.199598Z" |
| 636 | + "iopub.execute_input": "2025-12-19T11:22:48.869979Z", |
| 637 | + "iopub.status.busy": "2025-12-19T11:22:48.869821Z", |
| 638 | + "iopub.status.idle": "2025-12-19T11:22:48.879887Z", |
| 639 | + "shell.execute_reply": "2025-12-19T11:22:48.879056Z" |
640 | 640 | }, |
641 | 641 | "lines_to_next_cell": 2 |
642 | 642 | }, |
|
732 | 732 | "id": "849042f7", |
733 | 733 | "metadata": { |
734 | 734 | "execution": { |
735 | | - "iopub.execute_input": "2025-12-18T16:41:44.201857Z", |
736 | | - "iopub.status.busy": "2025-12-18T16:41:44.201692Z", |
737 | | - "iopub.status.idle": "2025-12-18T16:41:44.207203Z", |
738 | | - "shell.execute_reply": "2025-12-18T16:41:44.206349Z" |
| 735 | + "iopub.execute_input": "2025-12-19T11:22:48.881345Z", |
| 736 | + "iopub.status.busy": "2025-12-19T11:22:48.881191Z", |
| 737 | + "iopub.status.idle": "2025-12-19T11:22:48.886612Z", |
| 738 | + "shell.execute_reply": "2025-12-19T11:22:48.885903Z" |
739 | 739 | } |
740 | 740 | }, |
741 | 741 | "outputs": [], |
|
778 | 778 | "id": "f5b66811", |
779 | 779 | "metadata": { |
780 | 780 | "execution": { |
781 | | - "iopub.execute_input": "2025-12-18T16:41:44.208684Z", |
782 | | - "iopub.status.busy": "2025-12-18T16:41:44.208525Z", |
783 | | - "iopub.status.idle": "2025-12-18T16:41:44.213032Z", |
784 | | - "shell.execute_reply": "2025-12-18T16:41:44.212354Z" |
| 781 | + "iopub.execute_input": "2025-12-19T11:22:48.888240Z", |
| 782 | + "iopub.status.busy": "2025-12-19T11:22:48.888080Z", |
| 783 | + "iopub.status.idle": "2025-12-19T11:22:49.059262Z", |
| 784 | + "shell.execute_reply": "2025-12-19T11:22:49.058496Z" |
785 | 785 | } |
786 | 786 | }, |
787 | 787 | "outputs": [ |
788 | 788 | { |
789 | | - "name": "stdout", |
790 | | - "output_type": "stream", |
791 | | - "text": [ |
792 | | - "Split 0 shape: torch.Size([5, 5, 2, 1])\n", |
793 | | - "Split 1 shape: torch.Size([5, 1, 2, 1])\n" |
| 789 | + "ename": "TypeError", |
| 790 | + "evalue": "Can't instantiate abstract class RandomSplit with abstract method merge_split_indices", |
| 791 | + "output_type": "error", |
| 792 | + "traceback": [ |
| 793 | + "\u001b[31m---------------------------------------------------------------------------\u001b[39m", |
| 794 | + "\u001b[31mTypeError\u001b[39m Traceback (most recent call last)", |
| 795 | + "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[8]\u001b[39m\u001b[32m, line 3\u001b[39m\n\u001b[32m 1\u001b[39m \u001b[38;5;66;03m# Test RandomSplit\u001b[39;00m\n\u001b[32m 2\u001b[39m leaf = Normal(scope=Scope(\u001b[38;5;28mlist\u001b[39m(\u001b[38;5;28mrange\u001b[39m(\u001b[32m6\u001b[39m))), out_channels=\u001b[32m2\u001b[39m)\n\u001b[32m----> \u001b[39m\u001b[32m3\u001b[39m split = \u001b[43mRandomSplit\u001b[49m\u001b[43m(\u001b[49m\u001b[43minputs\u001b[49m\u001b[43m=\u001b[49m\u001b[43mleaf\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mnum_splits\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m2\u001b[39;49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mseed\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m123\u001b[39;49m\u001b[43m)\u001b[49m\n\u001b[32m 5\u001b[39m data = torch.randn(\u001b[32m5\u001b[39m, \u001b[32m6\u001b[39m)\n\u001b[32m 6\u001b[39m lls = split.log_likelihood(data)\n", |
| 796 | + "\u001b[31mTypeError\u001b[39m: Can't instantiate abstract class RandomSplit with abstract method merge_split_indices" |
794 | 797 | ] |
795 | 798 | } |
796 | 799 | ], |
|
828 | 831 | "id": "81fc02a3", |
829 | 832 | "metadata": { |
830 | 833 | "execution": { |
831 | | - "iopub.execute_input": "2025-12-18T16:41:44.214531Z", |
832 | | - "iopub.status.busy": "2025-12-18T16:41:44.214376Z", |
833 | | - "iopub.status.idle": "2025-12-18T16:41:44.220249Z", |
834 | | - "shell.execute_reply": "2025-12-18T16:41:44.219456Z" |
| 834 | + "iopub.execute_input": "2025-12-19T11:22:49.061266Z", |
| 835 | + "iopub.status.busy": "2025-12-19T11:22:49.061107Z", |
| 836 | + "iopub.status.idle": "2025-12-19T11:22:49.067268Z", |
| 837 | + "shell.execute_reply": "2025-12-19T11:22:49.066406Z" |
835 | 838 | }, |
836 | 839 | "lines_to_next_cell": 2 |
837 | 840 | }, |
|
897 | 900 | "main_language": "python", |
898 | 901 | "notebook_metadata_filter": "-all" |
899 | 902 | }, |
| 903 | + "kernelspec": { |
| 904 | + "display_name": ".venv", |
| 905 | + "language": "python", |
| 906 | + "name": "python3" |
| 907 | + }, |
900 | 908 | "language_info": { |
901 | 909 | "codemirror_mode": { |
902 | 910 | "name": "ipython", |
|
0 commit comments