What is the difference between reinforcement learning and deep RL?

Reinforcement Learning In reinforcement learning, an agent tries to come up with the best action given a state. For example, in the video game Pac-Man, the state space would be the 2D game world you are in, the surrounding items (pac-dots, enemies, walls, etc), and actions would be moving through that 2D space (going up/down/left/right). … Read more

TimeDistributed(Dense) vs Dense in Keras – Same number of parameters

TimeDistributedDense applies a same dense to every time step during GRU/LSTM Cell unrolling. So the error function will be between predicted label sequence and the actual label sequence. (Which is normally the requirement for sequence to sequence labeling problems). However, with return_sequences=False, Dense layer is applied only once at the last cell. This is normally … Read more

What is the difference between SVC and SVM in scikit-learn?

They are just different implementations of the same algorithm. The SVM module (SVC, NuSVC, etc) is a wrapper around the libsvm library and supports different kernels while LinearSVC is based on liblinear and only supports a linear kernel. So: SVC(kernel=”linear”) is in theory “equivalent” to: LinearSVC() Because the implementations are different in practice you will … Read more

What makes the distance measure in k-medoid “better” than k-means?

1. K-medoid is more flexible First of all, you can use k-medoids with any similarity measure. K-means however, may fail to converge – it really must only be used with distances that are consistent with the mean. So e.g. Absolute Pearson Correlation must not be used with k-means, but it works well with k-medoids. 2. … Read more

What is OOF approach in machine learning?

OOF simply stands for “Out-of-fold” and refers to a step in the learning process when using k-fold validation in which the predictions from each set of folds are grouped together into one group of 1000 predictions. These predictions are now “out-of-the-folds” and thus error can be calculated on these to get a good measure of … Read more

What is `lr_policy` in Caffe?

It is a common practice to decrease the learning rate (lr) as the optimization/learning process progresses. However, it is not clear how exactly the learning rate should be decreased as a function of the iteration number. If you use DIGITS as an interface to Caffe, you will be able to visually see how the different … Read more