Skip to content

Commit dffe2b0

Browse files
committed
Tareas 3.5 , 5.4 Red Neuronal
1 parent 7210ca2 commit dffe2b0

File tree

12 files changed

+1964
-0
lines changed

12 files changed

+1964
-0
lines changed

PIA/CursoDeepLearning/1Presentacion/LibreriaGradio/t1_gradio_ejemplo.ipynb

Lines changed: 202 additions & 0 deletions
Large diffs are not rendered by default.

PIA/CursoDeepLearning/2UnidadLenguaje/t2_named_entity_recognition.ipynb

Lines changed: 234 additions & 0 deletions
Large diffs are not rendered by default.

PIA/CursoDeepLearning/2UnidadLenguaje/t2_named_entity_recognition_con_interface.ipynb

Lines changed: 433 additions & 0 deletions
Large diffs are not rendered by default.
113 KB
Loading
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {
6+
"id": "X2Q3sYvlbzpm"
7+
},
8+
"source": [
9+
"## Introducción : Pair Programming 1 : Segmentación Semantica con Hugging Face\n"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": null,
15+
"metadata": {},
16+
"outputs": [],
17+
"source": [
18+
"# Descargamos las versiones de las librerías que necesitamos\n",
19+
"# Numpy se utiliza para el manejo de arreglos\n",
20+
"%pip install numpy==1.23.5 \n",
21+
"# Matplotlib se utiliza para la generación de gráficas\n",
22+
"%pip install matplotlib==3.4.3"
23+
]
24+
},
25+
{
26+
"cell_type": "code",
27+
"execution_count": 7,
28+
"metadata": {
29+
"colab": {
30+
"base_uri": "https://localhost:8080/"
31+
},
32+
"id": "90Pbp_fZb4im",
33+
"outputId": "5310e6ce-a30f-4da1-a71c-c3afdc693114"
34+
},
35+
"outputs": [
36+
{
37+
"name": "stdout",
38+
"output_type": "stream",
39+
"text": [
40+
"Running on local URL: http://127.0.0.1:7860\n",
41+
"\n",
42+
"To create a public link, set `share=True` in `launch()`.\n"
43+
]
44+
},
45+
{
46+
"data": {
47+
"text/html": [
48+
"<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
49+
],
50+
"text/plain": [
51+
"<IPython.core.display.HTML object>"
52+
]
53+
},
54+
"metadata": {},
55+
"output_type": "display_data"
56+
},
57+
{
58+
"data": {
59+
"text/plain": []
60+
},
61+
"execution_count": 7,
62+
"metadata": {},
63+
"output_type": "execute_result"
64+
}
65+
],
66+
"source": [
67+
"# Gradio es una biblioteca \n",
68+
"# que permite crear rápidamente interfaces de usuario para probar \n",
69+
"# y compartir tus modelos de machine learning.\n",
70+
"\n",
71+
"# gr = alias para la biblioteca Gradio\n",
72+
"import gradio as gr\n",
73+
"\n",
74+
"# Función que recibe un nombre y retorna un mensaje de bienvenida\n",
75+
"def welcome(name):\n",
76+
" # Devuelve un mensaje de bienvenida con el nombre ingresado\n",
77+
" return f'Bienvenido a Python → , {name}!'\n",
78+
"\n",
79+
"# Interface → Clase en la biblioteca Gradio de Python \n",
80+
"# Se utiliza para crear una nueva interfaz de usuario. \n",
81+
"# Puedes proporcionarle varios argumentos para personalizar la interfaz, \n",
82+
"# Como la función que se debe ejecutar cuando el usuario interactúa con la interfaz, \n",
83+
"# los tipos de entrada y salida que debe manejar la interfaz \n",
84+
"\n",
85+
"# fn = funcion que ejecuta la logica del programa en este caso 'welcome'\n",
86+
"# inputs = tipo de entrada en este caso de tipo texto\n",
87+
"# outputs = tipo de salida \"lo que salga de la función\" en este caso de tipo texto\n",
88+
"demo = gr.Interface(fn=welcome, inputs=\"text\", outputs=\"text\")\n",
89+
"\n",
90+
"# Lanzar la interfaz\n",
91+
"demo.launch(share=True)"
92+
]
93+
}
94+
],
95+
"metadata": {
96+
"colab": {
97+
"provenance": []
98+
},
99+
"kernelspec": {
100+
"display_name": "Python 3",
101+
"name": "python3"
102+
},
103+
"language_info": {
104+
"codemirror_mode": {
105+
"name": "ipython",
106+
"version": 3
107+
},
108+
"file_extension": ".py",
109+
"mimetype": "text/x-python",
110+
"name": "python",
111+
"nbconvert_exporter": "python",
112+
"pygments_lexer": "ipython3",
113+
"version": "3.11.7"
114+
}
115+
},
116+
"nbformat": 4,
117+
"nbformat_minor": 0
118+
}

PIA/CursoDeepLearning/3UnidadImagen/t3_2_segmentacion_semantica.ipynb

Lines changed: 430 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"cells": [],
3+
"metadata": {
4+
"colab": {
5+
"provenance": []
6+
},
7+
"kernelspec": {
8+
"display_name": "Python 3",
9+
"name": "python3"
10+
},
11+
"language_info": {
12+
"codemirror_mode": {
13+
"name": "ipython",
14+
"version": 3
15+
},
16+
"file_extension": ".py",
17+
"mimetype": "text/x-python",
18+
"name": "python",
19+
"nbconvert_exporter": "python",
20+
"pygments_lexer": "ipython3",
21+
"version": "3.11.7"
22+
}
23+
},
24+
"nbformat": 4,
25+
"nbformat_minor": 0
26+
}

PIA/UT05. Redes Neuronales/3.4._Clasificación_con_Aprendizaje_Automático/3.4._Clasificación_con_Aprendizaje_Automático.ipynb

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

PIA/UT05. Redes Neuronales/3.5._Fashion_MNIST_con_Redes_Neuronales/3.5._Fashion_MNIST_con_Redes_Neuronales (2).ipynb

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)