-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
37 lines (34 loc) · 1.05 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# coding=utf-8
from ejercicio2 import *
import numpy as np
def main():
opcion = ""
opcion2 = ""
print('Redes Neuronales: Clasificación de Patrones.\n\n')
print('El primer conjunto de datos (1) corresponde a la clasificación\n')
print('de puntos (x,y) según la región a la que pertenecen, mientras que el\n')
print('el segundo conjunto de datos (2) corresponde a clasificación de\n')
print('Iris según su clase.\n\n')
while opcion == "":
print('Seleccione el conjuto de datos de su preferencia:\n')
opcion = input('')
if opcion == "1":
ejercicio2()
elif opcion == "2":
while opcion2 == "":
print('\n')
print('Seleccione la clasificación deseada:\n')
print('1) Iris Setosa \n')
print('2) Iris Setosa, Iris Versicolor e Iris Virginica \n')
opcion2 = input('')
if opcion2 == "1" or opcion2 == "2":
#ejercicio_2(opcion2)
print("")
else:
print('Debe introducir \'1\' o \'1\' \n')
opcion2 = ""
else:
print('\nDebe introducir \'1\' o \'2\' \n')
opcion = ""
if __name__ == "__main__":
main()