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 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 = "." |
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 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 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 numpy as np | |
import argparse | |
import theano | |
import theano.tensor as T | |
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams | |
from theano.gradient import zero_grad | |
import lasagne.layers as L |
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
from __future__ import absolute_import, print_function, division | |
import numpy as np | |
import theano | |
from theano import Op | |
import theano.tensor as T | |
from theano.gpuarray.basic_ops import (gpu_contiguous, as_gpuarray_variable, | |
infer_context_name) | |
from theano.gpuarray.type import get_context |
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
use std::collections::HashMap; | |
extern crate symints; | |
use symints::*; | |
type SymInt = Polynomial<String, i64, u8>; | |
type Shape = (SymInt, SymInt, SymInt, SymInt); | |
enum ConvolutionMode { |
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
<!doctype html> | |
<html> | |
<head> | |
<title>MNIST</title> | |
<!-- jQuery --> | |
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
<!-- Cytoscape --> | |
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script> | |
<!-- Dagre --> | |
<script src="https://cdn.rawgit.com/cpettitt/dagre/v0.7.4/dist/dagre.min.js"></script> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// | |
// Created by alex on 17/06/16. | |
// | |
#include "arrayfire.h" | |
#include "iomanip" | |
class BinaryCrossEntropy{ | |
public: | |
inline | |
af::array func(af::array prediction, af::array targets){ |
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
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <algorithm> | |
#include <iterator> | |
#include "arrayfire.h" | |
class AbstractDataSource{ | |
protected: | |
unsigned instance_dim; |
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
// | |
// Created by alex on 26/04/16. | |
// | |
#include "arrayfire.h" | |
#include "myreduce.h" | |
#include "stdio.h" | |
#include "iostream" | |
static const int n = 100; | |
static const int M = 200; |
NewerOlder