{ "cells": [ { "cell_type": "code", "execution_count": 9, "id": "dc72eb3f", "metadata": {}, "outputs": [], "source": [ "import torch \n", "from torch.utils.data import DataLoader, Dataset\n", "import numpy as np\n", "import pandas as pd" ] }, { "cell_type": "markdown", "id": "800db13a", "metadata": {}, "source": [ "# Loading structured dataset" ] }, { "cell_type": "code", "execution_count": 10, "id": "db81ed75", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | sepal.length | \n", "sepal.width | \n", "petal.length | \n", "petal.width | \n", "species | \n", "
---|---|---|---|---|---|
24 | \n", "4.8 | \n", "3.4 | \n", "1.9 | \n", "0.2 | \n", "Setosa | \n", "
68 | \n", "6.2 | \n", "2.2 | \n", "4.5 | \n", "1.5 | \n", "Versicolor | \n", "
14 | \n", "5.8 | \n", "4.0 | \n", "1.2 | \n", "0.2 | \n", "Setosa | \n", "
136 | \n", "6.3 | \n", "3.4 | \n", "5.6 | \n", "2.4 | \n", "Virginica | \n", "
58 | \n", "6.6 | \n", "2.9 | \n", "4.6 | \n", "1.3 | \n", "Versicolor | \n", "