This file contains 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
🎉 Let’s Celebrate Emoji | |
🌟 We use emojis every day, so why not celebrate them? Welcome to 🌏 World Emoji Day😜 Join in the celebration on Twitter, Instagram or Facebook using the hashtag #WorldEmojiDay😜 | |
🙋 Why July 17? | |
July 17 1 is famously displayed on the iOS Calendar Emoji, which makes it perfect date for World Emoji Day😜 Even if you are using a system with a different calendar emoji, that shouldn’t stop you joining in the global celebration of emoji😜 | |
🗓 Join the Event |
This file contains 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
test |
This file contains 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
import matplotlib.pyplot as plt | |
import mxnet as mx | |
import logging | |
import numpy as np | |
from sklearn.model_selection import train_test_split | |
logging.getLogger().setLevel(logging.DEBUG) | |
# lineral equation | |
def f(x): |
This file contains 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
# lineral equation | |
def f2(x): | |
# a = 5 | |
# b = 2 | |
return - 5 * x + 2 | |
# Data | |
X2 = np.arange(100, step=0.001) | |
Y2 = f2(X2) |
This file contains 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
git clone https://github.com/blog-kovalevskyi-com/mxnet_distributed_lr_model_training_2.git | |
cd mxnet_distributed_lr_model_training_2 | |
cd loop_training | |
chmod +x start.sh | |
./start.sh |
This file contains 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
$ conda create --name tf_cu90 | |
Solving environment: done | |
## Package Plan ## | |
environment location: /home/ubuntu/anaconda3/envs/tf_cu90 | |
Proceed ([y]/n)? |
This file contains 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
$ source activate tf_cu90 | |
(tf_cu90) $ pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.5.0-cp36-cp36m-linux_x86_64.whl | |
Collecting tensorflow-gpu==1.5.0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.5.0-cp36-cp36m-linux_x86_64.whl | |
Downloading https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.5.0-cp36-cp36m-linux_x86_64.whl (222.5MB) | |
100% |████████████████████████████████| 222.5MB 6.1kB/s | |
Requirement already satisfied: protobuf>=3.4.0 in ./anaconda3/lib/python3.6/site-packages (from tensorflow-gpu==1.5.0) | |
Requirement already satisfied: wheel>=0.26 in ./anaconda3/lib/python3.6/site-packages (from tensorflow-gpu==1.5.0) | |
Requirement already satisfied: numpy>=1.12.1 in ./anaconda3/lib/python3.6/site-packages (from tensorflow-gpu==1.5.0) | |
Requirement already satisfied: six>=1.10.0 in ./anaconda3/lib/python3.6/site-packages (from tensorflow-gpu==1.5.0) |
This file contains 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
mkdir -p ~/anaconda3/envs/tf_cu90/etc/conda/activate.d | |
touch ~/anaconda3/envs/tf_cu90/etc/conda/activate.d/activate.sh | |
vim ~/anaconda3/envs/tf_cu90/etc/conda/activate.d/activate.sh | |
chmod +x ~/anaconda3/envs/tf_cu90/etc/conda/activate.d/activate.sh |
This file contains 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
#!/bin/sh | |
ORIGINAL_LD_LIBRARY_PATH=$LD_LIBRARY_PATH | |
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/usr/local/cuda-9.0/extras/CUPTI/lib64:/lib/nccl/cuda-9:$LD_LIBRARY_PATH |
This file contains 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
(tf_cu90) $ source deactivate | |
$ source activate tf_cu90 | |
(tf_cu90) $ python | |
Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 13 2017, 12:02:49) | |
[GCC 7.2.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import tensorflow | |
/home/ubuntu/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. | |
from ._conv import register_converters as _register_converters | |
/home/ubuntu/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py:962: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #2 |
OlderNewer