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 matplotlib.pyplot as plt | |
import numpy as np | |
from sklearn.datasets import make_regression | |
# Set random seed (for reproducibility) | |
np.random.seed(1000) | |
nb_samples = 500 | |
nb_features = 4 |
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 cupy as cp | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from sklearn.datasets import fetch_olivetti_faces | |
# Set random seed for reproducibility | |
np.random.seed(1000) | |
cp.random.seed(1000) |
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 matplotlib.pyplot as plt | |
import multiprocessing | |
import numpy as np | |
import tensorflow as tf | |
from keras.datasets import cifar10 | |
# Set random seed (for reproducibility) | |
np.random.seed(1000) | |
tf.set_random_seed(1000) |
OlderNewer