Skip to content

Instantly share code, notes, and snippets.

View inigoval's full-sized avatar

Inigo Val inigoval

  • Wayve
  • Vancouvver
  • 23:26 (UTC -06:00)
View GitHub Profile
@inigoval
inigoval / mutual_info.py
Created March 10, 2018 21:33 — forked from GaelVaroquaux/mutual_info.py
Estimating entropy and mutual information with scikit-learn
'''
Non-parametric computation of entropy and mutual-information
Adapted by G Varoquaux for code created by R Brette, itself
from several papers (see in the code).
These computations rely on nearest-neighbor statistics
'''
import numpy as np
@inigoval
inigoval / mutual_info.py
Created March 10, 2018 21:33 — forked from GaelVaroquaux/mutual_info.py
Estimating entropy and mutual information with scikit-learn
'''
Non-parametric computation of entropy and mutual-information
Adapted by G Varoquaux for code created by R Brette, itself
from several papers (see in the code).
These computations rely on nearest-neighbor statistics
'''
import numpy as np
@inigoval
inigoval / timeseries_cnn.py
Created December 15, 2017 09:50 — forked from jkleint/timeseries_cnn.py
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
#!/usr/bin/env python
"""
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
from __future__ import print_function, division
import numpy as np
from keras.layers import Convolution1D, Dense, MaxPooling1D, Flatten
from keras.models import Sequential