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
# -*- coding: utf-8 -*- | |
""" | |
Created on 2019-08-22 09:37:36 | |
@author: fmiorell | |
""" | |
# This script registers the "turbo" colormap to matplotlib, and the reversed version as "turbo_r" | |
# Reference: https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html |
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
# Example for my blog post at: | |
# https://danijar.com/introduction-to-recurrent-networks-in-tensorflow/ | |
import functools | |
import sets | |
import tensorflow as tf | |
def lazy_property(function): | |
attribute = '_' + function.__name__ |
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
#!/usr/bin/env python | |
# | |
# Solve LASSO regression problem with ISTA and FISTA | |
# iterative solvers. | |
# Author : Alexandre Gramfort, first.last@telecom-paristech.fr | |
# License BSD | |
import time | |
from math import sqrt |
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 tensorflow as tf | |
import numpy as np | |
import time | |
N=10000 | |
K=4 | |
MAX_ITERS = 1000 | |
start = time.time() |