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
""" | |
Esse script faz uso da base de dados GLASS, e é utilizado para averiguar a | |
execução do modelo SVM (com busca de kernels) e Rede Neural (com busca de | |
hiperparâmetros) | |
Alunos: Clemerson Oliveira, Othon Vinicius e Mateus Baltazar | |
""" | |
import optuna |
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
from time import time | |
import numpy as np | |
from base_dados.BalancedScale import get_dataset | |
from sklearn import svm | |
from sklearn.model_selection import RepeatedKFold | |
from sklearn.metrics import confusion_matrix | |
from sklearn.metrics import precision_score | |
dir_database = "./base_dados/balance-scale.data" | |
# seeds: 24, 47, 33, 29, 47, 48, 49, 6, 19 |
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
import numpy as np | |
from time import time, sleep | |
from random import shuffle | |
from sklearn.preprocessing import MinMaxScaler | |
from sklearn.preprocessing import LabelEncoder | |
from sklearn.neighbors import KNeighborsClassifier | |
################################################################################ | |
# Carrega base de dados |