Skip to content

Commit 2d9e224

Browse files
authored
Merge pull request Wall-eSociety#2 from Wall-eSociety/neural_network
Neural network
2 parents 8bd6a72 + 5995f80 commit 2d9e224

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

product-solution.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,27 @@ Estimativa: 10 min com I7 3.1 8Ram
634634
#print ("%")
635635
```
636636

637+
### MLP Classifier
638+
Esse algoritmo é um classificador Perceptron de Multicamadas
639+
usado para fazer o
640+
treinamento de modelos, e é uma biblioteca do Scikit-Learn.
641+
642+
```python
643+
from sklearn.neural_network import MLPClassifier
644+
645+
mlp = MLPClassifier()
646+
mlp.fit(X_train, y_train)
647+
saidas = mlp.predict(X_test)
648+
trac = "---------------------------------------------------"
649+
650+
print(trac)
651+
print('Saida redes neurais: ', saidas)
652+
print('Saida desejada', y_test)
653+
print(trac)
654+
print('Score: ', mlp.score(X_test, y_test))
655+
656+
```
657+
637658
# Referências Bibliográficas
638659
http://scikit-learn.org/stable/modules/generated/sklearn.dummy.DummyClassifier.html#sklearn.dummy.DummyClassifier
639660
https://www.analyticsvidhya.com/blog/2016/03/complete-guide-parameter-tuning-xgboost-with-codes-python/

0 commit comments

Comments
 (0)