View Dai said
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
nvidia-smi dmon -s pucvmt -o T |
View Cell1+2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Cell8.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Cell7.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Cell6.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Cell5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Cell3+4.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mf.py
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 tqdm | |
def tfmf(D, k, | |
params_dict={"iters":2**14, "p":2, "h":1E-2, "init":"kmeans"}, | |
regularizer_dict={"lambda_C":1E-3, "lambda_B":1E-3, "p":1}): | |
m, n = D.shape[0], D.shape[1] | |
D_con = tf.constant(D) |
View oss.py
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 pylab as pl | |
#import seaborn as sns | |
from sklearn.datasets import make_blobs, make_circles | |
def rbf_kernel(X, beta=None, p=2): | |
num_data, num_feat = X.shape | |
kernel = np.zeros((num_data, num_data)) |
View cuda_if.cu
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> | |
// error makro | |
#define CUERR { \ | |
cudaError_t err; \ | |
if ((err = cudaGetLastError()) != cudaSuccess) { \ | |
std::cout << "CUDA error: " << cudaGetErrorString(err) << " : " \ | |
<< __FILE__ << ", line " << __LINE__ << std::endl; \ | |
exit(1); \ | |
} \ |
NewerOlder