Skip to content

Instantly share code, notes, and snippets.

View mzbac's full-sized avatar
🦀
I may be slow to respond.

Anchen mzbac

🦀
I may be slow to respond.
  • Australia
  • 06:15 (UTC +10:00)
View GitHub Profile
@mzbac
mzbac / AttentionWithContext.py
Created February 8, 2018 00:26 — forked from cbaziotis/AttentionWithContext.py
Keras Layer that implements an Attention mechanism, with a context/query vector, for temporal data. Supports Masking. Follows the work of Yang et al. [https://www.cs.cmu.edu/~diyiy/docs/naacl16.pdf] "Hierarchical Attention Networks for Document Classification"
def dot_product(x, kernel):
"""
Wrapper for dot product operation, in order to be compatible with both
Theano and Tensorflow
Args:
x (): input
kernel (): weights
Returns:
"""
if K.backend() == 'tensorflow':
@mzbac
mzbac / readme.md
Created January 9, 2018 22:03 — forked from baraldilorenzo/readme.md
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@mzbac
mzbac / rxjs_operators_by_example.md
Created January 3, 2017 00:20 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@mzbac
mzbac / currying.js
Created December 1, 2016 06:00 — forked from kiddkai/currying.js
curry
/**
* curry
*
* var curried = curry(function(a, b, c) {
* console.log(a+b+c);
* });
*
*
* curried(2)(2)(2); // => 6
* curried(2,2)(2); // => 6
@mzbac
mzbac / introrx.md
Created September 7, 2016 02:49 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@mzbac
mzbac / README.md
Created July 26, 2016 10:51 — forked from SamyPesse/README.md
Complete example of code highlight for Draft.js with Prism

How to test it?

Copy the prism.js file under examples/prism/ in Draft.js repository. Run npm install prismjs Then open it in your browser.

@mzbac
mzbac / dynamicPagRepeatAngular.html
Created December 11, 2015 00:15 — forked from kmaida/dynamicPagRepeatAngular.html
AngularJS - Dynamic pagination on ng-repeat with search/filtering. Use with ui.bootstrap
<!DOCTYPE HTML>
<html lang="en" ng-app="myApp">
<head>
<meta charset="utf-8">
<title>Dynamic Pagination w/ Filtering</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Kim Maida">
<!-- JS Libraries -->