Kernel: Python 3 (system-wide)
In [0]:
In [3]:
Out[3]:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_741/625069096.py in <cell line: 5>()
3 from sklearn.neural_network import MLPClassifier
4 from sklearn.metrics import accuracy_score
----> 5 from google.colab import drive
ModuleNotFoundError: No module named 'google.colab'
In [0]:
In [0]:
In [4]:
Out[4]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_741/2193115568.py in <cell line: 2>()
1 # Cria as colunas de entrada e saída
----> 2 X = dados.iloc[:, :n_valores]
3 y = dados[problema]
NameError: name 'dados' is not defined
In [5]:
Out[5]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_741/4015679693.py in <cell line: 3>()
1 # Instancia e treina o modelo de rede neural
2 modelo = MLPClassifier(max_iter=1000, verbose=True, tol=0.00000000000001, solver='adam', activation='relu', hidden_layer_sizes=9)
----> 3 modelo.fit(X_treino, y_treino)
NameError: name 'X_treino' is not defined
In [6]:
Out[6]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/tmp/ipykernel_741/2473944990.py in <cell line: 2>()
1 # Faz as previsões e exibe a acurácia do modelo
----> 2 previsoes = modelo.predict(X_teste)
3 acuracia = accuracy_score(y_teste, previsoes)
4 print("A acurácia do modelo é:", acuracia)
NameError: name 'X_teste' is not defined
In [2]:
Out[2]:
In [0]:
In [0]: