-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
229 additions
and
41 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
0 4.0 [ 0.9 0.9 -0.9] | ||
1 2.0 [ 2.7 -0.9 0.9] | ||
2 2.0 [ 2.7 -0.9 0.9] | ||
3 2.0 [0.9 0.9 2.7] | ||
4 2.0 [0.9 0.9 2.7] | ||
5 2.0 [0.9 0.9 2.7] | ||
6 0.0 [2.7 2.7 0.9] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# TP3: grupo 3 | ||
Integrantes: | ||
* Ana Cruz | ||
* Agustin Spitzner | ||
* Camila Borinsky | ||
|
||
## Estructura del proyecto | ||
El proyecto se divide en cuatro partes principales. Por cada ejercicio del enunciado a resolver tenemos una carpeta que incluye las resoluciones particulares de cada ejercicio y los subíndices correspondientes. Por otro lado, tenemos las implementaciones de las distintas clases de perceptrones, todo dentro de la carpeta "perceptrons". También tenemos la carpeta utils, que contiene únicamente al archivo file_utils que tiene funciones de parseo. Por último, en el root tenemos múltiples archivos de jupiter notebook, que sirven para hacer demostraciones de las resoluciones de los distintos ejercicios y sus resultados. | ||
|
||
## Notebooks | ||
El proyecto contiene tres tipos de notebooks: final, results y setup. Los cuadernos de setup son bastante simples y los creamos con el objetivo de borrar el contenido de distintos archivos de texto que usamos para ir guardando información de varias corridas. Queremos poder hacer este reset para cuando queremos abrir un espacio de corridas nuevo. Los cuadernos de nombre final_x son los responsables de correr los fragmentos de código necesarios para ejecutar las corridas del ejercicio x. Para estos hay varios casos que requieren de varias corridas de un mismo algoritmo para luego calcular promedios. Estas corridas se guardan en archivos de texto dentro de la carpeta del ejercicio correspondiente. Por ultimo los cuadernos de results son para visualizar distintos graficos relevantes de cada ejercicio. | ||
|
||
## Ejercicio 1 | ||
Para correr el ejercicio 1, ya sea para probar el XOR o el AND, hay que correr desde el root del proyecto (léase, estar parado en TP3) lo siguiente: | ||
``` | ||
python -m ex_1.main | ||
```` | ||
Para elegir que conjunto de entrenamiento usar (Si el AND o el XOR), podemos entrar a la carpeta ex_1/resources y en el archivo config.json cambiar los parámetros necesarios. | ||
|
||
## Ejercicio 2 | ||
Correr el ejercicio 2 es bastante análogo al ejercicio 1, donde simplemente hay que poblar el config.json que esta dentro de la carpeta ex_2/resources y luego correr: | ||
``` | ||
python -m ex_2.main | ||
``` | ||
En cuanto al archivo de configuración, tenemos una variable booleana que indica si se quiere usar el método de momentum o no, un entero llamado cross_validation que sería el k de validación cruzada. Es decir, la cantidad de subconjuntos que se van a armar a partir del conjunto de entrenamiento. | ||
|
||
|
||
## Ejercicio 3 | ||
Para el ejercicio 3, la manera ideal de conseguir los resultados es mediante el cuaderno "results_3". Anteriormente se debe cambiar el config.json dentro de la carpeta de ex_3 para indicar si el subejercicio a correr es el 2 o el 3 y cualquier otro parámetro. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +0,0 @@ | ||
0 4.0 [-0.1 0.1 0.1] | ||
1 2.0 [ 0.1 0.3 -0.1] | ||
2 2.0 [ 0.1 0.3 -0.1] | ||
3 2.0 [ 0.1 0.3 -0.1] | ||
4 2.0 [ 0.1 0.3 -0.1] | ||
5 2.0 [ 0.1 0.3 -0.1] | ||
6 2.0 [ 0.1 0.3 -0.1] | ||
7 2.0 [ 0.1 0.3 -0.1] | ||
8 2.0 [ 0.1 0.3 -0.1] | ||
9 2.0 [ 0.3 0.1 0.1] | ||
10 0.0 [ 0.1 0.3 0.3] | ||
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.