Questions tagged [tensorflow]

For questions related to Google's open source library for machine learning and machine intelligence.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to load MR images and their labels to feed a fully convolutional network

I've just started to work with... everything! I want to do semantic segmentation using MR images and a mask with WMH pathology. My problem is that I don't know how to load these data. All the data ...
1
vote
0answers
22 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 ...
0
votes
0answers
11 views

Object detection won't train after first step [closed]

I was trying to build an object detection model but when I try to train the model, it gets stuck after the first step. I attached the screenshot of the screen. I left it on overnight and it won't go ...
0
votes
0answers
35 views

Is there an audio dataset with the corresponding phonemes in the audio?

I am looking for a dataset of clear audio, a corresponding transcript (optional), and most importantly a list of all the phonemes said in the audio, with the length of each phoneme and a mention of ...
1
vote
0answers
31 views

How to perform regression with multiple numeric (positive and negative) inputs and one numeric output?

I have a dataset with different types of numerical values (both negative and positive numerical values) for the inputs (for example, -40, -35, 1, 25, 39, etc., that is, multiple inputs) and single ...
1
vote
2answers
90 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 ...). ...
1
vote
1answer
36 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 ...
0
votes
0answers
38 views

How to get layers outputs during training at each mini-batch? [closed]

The method model.fit() is used to train the neural network. How can I get the output from any hidden layer during training?
2
votes
1answer
29 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 ...
0
votes
0answers
19 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
0answers
28 views

How can we make sure, how well the reinforcement learning works?

I read a paper which is about Deep Reinforcement Learning and it tries to use this method on stock data set. It has been showed that it reach the maximum return(profit). It has been implemented in ...
0
votes
1answer
42 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
0answers
19 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 "...
2
votes
1answer
38 views

Multi label Classification using Keras

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 ...
0
votes
0answers
10 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
1answer
51 views

Is there has any method to train Tensorflow AI/ML that I focus on detecting background of image more than common objects?

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 ...
2
votes
2answers
64 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 ...
1
vote
0answers
28 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 ...
2
votes
1answer
51 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 ...
2
votes
0answers
56 views

How can I increase the speed and performance of my implementation of an AI for Reversi?

I made an AI for Reversi, aka Othello (8×8), like Alpha Zero, using this book. This book is written in Japanese. The source code of the AI I implemented can be found in this Github repository. There ...
0
votes
0answers
38 views

Training with many CPU cores doesn't improve performance

I ran my job on a computing cluster: first with 4 cores, then with 32 cores (2 nodes). But the training time is pretty much exactly the same for both of them: ~67 seconds per step. I am trying to ...
0
votes
0answers
7 views

How to set loss weight to zero for an output dimension in keras?

Suppose I am training a model to detect facial keypoints that allow occlusions to be present. The input is an image of a face, and the model has to predict the x,y coordinate of both eyes and mouth. ...
1
vote
1answer
73 views

Can you explain to me this code written in Tensorflow? [closed]

I have found this part of code, but I do not actually know how it works. Because I am new to Tensorflow, I do not know it. Can anybody help me and explain it to me? ...
1
vote
0answers
19 views

How to implement CNN with variable number of images in tensorflow or keras?

Suppose I have a problem where I want to classify the color of LEDs seen in the image. I can use OpenCV to pinpoint the exact location of these LEDs but I do not know their color for sure because the ...
0
votes
0answers
28 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
2answers
42 views

TensorFlow 2.0 - Normalizing input to DNN (on structured data)

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 ...
2
votes
1answer
20 views

The best way of classifying a dataset including classes with high similarity?

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 ...
1
vote
0answers
14 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
1answer
25 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
1answer
22 views

Is a VGG-based CNN model sometimes better for image classfication than a modern architecture?

I have an image classification task to solve, but based on quite simple/good terms: There are only two classes (either good or not good) The images always show the same kind of piece (either with or ...
1
vote
1answer
65 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
0answers
42 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: ...
0
votes
0answers
19 views

Why is the value range of my LSTM model's prediction different from my test labels?

I am using LSTM to do time-series anomaly detection. The data is an hourly sensor input across multiple years (i.e. the global_active_energy attribute of the dataset from https://www.kaggle.com/uciml/...
1
vote
0answers
116 views

How can I use Flask to integrate a chatbot created with TensorFlow into a website?

I have recently started developing a chatbot with TensorFlow. I already have a model that receives a question and outputs an answer. But how do I use Flask to integrate my Tensorflow chatbot model ...
0
votes
0answers
35 views

How does keras `train_on_batch` return value work?

From the doc, train_on_batch() will return a scalar representing the loss and the metric. I want to know whether the loss/metric is evaluated before the weight is ...
0
votes
1answer
73 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 ...
1
vote
0answers
31 views

tf.data.Dataset: method argument of from_tensor_slices(tensors) unclear [closed]

I'm new to tensorflow and I am working through the Titanic tutorial of Tensorflow 2.0. In this tutorial at some point they create a dataset by applying ...
0
votes
1answer
49 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
0answers
17 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 ...
0
votes
0answers
16 views

How to recognize two different objects with the similar shape, but different size

I am using Mask-RCNN neural network. I retrained my network to detect and mask wheels of die-cast toy cars. I am using images, which present the side of the car (left or right). Sometimes the cars ...
1
vote
2answers
49 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
1answer
43 views

CNN how can i reduce gpu memory usage with large image sizes?

I am trying to train a cnn-lstm model, my sample image sizes are 640x640. I have a GTX 1080 ti 11GB. I am using Keras with tensorflow backend. Here is the model. ...
4
votes
1answer
59 views

dimensions of hidden layer and cell state layer in LSTM

I was following some examples to get familiar with tensorflow LSTM related api, but noticed that all LSTM initialization functions require only num_units parameter which denotes number of hidden units ...
0
votes
1answer
20 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
1answer
28 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
2answers
86 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: ...
1
vote
0answers
24 views

How to get same accuracy with identical models in Keras and Tensorflow?

As we all know Keras backend uses Tensorflow and so it should give out same kind of results when we provide same parameters, hyper-parameters, weights and biases initialisation at each layer, but ...
1
vote
1answer
36 views

Tensorflow and Keras model having same parameters, hyperparameters, weight and bias initialization give different accuracy? [closed]

I have made sure that layers,parameters, hyperparameters,kernel_initialization, bias_initialization, seed and dataset are all equal. But still the output for both the models are different. ...
0
votes
1answer
31 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] ]; ...
0
votes
0answers
8 views

Looking for the right type of 1D-Convolution that only considers one column/attribute

My input has the shape of n rows (time steps) and m columns (attributes). I want to train a convolutional neural network on it to predict a class. I am currently using 1D-Convolutions. I got a good ...