Skip to content

Instantly share code, notes, and snippets.

View DiogoDantas's full-sized avatar
🏠
Working from home

Diogo Ventura Dantas DiogoDantas

🏠
Working from home
  • João Pessoa, Paraíba
View GitHub Profile
@DiogoDantas
DiogoDantas / main.go
Created August 30, 2020 03:53
Kafka producer with headers tutorial
package main
import (
"fmt"
"log"
"os"
"github.com/Shopify/sarama"
)
def plot_acc_loss(history):
plt.figure(figsize=(20,6))
plt.subplot(1,2,1)
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.xlabel('Epoch')
plt.ylabel('Loss')
plt.legend(['train', 'val'], loc='best')
plt.title('Loss')
@DiogoDantas
DiogoDantas / environment.sh
Created August 1, 2018 21:29
Manual Pratico de Deep Learning
echo #################### install miniconda ####################
wget https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh
sudo chmod +x Miniconda3-4.5.4-Linux-x86_64.sh
./Miniconda3-4.5.4-Linux-x86_64.sh
echo #################### create environment ####################
conda info
conda create -n mpdl python=3.6.5 numpy=1.14.3 pandas=0.23.0 matplotlib=2.2.2 scikit-learn=0.19.1 jupyter=1.0.0
source activate mpdl
jupyter notebook