正规365体育投注

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences any time.

Questions tagged [keras]

正规365体育投注 Keras is a neural network library providing a high-level API in Python and R. Use this tag for questions relating to how to use this API. Please also include the tag for the language/backend ([python], [r], [tensorflow], [theano], [cntk]) that you are using. If you are using tensorflow's built-in keras, use the [tf.keras] tag.

Filter by
Sorted by
Tagged with
-1
votes
0answers
8 views

Finding the optimal input in a binary classifier neural network

I have trained a sequential neural network using tf.keras to do binary classification given two input vectors. Each vector represents five IDs using tf.keras.layers.DenseFeatures and tf.feature_column....
0
votes
0answers
10 views

Train on multiple file with different samples for each file

I have a dateset which is too big for my resources. In order to train on this dateset I decided to split it into multiple small files and the create a generator that loads the files and prepoces them. ...
0
votes
0answers
5 views

Setting up an stacked BiLSTM encoder in Keras

I want to know if what I'm doing is correct. I'm building a sequence to sequence encoder decoder network for language translation. I stacked three BLSTM layers as encoder and one LSTM decoder. It does ...
0
votes
0answers
14 views

Keras fit generator and number of workers

It seems to me that the .fit_generator() method in Keras (recently just renamed and overload .fit()) with a data generator using keras.utils.Sequence, only uses 1 worker for validation. My version of ...
0
votes
0answers
12 views

the prediction function gives the same output everytime

from keras.datasets import mnist from keras.models import Sequential, load_model from keras.layers import Dense from keras.layers import Dropout from keras.layers import Flatten from keras.layers....
0
votes
0answers
9 views

Simple Tensorflow 2 classifier won't learn

It's a simple model architecture based on this tutorial. The dataset would look like this, although in 10 dimensions: import tensorflow as tf from tensorflow import keras from tensorflow.keras.models ...
1
vote
0answers
5 views

No module named 'gast'

I can't figure out the problem . Its showing 'gast' already installed when i try to install 'gast' with "pip install gast" command. but in jupyter notebook the code below occurs internal python error ...
-1
votes
0answers
9 views

InvalidArgumentError: indices[0,0] = -1 is not in [0, 25)

here I am trying to implement RNN but while fitting model I having following error InvalidArgumentError: indices[0,0] = -1 is not in [0, 25) [[node embedding_34/embedding_lookup (defined at C:\...
0
votes
1answer
11 views

tf.keras.layers.Conv2D get kernel values

How do I get the Kernel values from tf.keras.layers.Conv2D? Here is my code: #input image is 5 X 5 and 1 channel input_shape = (1, 1, 5, 5) x = tf.random.normal(input_shape) y = tf.keras....
0
votes
0answers
8 views

Tensorflow InvalidArgumentError when calling model.fit

I am trying to setup a really simple keras model in tensorflow. I have a X_train and a Y_train numpy.ndarray variables with size of (846, 30, 373) and (846, 1, 1) respectively. The model looks as ...
0
votes
0answers
8 views

How to ignore vectos of zeros in Keras

I'm implementing an LSTM with Keras. My dataset is composed by words and each word is an 837 long vector. I grouped the words in groups of 20 and to do this I padded them: initially I had groups of ...
0
votes
0answers
10 views

Resnetv2 implementation in Keras

I would like to understand a detail about Resnetv2 in Keras, the one in tensorflow.keras.applications.ResNet50V2. How come the first convolution layer has the same number of parameters given two ...
1
vote
0answers
12 views

Why do I receive this error training an autoencoder with keras in R?

I have a directory of 8-bit rgb (3 channel) images of different sizes. I'm trying to use them to train an autoencoder in R 3.6.3, using keras 2.2.5.0 with tensorflow 2.0.0 on a linux mint 19 machine. ...
0
votes
0answers
13 views

Convert Keras-Fuctional-API into a Keras Subclassed Model

I'm relatively new to Keras and Tensorflow and I want to learn the basic implementations. For this I want to build a model that can learn/detect/predict handwritten digits, therefore I use the MNIST-...
0
votes
1answer
7 views

Unable to import AttentionLayer in Keras (TF1.13)

I'm trying to import Attention layer for my encoder decoder model but it gives error. from keras.layers import AttentionLayer or from keras.layers import Attention following is the error cannot ...

15 30 50 per page
1
2 3 4 5
1707