- Hello - Konninchiwa
- I - Watashi / Boku
- Yes - Hi / ii
- No - iiye
- House - iye
- Nice to meet you - Yoroshku / Hajime mashite
- Nice to meet you (polite)- Yoroshku onegaishimasu
- How are you - Ogenki diska
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 tensorflow as tf | |
import numpy as np | |
import pandas as pd | |
from sklearn.datasets import load_boston | |
import matplotlib.pyplot as plt | |
boston=load_boston() | |
type(boston) | |
boston.feature_names |
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
#pickle dict with image in Python2 (2.7.6 used) | |
frame = cv2.imread('input.jpg') | |
img_str = cv2.imencode('.jpg', frame)[1].tostring() | |
data = {'img': img_str} | |
with open('pickledObj.pkl', 'wb') as outfile: | |
pickle.dump(data, outfile) | |
# unpickle in Python3 (Python 3.4.3 used for testing) using encoding=latin1 | |
with open('pickledObj.pkl', 'rb') as f: | |
data_dict = pickle.load(f, encoding='latin1') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.