Questions tagged [tensorflow]
For questions related to Google's open-source library for machine learning and machine intelligence. However, note that programming questions are off-topic here.
371 questions
0
votes
1
answer
159
views
Is this neural network architecture appropriate for CIFAR-10? [closed]
I have a CNN architecture for CIFAR-10 dataset which is as follows:
Convolutions: 64, 64, pool
Fully Connected Layers: 256, 256, 10
Batch size: 60
Optimizer: ...
1
vote
1
answer
43
views
I need to select the image from a predefined dataset that are the closest to the input, is this possible or do I even need to use ML/AI?
So as the title states, I have a set of images and I want to process input images and need to select the image that "looks" the most like the input image.
I know I've seen something similar where the ...
2
votes
0
answers
170
views
How do I make my LSTM model more sensitive to changes in the sequence?
I have a many to one LSTM model for multiclass classification. For reference, this is the architecture of the model
...
5
votes
1
answer
716
views
Is there a reason to use TensorFlow over PyTorch for research purposes?
I've been using PyTorch to do research for a while and it seems to be quite easy to implement new things with. Also, it is easy to learn and I didn't have any problem with following other researchers ...
1
vote
0
answers
125
views
Error when using tensorflow HMC to marginalise GPR hyperparameters
I originally posted on SO (original post) but was suggested to post here.
I would like to use tensorflow (version 2) to use gaussian process regression to fit some data and I found the google colab ...
2
votes
0
answers
25
views
How to handle set-like size agnostic input format
Let's set up some hypothetical simplified scenario: Each instance $i$ of my imaginary dataset $D=\{i_{1}, \ldots, i_{MAX}\}$ has different number $k_{i}$ of $n$-dimensional vectors as input into my ...
1
vote
0
answers
24
views
Is there a way to use RNN (in tensorflow) to do something like a batch Kalman with the weight dynamics specified in the loss?
Or would you simply do this as a time series of models.
Basically I think you can think of time series of weights as the hidden states and the dynamics driving the weight time series as the RNN ...
37
votes
6
answers
11k
views
Why do CNN's sometimes make highly confident mistakes, and how can one combat this problem?
I trained a simple CNN on the MNIST database of handwritten digits to 99% accuracy. I'm feeding in a bunch of handwritten digits, and non-digits from a document.
I want the CNN to report errors, so I ...
1
vote
0
answers
788
views
TensorFlow fit() and GradientTape - number of epochs are different
if I define the architecture of a neural network using only dense fully connected layers and train them such that there are two models which are trained using model.fit() and GradientTape. Both the ...
4
votes
2
answers
3k
views
Why does the bias need to be a vector in a neural network?
I am learning to use tensorflow.js. I am also using the tfvis library to print information about the neural net to the web browser. When I create a create a dense neural net with a layer with 5 ...
3
votes
1
answer
183
views
What are the differences between TensorFlow and PyTorch? [closed]
What are the differences between TensorFlow and PyTorch, both in terms of performance and functionality?
5
votes
1
answer
426
views
Why do we average gradients and not loss in distributed training?
I'm running some distributed trainings in Tensorflow with Horovod. It runs training separately on multiple workers, each of which uses the same weights and does forward pass on unique data. Computed ...
1
vote
0
answers
734
views
Reasoning behind $Zero$ validation accuracy in the following ResNet50 model for classification
I have written this code to classify Cats and dogs using Resnet50. Actually while studying I came to the conclusion that Transfer learning gives very good accuracy for deep learning models, but I ...
2
votes
2
answers
2k
views
Why does the denoising autoencoder always returns the same output?
I am trying to implement a denoising autoencoder (DAE) to remove noise from 1024-point FFT spectra. I am using two types of spectra: (1) that contain a distinctive high amplitude spectral peak and (2) ...
1
vote
0
answers
35
views
Can't figure out what's going wrong with my dataset construction for multivariate regression
TL;DR: I can't figure out why my neural network wont give me a sensible output. I assume it's something to do with how I'm presenting the input data to it but I have no idea how to fix it.
Background:...
1
vote
2
answers
2k
views
Why don't people always use TensorFlow Lite, if it doesn't decrease the accuracy of the models?
I have been exploring edge computation for AI, and I came across multiple libraries or frameworks, which can help to convert the model into a lite format, which is suitable for edge devices.
...
2
votes
0
answers
32
views
How are batch statistics computed in Recurrent Batch Normalization?
I'm implementing recurrent BN per this paper in Keras, but looking at it and those citing it, a detail remains unclear to me: how are batch statistics computed? Authors omit explicit clarification, ...
1
vote
0
answers
125
views
What is the correct input shape for my LSTM network?
My professor gave us a workshop where we have to do classification of a dataset of ECG signals between healthy and unhealthy types using LSTM. Each signal consists of 1,285 time steps.
What my prof ...
1
vote
2
answers
266
views
How can I find what does an specific neuron do in neural network?
How can I know what each neuron does in NN?
Consider the Playground from Tensorflow, there are some hidden layers with some neurons in each. Each of them shows a line(horizontal or vertical or ...). ...
2
votes
2
answers
136
views
Are there ensemble methods for regression?
I have heard of ensemble methods, such as XGBoost, for binary or categorical machine learning models. However, does this exist for regression? If so, how are the weights for each model in the process ...
2
votes
1
answer
663
views
How to reduce variance of the model loss during training?
I know that stochastic gradient descent always gives different results. What are the best practices to reduce this variance today?
I tried to predict simple function with two different approaches and ...
1
vote
0
answers
25
views
What are examples of models for traffic sign detection that can be easily implemented?
I'm working on a college project about traffic sign detection and I have to choose a paper to implement it, but I have basic knowledge of TensorFlow and I'm afraid of choosing a paper that I can't ...
0
votes
1
answer
62
views
Do we have anything like accuracy and loss in RNN models?
I have a paper about trading which has been implemented with RNN on Tensorflow. We have about 2 years of data from trading. Here are some samples :
Date, Open, High, Low, Last, Close, Total Trade ...
1
vote
0
answers
174
views
Is this TensorFlow implementation of partial derivative of the cost with respect to the bias correct?
I have a neural network for MNIST classification which I am hard coding using TensorFlow 2.0. The neural network has an input layer consisting of 784 neurons (28 * 28), one hidden layer having "...
1
vote
1
answer
86
views
Multi label Classification using Keras [closed]
I am trying to build a Multi label classification model, having dataset with different input numerical values and specific label...
Eg:
Value Label
35 X
35.8 X
29 Y
29.8 Y
39 AA
41 CB
...
1
vote
0
answers
83
views
Can mobilenet in some cases perform better than inception_v3 and inception_resnet_v2?
I have implemented a multi-label image classification model where I can choose which model to use, I was surprised to find out that in my case mobilenet_v1_224 performed much better (95% Accuracy) ...
0
votes
1
answer
218
views
Is there has any method to train Tensorflow AI/ML that I focus on detecting background of image more than common objects? [closed]
Is there has any method to train Tensorflow AI/ML that I focus on detecting background of image more than common objects?
I'm newbie to ML field, but was assigned to do job that make an application ...
4
votes
2
answers
236
views
What could be the problem when a neural network with four hidden layers with the sigmoid activation function is not learning?
I have a large set of data points describing mappings of binary vectors to real-valued outputs. I am using TensorFlow, and would like to train a model to predict these relationships. I used four ...
2
votes
0
answers
74
views
How should I make output layer of my neural network so that I can get outputs ranging from [-20,-1]
I am trying to make a neural network which takes in 0 and 1 as it's input and should give me output ranging from [-20,-1].I am using three layers with sigmoid as the activation function .How should I ...
3
votes
1
answer
264
views
What is the fastest way to train a CNN with billions of examples?
I have a CNN model that I need to train for a large scale genomics application. It is working well with a subset of my training data. I have scaled up to a subset of about 130 million examples and ...
1
vote
0
answers
49
views
How could I locate certain words or numbers in a financial statement?
I would like to code a script that could locate a specific word or number in a financial statement. Financial statements roughly contain the same information, they are however not identical and ...
1
vote
2
answers
323
views
TensorFlow 2.0 - Normalizing input to DNN (on structured data) [closed]
I have a structured dataset of around 100 gigs, and I am using DNN for classification in TF 2.0. Because of this huge dataset, I cannot load entire data in memory for training. So, I'll be reading ...
1
vote
1
answer
62
views
The best way of classifying a dataset including classes with high similarity? [closed]
I have a dataset which has two very similar classes (men wrestling, women wrestling). I've used InceptionV3 as a classifier to solve the problem of classifying this dataset. Unfortunately, the ...
3
votes
0
answers
480
views
How to use TPU for real-time low-latency inference?
I use Google's Cloud TPU hardware extensively using Tensorflow for training models and inference, however, when I run inference I do it in large batches. The TPU takes about 3 minutes to warm up ...
0
votes
1
answer
218
views
How can we print weights per iteration in a simple feed forward MLP for an specific class?
im working on a project in which I have to make a multi-layer perceptron with two hidden layers with 3 nodes in each. The target value in my data contains 8 unique values/classes. One of the tasks ...
1
vote
1
answer
348
views
Which model can I use for this problem with multiple inputs and outputs?
Which model is the most appropriate for this problem with multiple inputs and outputs?
The data set is
A1, A2, A3, A4, A5, A6, B1, B2, B3, B4
where ...
2
votes
0
answers
57
views
How to implement loss function of H-GAN model
I was trying to implement the loss function of H-GAN. Here is my code . But it seem somethings wrong, maybe is recognition loss on z (EQ 9). I used the EQ 5 on MISO to calculate it. Here is my code:
...
1
vote
1
answer
136
views
Indoor positioning with variable number of distance measurements in tensorflow
Currently I have a setup where I'm determining the position of a transmitter using the RSSI of 4 receivers. Its a simple feed-forward network with some hidden layers, where the input is the RSSI ...
0
votes
1
answer
99
views
TF Keras: How to turn this probability-based classifier into single-output-neuron label-based classifier
Here's a simple image classifier implemented in TensorFlow Keras (right click to open in new tab): https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/quickstart/...
1
vote
0
answers
120
views
Trying to separate spiral data with neural network, learning tensorflow
I am learning how to use tensorflow without keras, just to make sure I understand tensorflow directly.
I created a spiral-looking datasets with 100 points of each class (200 total), and I created a ...
1
vote
2
answers
428
views
Why is embedding important in NLP, and how does autoencoder work?
People say embedding is necessary in NLP because if using just the word indices, the efficiency is not high as similar words are supposed to be related to each other. However, I still don't truly get ...
3
votes
1
answer
3k
views
How can I reduce the GPU memory usage with large images?
I am trying to train a CNN-LSTM model. The size of my images is 640x640. I have a GTX 1080 ti 11GB. I am using Keras with the TensorFlow backend.
Here is the model.
...
14
votes
3
answers
7k
views
What is the relationship between the size of the hidden layer and the size of the cell state layer in an LSTM?
I was following some examples to get familiar with TensorFlow's LSTM API, but noticed that all LSTM initialization functions require only the num_units parameter, ...
0
votes
1
answer
49
views
How to change this RNN text classification code to become text generation code?
I can do text classification with RNN, in which the last output of RNN (rnn_outputs[-1]) is used to matmul with output layer weight and plus bias. That is getting a word (class name) after the last T ...
2
votes
1
answer
36
views
Neural network does not give out the required out put?
Made a neural network using tensor flows that was supposed matches an Ip to one of the 7 type of vulnerabilities and gives out what type of vulnerability that IP has.
...
0
votes
2
answers
2k
views
LSTM network doesn't converge, what should be changed? [closed]
I'm testing out TensorFlow LSTM layer text generation task, not classification task; but something is wrong with my code, it doesn't converge. What changes should be done?
Source code:
...
0
votes
1
answer
83
views
How to map X to Y for TensorFlow RNN training data
Usually for DNN, I have the training data of matching X (2D) to Y (2D), for example, XOR data:
X = [[0,0],[0,1],[1,0],[1,1]];
Y = [[0], [1], [1], [0] ];
...
4
votes
1
answer
222
views
Why isn't my Neural Network based calculator working?
I am playing around with neural networks in Tensorflow and I figured an interesting test would be whether I can write a calculator using a Tensorflow Neural Network.
I started with simple addition ...
0
votes
1
answer
1k
views
Network doesn't converge with ReLU or Leaky ReLU, but works well with sigmoid/tanh
I have these training data to separate, the classes are rather randomly scattered:
My first attempt was using tf.nn.relu activation function, but output was stuck ...
0
votes
1
answer
271
views
Generate credit cards dataset for locating number region
Currently I'm working on a project for scanning credit card and text extraction from cards. So first of all I decided to preprocess my images with some filters like thresholding, dilation and some ...