{ "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", "\n", "\n", "\n", "\n", "\n", "\n", "
shape(2, 2)
dtypeint32
size16.0 B
min0
max3
n labels3
\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", "\n", "\n", "\n", "\n", "\n", "\n", "
shape(2, 2)
dtypeint32
size16.0 B
min1
max4
n labels4
\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": 4, "id": "814c1423-4e97-444a-b391-d071770b61fb", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
shape(2, 2)
dtypeint32
size16.0 B
min1
max5
n labels4
Not sequentially labeled!
\n", "\n", "
" ], "text/plain": [ "StackViewNDArray([[5, 1],\n", " [2, 3]])" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "labels = [[5,1],[2,3]]\n", "\n", "stackview.insight(labels)" ] }, { "cell_type": "code", "execution_count": 5, "id": "58966dc1-2eb9-44fb-bdee-c1e78c2c7ab7", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "\n", "\n", "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
shape(2, 2)
dtypeint32
size16.0 B
min-3
max4
n labels4
Negative label values detected!
\n", "\n", "
" ], "text/plain": [ "StackViewNDArray([[ 4, 1],\n", " [ 2, -3]])" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "labels = [[4,1],[2,-3]]\n", "\n", "stackview.insight(labels)" ] }, { "cell_type": "code", "execution_count": null, "id": "78c31759-b9f0-4729-beaa-e7381b15fb20", "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 }