{ "cells": [ { "cell_type": "code", "execution_count": 73, "id": "29e20c6b", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from sklearn.svm import LinearSVC" ] }, { "cell_type": "code", "execution_count": 74, "id": "67b3d7af", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "[[5.1 3.5 1.4 0.2 0. ]\n", " [4.9 3. 1.4 0.2 0. ]\n", " [4.7 3.2 1.3 0.2 0. ]\n", " [4.6 3.1 1.5 0.2 0. ]\n", " [5. 3.6 1.4 0.2 0. ]]\n" ] } ], "source": [ "# 1a) Ja stehen in der richtigen Dimension\n", "iris_data= np.loadtxt(\"../supplement_files/iris.csv\", delimiter=\",\")\n", "print(iris_data[:5])" ] }, { "cell_type": "code", "execution_count": 75, "id": "c9c0fd1e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
LinearSVC()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.