{"cells":[{"cell_type":"code","source":"# Tratamiento de datos\n# ==============================================================================\nimport pandas as pd\nimport numpy as np\n\n# Preprocesado y modelado\n# ==============================================================================\nfrom sklearn.svm import SVC\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.metrics import accuracy_score\n\n# Configuración warnings\n# ==============================================================================\nimport warnings\nwarnings.filterwarnings('ignore')","metadata":{"id":"iRukjeBxaGjN","cell_id":"890bc6a1f8e84da58209bf6e01684eb7","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":1432,"user_tz":240,"timestamp":1650987596242},"deepnote_cell_type":"code"},"outputs":[],"execution_count":1},{"cell_type":"code","source":"#Cargamos los datos!\nurl = 'https://raw.githubusercontent.com/JoaquinAmatRodrigo/' \\\n + 'Estadistica-machine-learning-python/master/data/ESL.mixture.csv'\ndatos = pd.read_csv(url)\ndatos.head()","metadata":{"id":"yhtMxyWYaGjf","colab":{"height":207,"base_uri":"https://localhost:8080/"},"cell_id":"15db3be5667b4100a292098556c18343","outputId":"c7effb6b-e9f6-4efb-cfd8-25ec2cdd5e88","executionInfo":{"user":{"userId":"09471607480253994520","displayName":"David Francisco Bustos Usta"},"status":"ok","elapsed":16,"user_tz":240,"timestamp":1650987596244},"deepnote_cell_type":"code"},"outputs":[{"output_type":"execute_result","data":{"text/plain":" X1 X2 y\n0 2.526093 0.321050 0\n1 0.366954 0.031462 0\n2 0.768219 0.717486 0\n3 0.693436 0.777194 0\n4 -0.019837 0.867254 0","text/html":"\n
\n | X1 | \nX2 | \ny | \n
---|---|---|---|
0 | \n2.526093 | \n0.321050 | \n0 | \n
1 | \n0.366954 | \n0.031462 | \n0 | \n
2 | \n0.768219 | \n0.717486 | \n0 | \n
3 | \n0.693436 | \n0.777194 | \n0 | \n
4 | \n-0.019837 | \n0.867254 | \n0 | \n
\n | X1 | \nX2 | \n
---|---|---|
0 | \n2.526093 | \n0.321050 | \n
1 | \n0.366954 | \n0.031462 | \n
2 | \n0.768219 | \n0.717486 | \n
3 | \n0.693436 | \n0.777194 | \n
4 | \n-0.019837 | \n0.867254 | \n
... | \n... | \n... | \n
195 | \n0.256750 | \n2.293605 | \n
196 | \n1.925173 | \n0.165053 | \n
197 | \n1.301941 | \n0.992200 | \n
198 | \n0.008131 | \n2.242264 | \n
199 | \n-0.196246 | \n0.551404 | \n
200 rows × 2 columns
\n