Skip to content

Instantly share code, notes, and snippets.

View aarestu's full-sized avatar
🌏
Focusing

restu suhendar aarestu

🌏
Focusing
View GitHub Profile
@aarestu
aarestu / install_python.sh
Created October 15, 2016 12:30 — forked from andriisoldatenko/install_python.sh
Install local Python 2.7.10 on CentOS 7
TMP_PATH=~/tmp_install_python
# Versions section
PYTHON_MAJOR=2.7
PYTHON_VERSION=$PYTHON_MAJOR.10
mkdir $TMP_PATH && cd $TMP_PATH
# Update yum and libraries
yum -y update
from __future__ import print_function
import numpy as np
from keras import backend as K
from keras.preprocessing import sequence
from keras.models import Model, Sequential
from keras.layers import Dense, Dropout, Embedding, LSTM, Wrapper, Input
from keras.datasets import imdb
from keras.utils.generic_utils import has_arg
import copy