Search Results
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 |
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.
1
vote
Why model.fit_generator in keras is taking so much time even before picking the data?
Check out the official docs and this issue for the Keras version. … as K
import keras...... …
2
votes
Keras custom loss function as True Negatives by (True Negatives plus False Positives)
As the link you added suggests, you must also create a wrapper function to use this custom function as a loss function in Keras:
def specificity_loss_wrapper():
"""A wrapper to create and return a … This can then be used like this:
# Create a Keras model object as usual
model = my_model()
# ... …
1
vote
Keras - Error when using HDF5Matrix to fit the model
You could alter the code above in your local version of Keras to cover your case, essentially converting the received input into a NumPy array, which would then pass then checks and be used. … Testing
Just an example to show how the above transformation should really end up with your data being fed to the model as a numpy array:
import numpy as np
import keras
a = np.arange(0, 75).reshape …
1
vote
Accepted
why this naming convention for padding as "Same" and "Valid" in keras
Using valid will essentially use as much of your input as possible, such that the dimensions continue to work. This means there is a chance some input will be trimmed (removed).
same on the other han …
1
vote
Accepted
Keras - understanding ImageDataGenerator dimensions
I think your train_images array should have shape (79, 698, 608, 3). The generator works through each of the first dimensions of those arrays, so is passing a batch of 4d numpy arrays, instead of a ba …
1
vote
How do you know when you are using a multi gpu?
If theya re showing, but Keras/Tensorflow is not finding them, have a look at this thread for more checks for Tensorflow backend. …
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 …
3
votes
Accepted
Is regularization included in loss history Keras returns?
You could perhaps define a custom function that compute the regularisation terms you are using, and execute that as either your own metric or as a callback function in a Keras model. …
3
votes
Output trained parameters of Keras model
I assume you mean that you build a network using Keras (which contains recurrent GRU layers) and would like to save the model after some training, then restart from the same point e.g. with new data or …
2
votes
Recreating ResNet50
I am afraid it is not that simple - Have a look at this pretty good walkthrough.
The table you posted is a kind of overview that doesn't contain all the details of how the "blocks" are linked. Other …
1
vote
Accepted
Are the image data augmentation generators in Keras randomly applied
I suggest having a look at the relevant documentation.
There, it states:
rotation_range: Int. Degree range for random rotations.
...
horizontal_flip: Boolean. Randomly flip inputs horizontally.
Sayi …
4
votes
Accepted
Keras exception: ValueError: Error when checking input: expected conv2d_1_input to have shap...
It must be in your generators - I ran the following code and a model trained as expected:
from keras import models, layers, metrics
import numpy as np
model = models.Sequential()
...: model.add(layers.Conv2D …
1
vote
Accepted
Subtracting grand mean from train and test images
There is a kind of bias that you are introducing, yes. You are basically extracting some statistics (i.e. the mean) from your hold-out set and using that to train, which makes your final claims of acc …
2
votes
Keras: matching logistic regression performance with sequential neural network?
Also, have a look here for a sample of a larger network performing classification, to see how R Keras is best used. … activation = "softmax")
model %>% compile(
optimizer = "rmsprop",
loss = "categorical_crossentropy",
metrics = c("accuracy")
)
history <- model %>% keras …
2
votes
Accepted
Padding in Keras with output half sized input
One thing that isn't always obvious if you just started learning KEras, is that you can mix in Tensorflow operations directly from the Tensorflow library in with your Keras code. … If you don't force the padded tensors into a Keras layer, attributes will be missing:
# AttributeError: 'Tensor' object has no attribute '_keras_history'
Which you can hack by just adding the attribute …