This file contains hidden or 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 time | |
import os | |
import numpy as np | |
import theano | |
import theano.tensor as T | |
from IPython.display import Image | |
def Rop(f, x, v): | |
if isinstance(f, (list, tuple)): | |
u = [T.zeros_like(fi) for fi in f] |
This file contains hidden or 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 os | |
import time | |
import numpy as np | |
import theano | |
import theano.tensor as T | |
from scipy.optimize import fmin_l_bfgs_b | |
def scipy(): | |
path = "." |
OlderNewer