This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
class dotdict(dict): | |
""" | |
A dictionary supporting dot notation. | |
""" | |
__getattr__ = dict.get | |
__setattr__ = dict.__setitem__ | |
__delattr__ = dict.__delitem__ | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) |
# Label Encode instead of dummy variables | |
mappings = [] | |
from sklearn.preprocessing import LabelEncoder | |
label_encoder = LabelEncoder() | |
label_df = df.drop('y', axis=1) | |
for i, col in enumerate(label_df): |
#!/usr/bin/python | |
# | |
# Copyright 2017 Otto Seiskari | |
# Licensed under the Apache License, Version 2.0. | |
# See http://www.apache.org/licenses/LICENSE-2.0 for the full text. | |
# | |
# This file is based on | |
# https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html | |
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0) | |
# |
import multiprocessing | |
import pandas as pd | |
import numpy as np | |
def _apply_df(args): | |
df, func, num, kwargs = args | |
return num, df.apply(func, **kwargs) | |
def apply_by_multiprocessing(df,func,**kwargs): | |
workers=kwargs.pop('workers') |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
# in a courtesy of Caffe's filter visualization example | |
# http://nbviewer.jupyter.org/github/BVLC/caffe/blob/master/examples/00-classification.ipynb | |
def imshow_grid(data, height=None, width=None, normalize=False, padsize=1, padval=0): | |
''' | |
Take an array of shape (N, H, W) or (N, H, W, C) | |
and visualize each (H, W) image in a grid style (height x width). | |
''' | |
if normalize: | |
data -= data.min() |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |