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
from sklearn.cluster import KMeans | |
from sklearn import metrics | |
import cv2 | |
# By Adrian Rosebrock | |
import numpy as np | |
import cv2 | |
# Load the image | |
image = cv2.imread("red.png") |
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 numpy as np | |
from scipy.ndimage.interpolation import map_coordinates | |
from scipy.ndimage.filters import gaussian_filter | |
def elastic_transform(image, alpha, sigma, random_state=None): | |
"""Elastic deformation of images as described in [Simard2003]_. | |
.. [Simard2003] Simard, Steinkraus and Platt, "Best Practices for | |
Convolutional Neural Networks applied to Visual Document Analysis", in |
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
- word2vec https://arxiv.org/abs/1310.4546 | |
- sentence2vec, paragraph2vec, doc2vec http://arxiv.org/abs/1405.4053 | |
- tweet2vec http://arxiv.org/abs/1605.03481 | |
- tweet2vec https://arxiv.org/abs/1607.07514 | |
- author2vec http://dl.acm.org/citation.cfm?id=2889382 | |
- item2vec http://arxiv.org/abs/1603.04259 | |
- lda2vec https://arxiv.org/abs/1605.02019 | |
- illustration2vec http://dl.acm.org/citation.cfm?id=2820907 | |
- tag2vec http://ktsaurabh.weebly.com/uploads/3/1/7/8/31783965/distributed_representations_for_content-based_and_personalized_tag_recommendation.pdf | |
- category2vec http://www.anlp.jp/proceedings/annual_meeting/2015/pdf_dir/C4-3.pdf |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |