Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 67328

TensorFlow is an open source library for machine learning and machine intelligence. TensorFlow uses data flow graphs with tensors flowing along edges. For details, see https://www.tensorflow.org. TensorFlow is released under an Apache 2.0 License.

6 votes
Accepted

How to design batches in a stateful RNN

Your specific case After [seq1 0-1s] (1st sec of long sequence seq1) at index 0 of batch b, there is [seq1 1-2s] (2nd sec of the same sequence seq1) at index 0 of batch b+1, this is exactly what is …
Esmailian's user avatar
  • 9,442
2 votes
Accepted

Keras + Tensorflow CNN with multiple image inputs

Yes it is wrong, each (68, 59, 59) input should go through one model not an array of them. You can treat each of 68 images as a channel, for this, you need to squeeze your data axes from (-1, 68, 59 …
Esmailian's user avatar
  • 9,442
1 vote

SVM with Tensorflow

Also, here is an easy to use SVM example in python (without tensorflow). About the code The 2D assumption is deeply integrated into the code for prediction_grid variable and the plots. … (['fear', 'abc'], (N, 1)) matrix = np.hstack((x_dummy, y_dummy)) ## SVM con Tensorflow sess = tf.Session() x_vals = np.array([x[0:dimension] for x in matrix]) y_vals = np.array([1 if y[dimension] == ' …
Esmailian's user avatar
  • 9,442
2 votes
Accepted

problem of entry format for a simple model in Keras

model.evaluate requires both input and output, for example evaluation = model.evaluate(np.random.random((1, 100)), np.random.random((1, 1))) I think a step-by-step example would be more beneficial. …
Esmailian's user avatar
  • 9,442
0 votes
Accepted

Why does TensorFlow convert my decoded image to float32 instead of uint8/16?

Convert them back to uint as follows: train_images = tf.cast(train_images, dtype=tf.uint8) train_labels = tf.cast(train_labels, dtype=tf.uint8) Output: (tf.uint8, tf.uint8) Versions of my code: tensorflow
Esmailian's user avatar
  • 9,442
2 votes
Accepted

What should I observe when choosing which optimizer suits my Deep Neural Network model?

High training score is not an indication of model performance, high test score is. Also, a faster convergence to the same, or better test score is an indication of optimizer performance. Therefore, …
Esmailian's user avatar
  • 9,442
3 votes

Keras multi-gpu batch normalization

1) How does batch normalization layer work with multi_gpu_model? For N GPUs, there are N copies of model, one on each GPU. For each copy, forward and backward passes are executed for a sub-batch …
Esmailian's user avatar
  • 9,442
22 votes

Keras vs. tf.keras

And Before installing Keras, please install one of its backend engines: TensorFlow, Theano, or CNTK. We recommend the TensorFlow backend. So Keras is a skin (an API). … TensorFlow has decided to include this skin inside itself as tf.keras. …
Esmailian's user avatar
  • 9,442
6 votes

Is a large number of epochs good or bad idea in CNN

Assuming you track the performance with a validation set, as long as validation error is decreasing, more epochs are beneficial, model is improving on seen (training) and unseen (validation) data. As …
Esmailian's user avatar
  • 9,442
2 votes

The cross-entropy error function in neural networks

Isn't it a problem that $y_i$ (in $\log(y_i)$) could be 0? Yes it is, since $\log(0)$ is undefined, but this problem is avoided using $\log(y_i + \epsilon)$ in practice. What is correct? (a …
Esmailian's user avatar
  • 9,442