Skip to content

Commit

Permalink
Fix notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
msorvoja committed Dec 19, 2024
1 parent 3d56378 commit 1bf85a9
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions notebooks/testing_logratio_transformations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,18 @@
"metadata": {
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/mika/code/EIS/eis_toolkit/notebooks/../eis_toolkit/utilities/aitchison_geometry.py:43: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '84.21052631578948' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n",
" dfc.iloc[idx] = _normalize(row, scale) if scale is not None else _normalize(row)\n",
"/home/mika/code/EIS/eis_toolkit/notebooks/../eis_toolkit/utilities/aitchison_geometry.py:43: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '15.789473684210527' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.\n",
" dfc.iloc[idx] = _normalize(row, scale) if scale is not None else _normalize(row)\n"
]
}
],
"source": [
"pair_a_b = single_pairwise_logratio(float(C.iloc[0, 0]), float(C.iloc[0, 1]))\n",
"pair_a_c = single_pairwise_logratio(float(C.iloc[0, 0]), float(C.iloc[0, 2]))\n",
Expand All @@ -101,7 +112,7 @@
"C_clr_inv = inverse_clr(C_clr, scale=100.0)\n",
"C_alr_inv = inverse_alr(C_alr, \"c\", scale=100)\n",
"\n",
"C_ilr_ab = single_ilr_transform(C, [\"a\"], [\"b\"])\n",
"C_ilr_ab = single_ilr_transform(C, [\"a\"], [\"b\"], scale=100)\n",
"C_ilr_ab_c = single_ilr_transform(C, [\"a\", \"b\"], [\"c\"])"
]
},
Expand Down Expand Up @@ -682,7 +693,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 18,
"id": "81a98117-b981-47ea-a7bb-ba06c0dacb13",
"metadata": {
"tags": []
Expand All @@ -696,7 +707,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 19,
"id": "c0204220-7bf2-4235-b92a-0e139180050e",
"metadata": {
"tags": []
Expand All @@ -710,7 +721,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 20,
"id": "e1bda63b-ab9b-4060-90d5-7520952f2e3a",
"metadata": {
"tags": []
Expand Down Expand Up @@ -792,7 +803,7 @@
"4 12500.0 3600.0 31500.0 8020.0"
]
},
"execution_count": 21,
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -807,7 +818,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 21,
"id": "75728aa4-5b2e-46b6-9511-1250bf4b13ae",
"metadata": {
"tags": []
Expand Down Expand Up @@ -844,7 +855,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 22,
"id": "e136d05d-671d-420f-95b9-5f350bc7a94c",
"metadata": {
"tags": []
Expand All @@ -861,7 +872,7 @@
"dtype: float64"
]
},
"execution_count": 23,
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -872,7 +883,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 23,
"id": "ad352680-433a-4026-b7b5-560b682dfb96",
"metadata": {
"tags": []
Expand Down Expand Up @@ -948,7 +959,7 @@
"4 0.443790 -0.801005 1.368049"
]
},
"execution_count": 24,
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit 1bf85a9

Please sign in to comment.