This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/Shopify/sarama" | |
| ) |
This file contains hidden or 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
| 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') |
This file contains hidden or 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
| 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 |