Skip to content

Instantly share code, notes, and snippets.

View Libardo1's full-sized avatar

Libardo Lopez Libardo1

  • Bogotá, Colombia
View GitHub Profile
@Libardo1
Libardo1 / rwa.py
Created April 13, 2017 00:21 — forked from shamatar/rwa.py
Keras (keras.is) implementation of Recurrent Weighted Average, as described in https://arxiv.org/abs/1703.01253. Follows original implementation in Tensorflow from https://github.com/jostmey/rwa. Works with fixed batch sizes, requires "batch_shape" parameter in input layer. Outputs proper config, should save and restore properly. You are welcome…
from keras.layers import Recurrent
import keras.backend as K
from keras import activations
from keras import initializers
from keras import regularizers
from keras import constraints
from keras.engine import Layer
from keras.engine import InputSpec

Horizons in Probabilistic Programming and Bayesian Analysis

Representations:

  • Hierarchical models
  • Hidden Markov models
  • Graphical models
  • Non-parametric Bayes (distributions over functions)

Inference Approaches:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Libardo1
Libardo1 / TDA_resources.md
Created April 4, 2017 13:51 — forked from calstad/TDA_resources.md
List of resources for TDA

Quick List of Resources for Topological Data Analysis with Emphasis on Machine Learning

This is just a quick list of resourses on TDA that I put together for @rickasaurus after he was asking for links to papers, books, etc on Twitter and is by no means an exhaustive list.

Survey Papers

Both Carlsson's and Ghrist's survey papers offer a very good introduction to the subject

Other Papers and Web Resources

@Libardo1
Libardo1 / lstm tflearn example
Created April 3, 2017 21:09 — forked from ugik/lstm tflearn example
LSTM RNN tflearn example
# Network building
net = tflearn.input_data([None, 100])
net = tflearn.embedding(net, input_dim=10000, output_dim=128)
net = tflearn.lstm(net, 128, dropout=0.8)
net = tflearn.fully_connected(net, 2, activation='softmax')
net = tflearn.regression(net, optimizer='adam', learning_rate=0.001,
loss='categorical_crossentropy')
# Training
model = tflearn.DNN(net)
@Libardo1
Libardo1 / rbm.py
Created April 3, 2017 13:15
Some fairly clean (and fast) code for Restricted Boltzmann machines.
"""
Code for training RBMs with contrastive divergence. Tries to be as
quick and memory-efficient as possible while utilizing only pure Python
and NumPy.
"""
# Copyright (c) 2009, David Warde-Farley
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@Libardo1
Libardo1 / importancia-SL-ciencia.md
Created March 24, 2017 12:49 — forked from esparta/importancia-SL-ciencia.md
La importancia del Software Libre en la Ciencia

La importancia del Software Libre en la Ciencia

©2014 Almar Klein

Science Para el primer post en este blog deseo escribir sobre algo que realmente importa. Al menos para mí. Traté de llegar al punto medular de lo que está detrás de lo que me dedico: ¿Cuáles son las razones fundamentales por las que amo tanto al Software Libre?

@Libardo1
Libardo1 / Pandas and Seaborn.ipynb
Created February 25, 2017 14:01 — forked from 5agado/Pandas and Seaborn.ipynb
Data Manipulation and Visualization with Pandas and Seaborn — A Practical Introduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Libardo1
Libardo1 / imgcmp.py
Created February 21, 2017 14:51 — forked from attilaolah/imgcmp.py
Fast image comparison with Python
import math
import Image
import Levenshtein
class BWImageCompare(object):
"""Compares two images (b/w)."""
_pixel = 255