Skip to content
Open
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
58 changes: 56 additions & 2 deletions examples/rhino-sdk/aggregate_quantile_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@
"print(\"Logged In\")"
]
},
{
"cell_type": "markdown",
"id": "4d2ea28e",
"metadata": {},
"source": [
"### Run this cell to list all of the projects in your environment:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b2c205a7",
"metadata": {},
"outputs": [],
"source": [
"projects = session.project.search_for_projects_by_name(name=\"\")\n",
"for p in projects:\n",
" print(p.name)"
]
},
{
"cell_type": "markdown",
"id": "ef9cf810",
Expand All @@ -63,15 +83,49 @@
"metadata": {},
"outputs": [],
"source": [
"project = session.project.get_project_by_name(\"PROJECT_NAME\")"
"project = session.project.get_project_by_name(\"PROJECT_NAME\")\n",
"if not project:\n",
" raise ValueError(\"Project not found.\")\n",
"\n",
"print(\"Selected project name:\", project.name)"
]
},
{
"cell_type": "markdown",
"id": "f3d20b5f",
"metadata": {},
"source": [
"### Load the Datasets you would like to calculate federated percentiles for by placing the Dataset names below\n",
"### List your available datasets in your project and then load those you would like to calculate federated percentiles"
]
},
{
"cell_type": "markdown",
"id": "3c24ea20",
"metadata": {},
"source": [
"Run this cell to list all of your available datasets in your project"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4e8fdf6c",
"metadata": {},
"outputs": [],
"source": [
"all_datasets = session.dataset.search_for_datasets_by_name(name=\"\")\n",
"project_datasets = [d for d in all_datasets if d.project and d.project.uid == project.uid]\n",
"\n",
"print(f\"\\nDatasets in project '{project.name}':\")\n",
"for d in project_datasets:\n",
" print(f\"- {d.name}\")"
]
},
{
"cell_type": "markdown",
"id": "5c510924",
"metadata": {},
"source": [
"Replace `DATASET_1` & `DATASET_2` with the name of your datasets"
]
},
Expand Down