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 io | |
import json | |
import pickle | |
from datetime import datetime | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
from kfp.v2 import compiler, dsl |
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
def plot_filled_text(text='Untitled', percentage=0.5, color='denim blue', ax=None): | |
fig, ax1 = plt.subplots(figsize=(13, 2)); | |
ax1.text(0, 0, text, fontsize=144, fontweight='bold', color=sns.xkcd_rgb['light grey']); | |
ax1.axis('off'); | |
ax1.xaxis.set_major_locator(plt.NullLocator()); | |
ax1.yaxis.set_major_locator(plt.NullLocator()); | |
fig.savefig(fname='temp.png', dpi=300, bbox_inches='tight', pad_inches=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
# This file will try to install caffe deep learning framework, with cpu only mode | |
# Tested on Ubuntu 14.04 | |
# Terminate on error | |
set -e | |
# Install general dependency | |
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler | |
sudo apt-get install --no-install-recommends libboost-all-dev |
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
" See the line number. Very important. | |
:set number |