3
There are a few issues you need to address first.
Normalise your data. You should try and keep your values for each input in a good range, otherwise you're never going to train anything useful. A simple way of doing this could be to divide each value by the maximum value for that input. This will ensure they are between 0 and 1, or you could divide by the ...
2
Yes, you can do that, and it is a standard practice. One famous example is the "Inception" network architecture. To keep inner subnets from "dying out", several outputs from inner layers are extracted and passed into FC->Softmax. Then all the outputs are averaged in the loss function.
From practical point of view, you won't be able to ...
1
The required shape of the tensor $T$ depends on the shape of other tensors that are involved in the same operations of that same tensor $T$ and the required/desired shape of the resulting tensor, in the same way that the number of columns of the matrix $M \in \mathbb{R}^{n \times m}$ needs to match the number of rows of the matrix $M' \in \mathbb{R}^{n' \...
1
Check the documentation for Dense layer:
Note: If the input to the layer has a rank greater than 2, then Dense computes the dot product between the inputs and the kernel along the last axis of the inputs and axis 1 of the kernel (using tf.tensordot). For example, if input has dimensions (batch_size, d0, d1), then we create a kernel with shape (d1, units), ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
tensorflow × 345keras × 104
neural-networks × 99
deep-learning × 94
convolutional-neural-networks × 54
machine-learning × 53
python × 53
reinforcement-learning × 35
long-short-term-memory × 21
training × 20
recurrent-neural-networks × 19
classification × 18
natural-language-processing × 16
image-recognition × 14
computer-vision × 12
loss-functions × 12
object-detection × 10
pytorch × 9
actor-critic-methods × 8
gpu × 8
game-ai × 7
object-recognition × 7
autoencoders × 7
models × 7
q-learning × 6