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 not deleted user 45264

Keras is a popular, open-source deep learning API for Python built on top of TensorFlow and is useful for fast implementation. Topics include efficient low-level tensor operations, computation of arbitrary gradients, scalable computations, export of graphs, etc.

3 votes
Accepted

Is my CNN model overfitting?

parameters means less complexity and less ability to overfit data augmentation -> more data samples means more variation in the dataset for the model to capture early-stopping -> use something like the Keras … callback, which will stop the model training once the validation loss doesn't decrease for a number of epochs If you happen to be using image data, you might take a look at the Keras ImageDataGenerator …
n1k31t4's user avatar
  • 15.1k
2 votes
Accepted

How to specify output_shape parameter in Lambda layer in Keras

For the second expression it is really just the same thing, but if you haven't provided a batch shape, Tensorflow & Keras represent that as something that could be anything, and store it as None. …
n1k31t4's user avatar
  • 15.1k
0 votes

Issues in plotting Images using Keras

Given you already have the tf.data.Dataset, one way to do it would be to iterate over the dataset and each time you come across a new label, save that e.g. to a dictionary, otherwise skip an already s …
n1k31t4's user avatar
  • 15.1k
2 votes
Accepted

How to convert input numpy data to tensorflow tf.data to train model in tensorfow?

You could try using the flow_from_directory() method on your ImageDataGenerator class, which does the augmentation - only a small change is necessary: H = model.fit( aug.flow_from_directory(trainX …
n1k31t4's user avatar
  • 15.1k
0 votes

Best way to deploy and Schedule Deep Learning Model

other than using a cronjob because it will be unnecessary to pay for the time and resources when it will not be in use It sounds like you want to use cloud compute. I would suggest looking at th …
n1k31t4's user avatar
  • 15.1k
1 vote
Accepted

How do I iterate over my images in dataset?

Your images_dir actually seems to be the path to a single image... but nevertheless, I would simply create a single number array with shape: (num_images, height, width, channels) by doing the followi …
n1k31t4's user avatar
  • 15.1k
4 votes
Accepted

tensorboard showing the epoch loss and accuracy for validation data but not training data

It is hard to know what is happening from just that screenshot and no code. The training and validation plots are usually separated on the page, not lines on the same graph. If you are using Tensorf …
n1k31t4's user avatar
  • 15.1k
2 votes

Does save_best_only in Keras prevents overfitting?

It really only tracks the value of the metric you selected, there is no tolerance option. In the relevant documentation, the definition is given: save_best_only: if save_best_only=True, the latest …
n1k31t4's user avatar
  • 15.1k
6 votes

Very Fast Training After First Epoch

Keras (or its backend) caches this data as much as it can, meaning all subsequent epoch train faster. …
n1k31t4's user avatar
  • 15.1k
1 vote

Val Accuracy not increasing at all even through training loss is decreasing

There is a section on fine-tuning the Keras implementation of the InceptionV3 network, but the principals are the same: you should freeze some of the earlier feature-extraction layers, leaving only some …
n1k31t4's user avatar
  • 15.1k
2 votes
Accepted

Keras BatchNormalization axis

Interesting question :) Using spectrograms means you are essentially using images (of frequencies varying over time). I understand the content is in understood like the graph i.e. with axes time and …
n1k31t4's user avatar
  • 15.1k
6 votes
Accepted

Will Keras fit( ) function automatically shuffles the input dataset by default?

Yes, by default it does shuffle. Here is the documentation. The default call signature: fit(x=None, y=None, batch_size=None, epochs=1, verbose=1, callbacks=None, validation_split=0.0, validation_d …
n1k31t4's user avatar
  • 15.1k
14 votes
Accepted

Activation function between LSTM layers

Documentation If you look at the Tensorflow/Keras documentation for LSTM modules (or any recurrent cell), you will notice that they speak of two activations: an (output) activation and a recurrent activation …
n1k31t4's user avatar
  • 15.1k
2 votes
Accepted

"Super" Optimizer concept

Here is a summary from their homepage: Here is a longer description, and here is a full example based on Keras. …
n1k31t4's user avatar
  • 15.1k
1 vote

Deep model ensemble giving different results

Do you set the random seed in Numpy/Keras/Tensorflow? Did you set any Nvidia CUDA flags for determinism? …
n1k31t4's user avatar
  • 15.1k

1
2 3 4 5
15 30 50 per page