Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View sreeragh-ar's full-sized avatar

Sreeragh sreeragh-ar

View GitHub Profile

UNYCC 2022 Notes

Date

  • 9 April 2022

Time

  • 5 - 10 PM

Place

  • I.M.S.C Dhanush, NOFRA, Navy Nagar, Mumbai

Disclaimer

Useful Japanese words

  • 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
@sreeragh-ar
sreeragh-ar / python_quick_tips.ipynb
Created June 23, 2021 14:07
Python_quick_tips.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#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')
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