Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 42 additions & 10 deletions jupyter/layout-clustering/choose_domain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0",
"metadata": {},
"id": "6a86ea9b-beca-4324-b101-5684b3ed0955",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-26T04:35:05.168226Z",
"iopub.status.busy": "2025-05-26T04:35:05.167775Z",
"iopub.status.idle": "2025-05-26T04:35:09.868137Z",
"shell.execute_reply": "2025-05-26T04:35:09.867312Z",
"shell.execute_reply.started": "2025-05-26T04:35:05.168198Z"
}
},
"outputs": [],
"source": [
"from xinghe.spark import *\n",
Expand Down Expand Up @@ -40,7 +48,7 @@
},
{
"cell_type": "markdown",
"id": "1",
"id": "59be7dbc-12b7-4fce-8e6e-37da745e0689",
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
Expand All @@ -51,8 +59,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2",
"metadata": {},
"id": "42775d11-03a0-4a7d-808d-f6c1297f46a6",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-26T05:54:57.369464Z",
"iopub.status.busy": "2025-05-26T05:54:57.368994Z",
"iopub.status.idle": "2025-05-26T05:54:57.376856Z",
"shell.execute_reply": "2025-05-26T05:54:57.376144Z",
"shell.execute_reply.started": "2025-05-26T05:54:57.369442Z"
}
},
"outputs": [],
"source": [
"def divide_list_to_chunks(values, n_chunks):\n",
Expand Down Expand Up @@ -94,7 +110,7 @@
},
{
"cell_type": "markdown",
"id": "3",
"id": "6b97e89b-7ef3-46f9-b3e9-8041ba9f8a77",
"metadata": {},
"source": [
"# choose domain"
Expand All @@ -103,8 +119,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4",
"metadata": {},
"id": "8cb041bd-5fff-4bc5-901b-94b539d71e5b",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-26T06:31:05.767806Z",
"iopub.status.busy": "2025-05-26T06:31:05.767332Z",
"iopub.status.idle": "2025-05-26T06:31:05.778616Z",
"shell.execute_reply": "2025-05-26T06:31:05.778134Z",
"shell.execute_reply.started": "2025-05-26T06:31:05.767786Z"
}
},
"outputs": [],
"source": [
"def create_spark(spark_name: str):\n",
Expand Down Expand Up @@ -197,8 +221,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5",
"metadata": {},
"id": "df124f41-0a96-4b6f-bc58-b0eb7a9b21c7",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-26T06:31:05.779824Z",
"iopub.status.busy": "2025-05-26T06:31:05.779450Z",
"iopub.status.idle": "2025-05-26T06:37:56.872723Z",
"shell.execute_reply": "2025-05-26T06:37:56.872139Z",
"shell.execute_reply.started": "2025-05-26T06:31:05.779807Z"
}
},
"outputs": [],
"source": [
"main()"
Expand Down
49 changes: 39 additions & 10 deletions jupyter/layout-clustering/layout.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0",
"metadata": {},
"id": "6a86ea9b-beca-4324-b101-5684b3ed0955",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T03:25:30.484686Z",
"iopub.status.busy": "2025-05-29T03:25:30.484374Z",
"iopub.status.idle": "2025-05-29T03:25:34.376706Z",
"shell.execute_reply": "2025-05-29T03:25:34.376125Z",
"shell.execute_reply.started": "2025-05-29T03:25:30.484667Z"
}
},
"outputs": [],
"source": [
"from xinghe.spark import *\n",
Expand Down Expand Up @@ -64,7 +72,7 @@
},
{
"cell_type": "markdown",
"id": "1",
"id": "8471645e-61ff-4d8f-9ba9-eb837826892e",
"metadata": {},
"source": [
"# utils"
Expand All @@ -73,8 +81,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2",
"metadata": {},
"id": "eecf4c96-b0eb-4a0b-84f1-b6318332b5c2",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T03:25:34.394234Z",
"iopub.status.busy": "2025-05-29T03:25:34.394091Z",
"iopub.status.idle": "2025-05-29T03:25:34.396978Z",
"shell.execute_reply": "2025-05-29T03:25:34.396624Z",
"shell.execute_reply.started": "2025-05-29T03:25:34.394221Z"
}
},
"outputs": [],
"source": [
"def get_s3_doctor(target_theme):\n",
Expand Down Expand Up @@ -323,7 +339,7 @@
},
{
"cell_type": "markdown",
"id": "3",
"id": "88f44a2f-8c65-4146-8a7b-a415f0a2ab21",
"metadata": {},
"source": [
"# main func"
Expand All @@ -332,8 +348,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4",
"metadata": {},
"id": "8315c329-619c-483d-806c-9be915e23ea4",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T03:25:34.437045Z",
"iopub.status.busy": "2025-05-29T03:25:34.436911Z",
"iopub.status.idle": "2025-05-29T03:25:34.456433Z",
"shell.execute_reply": "2025-05-29T03:25:34.456083Z",
"shell.execute_reply.started": "2025-05-29T03:25:34.437032Z"
}
},
"outputs": [],
"source": [
"def create_spark(spark_name: str):\n",
Expand Down Expand Up @@ -465,8 +489,13 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5",
"metadata": {},
"id": "6d732478-d17f-4eb0-b380-e0631cc879dc",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T03:25:34.456981Z",
"iopub.status.busy": "2025-05-29T03:25:34.456843Z"
}
},
"outputs": [],
"source": [
"main()"
Expand Down
22 changes: 15 additions & 7 deletions jupyter/layout-clustering/layout_index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0",
"metadata": {},
"id": "6a86ea9b-beca-4324-b101-5684b3ed0955",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-19T02:28:51.522577Z",
"iopub.status.busy": "2025-05-19T02:28:51.522263Z",
"iopub.status.idle": "2025-05-19T02:29:06.232626Z",
"shell.execute_reply": "2025-05-19T02:29:06.231794Z",
"shell.execute_reply.started": "2025-05-19T02:28:51.522557Z"
}
},
"outputs": [],
"source": [
"from xinghe.spark import *\n",
Expand Down Expand Up @@ -53,7 +61,7 @@
},
{
"cell_type": "markdown",
"id": "1",
"id": "e5d1fa2e-56d7-474e-a4fa-774c0450aaaa",
"metadata": {},
"source": [
"# utils"
Expand All @@ -62,7 +70,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2",
"id": "406471a8-7125-47d0-82fb-021cd3f04bdc",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -141,7 +149,7 @@
},
{
"cell_type": "markdown",
"id": "3",
"id": "a615c4e1-75f6-42a1-8e08-142ca4685369",
"metadata": {},
"source": [
"# main func"
Expand All @@ -150,7 +158,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4",
"id": "cac2cb98-f300-4a3e-862c-50871b05dad8",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -233,7 +241,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5",
"id": "4453508d-c291-4f73-b58b-d7eeee6f455f",
"metadata": {},
"outputs": [],
"source": [
Expand Down
42 changes: 33 additions & 9 deletions jupyter/layout-clustering/layout_sim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0",
"metadata": {},
"id": "6a86ea9b-beca-4324-b101-5684b3ed0955",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T11:11:07.080732Z",
"iopub.status.busy": "2025-05-29T11:11:07.080574Z",
"iopub.status.idle": "2025-05-29T11:11:25.471429Z",
"shell.execute_reply": "2025-05-29T11:11:25.470926Z",
"shell.execute_reply.started": "2025-05-29T11:11:07.080715Z"
}
},
"outputs": [],
"source": [
"from xinghe.spark import *\n",
Expand Down Expand Up @@ -64,7 +72,7 @@
},
{
"cell_type": "markdown",
"id": "1",
"id": "a4721620-40ec-40a1-954a-30e2b0f2177c",
"metadata": {},
"source": [
"# utils"
Expand All @@ -73,8 +81,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2",
"metadata": {},
"id": "8e004d9c-ed41-429d-a478-08201508f50e",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T11:11:25.567858Z",
"iopub.status.busy": "2025-05-29T11:11:25.567143Z",
"iopub.status.idle": "2025-05-29T11:11:25.581256Z",
"shell.execute_reply": "2025-05-29T11:11:25.580816Z",
"shell.execute_reply.started": "2025-05-29T11:11:25.567842Z"
}
},
"outputs": [],
"source": [
"def get_s3_doctor(target_theme):\n",
Expand Down Expand Up @@ -224,7 +240,7 @@
},
{
"cell_type": "markdown",
"id": "3",
"id": "4cb88196-7c7f-48cb-9b42-406072ca6ba2",
"metadata": {},
"source": [
"# main func"
Expand All @@ -233,8 +249,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4",
"metadata": {},
"id": "5d1fbe89-e2c7-43a7-8ca6-2e80fd70d93d",
"metadata": {
"execution": {
"iopub.execute_input": "2025-05-29T11:11:25.582082Z",
"iopub.status.busy": "2025-05-29T11:11:25.581776Z",
"iopub.status.idle": "2025-05-29T11:11:25.672354Z",
"shell.execute_reply": "2025-05-29T11:11:25.671971Z",
"shell.execute_reply.started": "2025-05-29T11:11:25.582067Z"
}
},
"outputs": [],
"source": [
"def parse_input_path(input_path):\n",
Expand Down Expand Up @@ -308,7 +332,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5",
"id": "f3269508-6e11-490b-b0d8-8c6c219d79ce",
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading
Loading