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.
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 numpy as np | |
| import tensorflow as tf | |
| from sklearn.datasets import make_blobs | |
| # Set random seed (for reproducibility) | |
| np.random.seed(1000) | |
| # Create dataset | |
| nb_samples=2000 |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Backprop as the method of Lagrange multiplers (and even the implicit function | |
| theorem). | |
| """ | |
| from __future__ import division | |
| import numpy as np | |
| from arsenal.alphabet import Alphabet | |
| from arsenal.math.checkgrad import finite_difference |
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
| #!/usr/bin/env python | |
| from mpi4py import MPI | |
| import numpy as np | |
| import time | |
| import pycuda.autoinit | |
| from pycuda import gpuarray | |
| comm = MPI.COMM_WORLD | |
| comm_rank = comm.Get_rank() |
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.
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
| /* Tobin Fricke's implementation of the | |
| Hoshen-Kopelman algorithm for | |
| cluster labeling. | |
| Copyright (c) September 9, 2000, by Tobin Fricke <fricke@gmail.com> | |
| Modified 2002-03-09 Tobin Fricke | |
| Modified substantially 2004-04-21 by Tobin Fricke | |
| This program is written in the 1999 standard of the C language (C99). Older C |
NewerOlder