{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "92b5dc07-bf06-4ead-85a1-8c9f646ec2d6",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import stackview"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "d8d0704d-bb8b-4037-b65b-d996ff8b0549",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"\n",
"\n",
" \n",
" | \n",
"\n",
"\n",
"\n",
"| shape | (2, 2) | \n",
"| dtype | int32 | \n",
"| size | 16.0 B | \n",
"| min | 0 | | max | 3 | | n labels | 3 | \n",
" \n",
"\n",
" | \n",
"
\n",
"
"
],
"text/plain": [
"StackViewNDArray([[0, 1],\n",
" [2, 3]])"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"labels = [[0,1],[2,3]]\n",
"\n",
"stackview.insight(labels)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "9d534a7e-a370-4232-bb00-a1f6055bf678",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"\n",
" \n",
" | \n",
"\n",
"\n",
"\n",
"| shape | (2, 2) | \n",
"| dtype | int32 | \n",
"| size | 16.0 B | \n",
"| min | 1 | | max | 4 | | n labels | 4 | \n",
" \n",
"\n",
" | \n",
"
\n",
"
"
],
"text/plain": [
"StackViewNDArray([[4, 1],\n",
" [2, 3]])"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"labels = [[4,1],[2,3]]\n",
"\n",
"stackview.insight(labels)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "814c1423-4e97-444a-b391-d071770b61fb",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"text/html": [
"\n",
"\n",
"\n",
" \n",
" | \n",
"\n",
"\n",
"\n",
"| shape | (2, 2) | \n",
"| dtype | float64 | \n",
"| size | 32.0 B | \n",
"| min | 1.0 | | max | 5.0 | \n",
" \n",
" \n",
" | \n",
"
\n",
"
"
],
"text/plain": [
"StackViewNDArray([[5., 1.],\n",
" [2., 3.]])"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"labels = [[5.,1.],[2.,3.]]\n",
"\n",
"stackview.insight(labels)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "58966dc1-2eb9-44fb-bdee-c1e78c2c7ab7",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.11"
}
},
"nbformat": 4,
"nbformat_minor": 5
}