Can anyone give a real life example of supervised learning and unsupervised learning? [closed]

Supervised learning: You get a bunch of photos with information about what is on them and then you train a model to recognize new photos. You have a bunch of molecules and information about which are drugs and you train a model to answer whether a new molecule is also a drug. Unsupervised learning: You … Read more

How does Pytorch’s “Fold” and “Unfold” work?

unfold imagines a tensor as a longer tensor with repeated columns/rows of values ‘folded’ on top of each other, which is then “unfolded”: size determines how large the folds are step determines how often it is folded E.g. for a 2×5 tensor, unfolding it with step=1, and patch size=2 across dim=1: x = torch.tensor([[1,2,3,4,5], [6,7,8,9,10]]) … Read more

looking for source code of from gen_nn_ops in tensorflow

You can’t find this source because the source is automatically generated by bazel. If you build from source, you’ll see this file inside bazel-genfiles. It’s also present in your local distribution which you can find using inspect module. The file contains automatically generated Python wrappers to underlying C++ implementations, so it basically consists of a … Read more

How to apply Drop Out in Tensorflow to improve the accuracy of neural network?

In the graph, I’d suggest to move keep_prob = tf.placeholder(tf.float32) outside of the model function to make it global. with graph.as_default(): … x = tf.placeholder(“float”, [None, n_input]) y = tf.placeholder(“float”, [None, n_classes]) keep_prob = tf.placeholder(tf.float32) def model(x, weights_hiden, weights_out, biases_hidden, biases_out, keep_prob): # hidden layer with RELU activation layer_1 = tf.nn.relu(tf.add(tf.matmul(x, weights_hiden), biases_hidden)) # apply … Read more

How to interpret increase in both loss and accuracy

The loss decreases as the training process goes on, except for some fluctuation introduced by the mini-batch gradient descent and/or regularization techniques like dropout (that introduces random noise). If the loss decreases, the training process is going well. The (validation I suppose) accuracy, instead, it’s a measure of how good the predictions of your model … Read more

Using torch.nn.DataParallel with a custom CUDA extension

This is kind of unusual, as commonly “Batch” is exactly defined as all operations of the network being invariant along that dimension. So you could, for example, just introduce another dimension. So you have the “former batch dimension” in which your operation is not invariant. For this keep your current implementation. Then, parallelize over the … Read more

Why rotation-invariant neural networks are not used in winners of the popular competitions?

The recent progress in image recognition which was mainly made by changing the approach from a classic feature selection – shallow learning algorithm to no feature selection – deep learning algorithm wasn’t only caused by mathematical properties of convolutional neural networks. Yes – of course their ability to capture the same information using smaller number … Read more