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
docker ps -a | |
docker container list | |
docker cp ~/Downloads/newsolnJAE_Lab1_soln.zip youthful_newton:/autograder |
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
# Set flexible GPU usage | |
import tensorflow as tf | |
import keras.backend as ktf | |
from tensorflow.python.keras import backend as ktf | |
def get_session(gpu_fraction=0.2): | |
gpu_options = tf.compat.v1.GPUOptions( | |
per_process_gpu_memory_fraction=gpu_fraction, | |
allow_growth=True) | |
return tf.compat.v1.Session( |
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
// There are 2 ways of doing this that I could think of. | |
// A. | |
// We deifne a bidirectional layer that takes forward dircetional rnn cell (lstm/gru..) and one backward direcional rnn cell | |
BidirectionalLayer<> b_unit; | |
// This unit has a Add() method. The method is "different" from Add method of other layers because the user needs to | |
// specify forward RNN cell and backward RNN cell. | |
// There are 2 ways I could think of doing this (A1): | |
template <bool forwardPolicy, class LayerType, class... Args> | |
void Add(Args... args){...} |
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
// Proposed changes to the API are: | |
// DBSCAN clustering has a method : | |
size_t Cluster(const MatType& data, | |
arma::mat& centroids); | |
// KMeans clustering has a method : | |
void Cluster(const MatType& data, | |
size_t clusters, | |
arma::mat& centroids, |