{"cells":[{"cell_type":"code","source":"#Importacion de las librerias\nimport numpy as np\nimport pandas as pd","metadata":{"id":"kHT2KF6uEzIi","cell_id":"48e138b094a64d6e83590c84322ced92","deepnote_cell_type":"code"},"outputs":[],"execution_count":null},{"cell_type":"code","source":"from google.colab import drive\nimport os\ndrive.mount('/content/gdrive')\n# Establecer ruta de acceso en dr\nimport os\nprint(os.getcwd())\nos.chdir(\"/content/gdrive/My Drive\")","metadata":{"id":"XJKp1PUsE0sA","colab":{"base_uri":"https://localhost:8080/"},"cell_id":"d5b9df7977754c5e9816b1a97e21637a","outputId":"75a4f9f1-f670-4a88-c049-a2b433e6e2b0","executionInfo":{"user":{"userId":"04741209928239412574","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14Gi4e7mWJaOA2l-1KUn-omyigRGSrm83lG6XLzS5=s64","displayName":"david francisco bustos usta"},"status":"ok","elapsed":18837,"user_tz":300,"timestamp":1633566709696},"deepnote_cell_type":"code"},"outputs":[{"output_type":"stream","name":"stdout","text":"Mounted at /content/gdrive\n/content\n"}],"execution_count":null},{"cell_type":"code","source":"#Importacion del conjunto de datos\nnames = ['sepal-length', 'sepal-width', 'petal-length', 'petal-width', 'Class']\ndataset = pd.read_csv(\"iris.data\", names=names)","metadata":{"id":"qGlPuzcOEzIs","cell_id":"434e8003916441608adcbcaa517db40d","deepnote_cell_type":"code"},"outputs":[],"execution_count":null},{"cell_type":"code","source":"#Veamos el dataset\ndataset.head()","metadata":{"id":"tAtldIbJEzIt","colab":{"height":205,"base_uri":"https://localhost:8080/"},"cell_id":"2dbde7776ba241249cb1ed2433a31d85","outputId":"1056561d-02cb-4cbb-bb56-18e47682bf80","executionInfo":{"user":{"userId":"04741209928239412574","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14Gi4e7mWJaOA2l-1KUn-omyigRGSrm83lG6XLzS5=s64","displayName":"david francisco bustos usta"},"status":"ok","elapsed":242,"user_tz":300,"timestamp":1633566738974},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/html":"
\n | sepal-length | \nsepal-width | \npetal-length | \npetal-width | \nClass | \n
---|---|---|---|---|---|
0 | \n5.1 | \n3.5 | \n1.4 | \n0.2 | \nIris-setosa | \n
1 | \n4.9 | \n3.0 | \n1.4 | \n0.2 | \nIris-setosa | \n
2 | \n4.7 | \n3.2 | \n1.3 | \n0.2 | \nIris-setosa | \n
3 | \n4.6 | \n3.1 | \n1.5 | \n0.2 | \nIris-setosa | \n
4 | \n5.0 | \n3.6 | \n1.4 | \n0.2 | \nIris-setosa | \n