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 | |
| n = 40 | |
| d = 20 | |
| sigma = .05 | |
| sigma2 = sigma**2 | |
| X = np.random.normal(size=(n, d)) | |
| Y = X.sum(axis=1, keepdims=True) |
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 sys | |
| import math | |
| import random | |
| # Auto-generated code below aims at helping you parse | |
| # the standard input according to the problem statement. | |
| import numpy as np | |
| my = np.zeros(shape=(3, 3), dtype=bool) | |
| his = np.zeros(shape=(3, 3), dtype=bool) |
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
| ps -eo 'user,pid,command' | grep -E "`nvidia-smi -q -d "PIDS" | grep 'Process ID' | awk '{print $4}' | paste -sd '|'`" |
NewerOlder