Questions tagged [tensorflow]

TensorFlow is an open source library for machine learning and machine intelligence. TensorFlow uses data flow graphs with tensors flowing along edges. For details, see https://www.tensorflow.org. TensorFlow is released under an Apache 2.0 License.

Filter by
Sorted by
Tagged with
0
votes
1answer
571 views

Does Tensorflow uses vectorization in its operators [closed]

I'm kinda new to tensorflow and just wanted to know if it already performs vectorization in its operators like multiplying matrices and so on. And if not if its doable. As an example let's say we ...
1
vote
0answers
118 views

Inception V3 Running Stats?

Has anyone created statistics on how fast and accurate Inception V3 can classify an image based on criteria such as: different models of GPUs/CPUs, input image size, input image ratio, file format, ...
8
votes
1answer
4k views

What is a tower?

In many tensorflow tutorials (example) "towers" are mentioned without a definition. What is meant by that?
1
vote
1answer
321 views

Digits Localization on Streets View House Numbersm

I am trying to learn a bit of deep learning playing with the Street View House Numbers data set. I have managed to recognize sequences of digits and I'd like now to train a CNN to localize digits and ...
20
votes
4answers
12k views

What is the benefit of splitting tfrecord file into shards?

I'm working on speech recognition with Tensorflow and plan to train LSTM NN with massive waves dataset. Because of the performance gains, I plan to use tfrecords. There are several examples on ...
1
vote
1answer
2k views

Recognize Street View House Numbers

I am new to deep learning and I am trying to train a NN to recognize house numbers gathered from street view. I have already managed to recognized MNIST sequence of hand written digits by means of a ...
1
vote
0answers
365 views

Mapping xml tags by Rule Learning/Generation Algorithms

I'm trying to map tags/attributes from xml files from different sources. I've found a paper called Semantic Mapping of XML Tags using Inductive Machine Learning. Among various things, it also talks ...
1
vote
1answer
196 views

Extending a trained neural network for a larger input

I have a seq2seq conversational model (based on this implementation) trained on the Cornell movie dialogs. Now I want to fine-tune it on a much smaller dataset. The new data comes with the new words, ...
2
votes
1answer
685 views

Get Gate Activation of GRU-Cells in TensorFlow

I implemented a standard RNN in Tensorflow (0.12) using the classes tf.python.ops.rnn_cell.GRUCell tf.nn.dynamic_rnn I am interested in the gates and which values they take during. Unfortunately the ...
1
vote
1answer
1k views

Cost functions penalizing certain types of misclassification more heavily in tensorflow

I have 2 classes of data A and C. I want to create a NN with 3 output nodes, classifying data as either A, B, or C. Classifying an A or C correctly should have zero cost (very good). Classifying ...
2
votes
1answer
478 views

Accuracy stagnated while training notMNIST data

I am a beginner in machine learning. I have built a logistic classifier in Python using TensorFlow to train on notMNIST dataset. My code is as such: ...
0
votes
1answer
53 views

Using TensorFlow's preexistent Inception labeler

I know I can retrain Inception to label images, but can I just provide an image to a non retrained Inception and get a label back?
0
votes
1answer
199 views

How to use InceptionV3 without retraining

I know I can retrain Inception to label images, but can I just provide an image to an untrained Inception and get a label back? Is there an API for this? If there is, then why does Google open source ...
10
votes
2answers
8k views

Why is learning rate causing my neural network's weights to skyrocket?

I am using tensorflow to write simple neural networks for a bit of research and I have had many problems with 'nan' weights while training. I tried many different solutions like changing the optimizer,...
3
votes
0answers
302 views

TensorFlow doesn't learn when input=output (or probably I am missing something)

I have used TensorFlow before for training a model to recognize images (something similar to this example: https://github.com/tensorflow/models/tree/master/inception). I was trying to do something ...
2
votes
1answer
914 views

Clipping threshold of softmax layer

I recently came across a paper on using (rather simple version of) LSTM for sentiment classification, and it describes its network settings as: We randomize the parameters with uniform distribution ...
6
votes
1answer
6k views

Possible to use different learning rate for different neuron in Keras/Tensorflow?

The simplest example is to have faster/slower learning rates in the upper/lower layers of a network. I found this post on tensorflow. Is there a similar trick in Keras? Going one step further, can ...
1
vote
0answers
648 views

Does the time to train a model using keras increase linear with epoches?

Training a model in keras can go very fast. I trained the following model. To train the model with 1 epoch finishes in a few second. However, using 20 epochs it lasts half an hour or so? An epoch ...
0
votes
1answer
3k views

TFLearn Does Not Load Model

Im trying to learn and get the hang of tflearn. One thing that I have tried to do is save my model, and then reload it. I get an error that says: ...
0
votes
1answer
6k views

How can I get the max value and corresponding index of a tensor simultaneously in Tensorflow?

The only way I came out is using tf.argmax with tf.reduce_max. But I'm afraid of that it may be inefficient to find the max value twice.
8
votes
1answer
1k views

Machine Learning: Writing Poems

I'm a student of machine learning, and these days I was trying to learn how to use the TensorFlow library. I've gone through various tutorials and trial&errors with tensorflow, and I thought the ...
3
votes
0answers
5k views

Adding multilabel classifier to TensorFlow example

I am starting with the generic TensorFlow example. To classify my data I need to use multiple labels (ideally multiple softmax classifiers) on the final layer, ...
1
vote
1answer
2k views

how to change keras backend in windows?

In ubuntu I can find ~/.keras/keras.json and change the backend but in windows, I can not find this file. How can I change keras backend in windows.
2
votes
1answer
3k views

Classifying multilabel images with TensorFlow

The dataset that I am categorizing with TensorFlow ML library contains multiple labels per image. The contents are real estate images photographed from outside that are analyzed for various image ...
4
votes
2answers
5k views

Backpropagation Through Time (BPTT) of LSTM

I am currently trying to understand the BPTT for Long Short Term Memory (LSTM) in TensorFlow. I get that the parameter num_steps is used for the range that the RNN ...
7
votes
2answers
9k views

How to deal with large training data?

Currently, I use image files and transform them into a *.npy file(saved as a numpy array) as training data. At present this training data set is nearly 3GB. Now I have more image files, so the ...
1
vote
0answers
1k views

Testing a tensorflow network: in_top_k() replacement for multilabel classification

I've created a neural network in tensorflow. This network is multilabel. Ergo: it tries to predict multiple output labels for one input set, in this case three. Currently I use this code to test how ...
11
votes
1answer
5k views

Train on batches in Tensorflow

I'm currently trying to train a model on a large csv file (>70GB with more than 60 million rows). To do so I'm using tf.contrib.learn.read_batch_examples. I'm struggling in understanding how this ...
6
votes
1answer
3k views

Convolutional autoencoders not learning

I'm trying to implement convolutional autoencoders in tensorflow, on the mnist dataset. The problem is that the autoencoder does not seem to learn properly: it will always learn to reproduce the 0 ...
1
vote
1answer
153 views

Machine learning image training set data as whole object but finding part of object

If the images to test against are only part of the object, does it help to have training set data of the whole object, or is it better for all the training data to be parts of the object? For instance,...
10
votes
1answer
2k views

Why TensorFlow can't fit simple linear model if I am minimizing absolute mean error instead of the mean squared error?

In Introduction I have just changed loss = tf.reduce_mean(tf.square(y - y_data)) to ...
0
votes
1answer
531 views

Loss function for classifying when more than one output can be 1 at a time

My desired output is not 1-hot encoding, but like a 10 D vector: [1, 0, 1, 0, 1, 0, 0, 1, 1, 1] and the input is like the normal MNIST data set. I want to use ...
7
votes
1answer
14k views

How do i pass data into keras?

I am currently struggling to understand how i should train my regression network using keras. I am not sure how I should pass my input data to the network. Both the input data and the output data is ...
6
votes
3answers
31k views

How to use lists in Tensorflow?

I have a number of lists, such as [1,2,3,4], [2,3,4], [1,2], [2,3,4,6,8,10], whose lengths are obviously unsame. How can I use this as input of placeholder in Tensorflow? As I have tried, the ...
10
votes
3answers
19k views

How to do batch inner product in Tensorflow?

I have two tensor a:[batch_size, dim] b:[batch_size, dim]. I want to do inner product for every pair in the batch, generating <...
1
vote
0answers
172 views

How to get value of a matrix from every row with the index generated by argmax in Tensorflow?

I considered gather_nd, but it seemed that gather_nd need a index like [[0,..],[1,..],[2,..]] to get value from every row, and argmax just generated the 1-dimension indexes tensor, it seems that I ...
1
vote
2answers
3k views

Making Keras + Tensorflow code execution deterministic on a GPU

I'm executing this code from https://www.kaggle.com/danijelk/allstate-claims-severity/keras-starter-with-bagging-lb-1120-596 on a nvidia geforce 960M. ...
2
votes
1answer
2k views

Cost of greater than 1, is there an error?

I'm computing cost in the following way: cross_entropy = tf.nn.softmax_cross_entropy_with_logits(y, y_) cost = tf.reduce_mean(cross_entropy); For the first ...
1
vote
1answer
3k views

Tensorflow RNN network with variable sequence length?

I am currently trying to implemenent a RNN network for regression purposes, such that I can map a known input to a known output. The problem in my case is that the input does not have static length, ...
3
votes
1answer
259 views

In Tensorflow, What kind of neural network should I use?

I am doing Tensorflow tutorial, getting what TF is. But I am confused about what neural network should I use in my work. I am looking at Single Layer Neural Network, CNN, RNN, and LSTM RNN. ----------...
1
vote
2answers
1k views

keras validation mean squared error always similar to 1

is there any reason why the validation mean squared error output from Keras is always very similar to 1? Thank you. All of my training results looks like: ...
7
votes
1answer
7k views

Neural network with flexible number of inputs?

Is it possible to create a neural network which provides a consistent output given that the input can be in different length vectors? I am currently in a situation where I have sampled a lot of audio ...
1
vote
1answer
238 views

Future of deep learning (compared to traditional machine learning) [closed]

What do you think will be the future of deep learning? A lot of people talk about deep learning and I can see that it provides various possibilities. For instance, this question gives a nice ...
4
votes
2answers
4k views

Is it possible using tensorflow to create a neural network that maps a certain input to a certain output?

I am currently playing with tensorflow, but can't seem to get a hold whether it usefull for my problem? I need to create a neural network, that is capable of mapping input to output. The way things ...
1
vote
1answer
3k views

tensorflow mnist tutorial

i have a question about the tutorial of tensorflow to train the mnist database how do i create my own batch without using next_batch() , the idea is to train with a batch of 50 ,then 100 and so but it ...
11
votes
1answer
13k views

Tensorflow neural network TypeError: Fetch argument has invalid type

I am making a simple neural network using tensorflow, with data I collected myself, however, it's not cooperating :P I have run into an error that I can't fix or find the fix for and I would love your ...
-1
votes
2answers
1k views

Predictive Model with sort-of-non-binary labels

I'm working with government infrastructure public tenders data and want to build a predictive model. I'm want to train a model to predict if a company will or will not participate in a public tender. ...
1
vote
1answer
264 views

CNN tagging such that each input could have multiple tags

Thanks in advance for reading my question! I've been using CNNs to classify text using Keras and TF. My data is strings "I read the news" or "I read machine learning news" and my labels are tags: ...
2
votes
0answers
255 views

Using tensorflow to test a variable amount of correct labels

I'm using a neural network to analyze item choices made by players in a computer game. In the game players can choose between 0 and 7 items. Right now I'm struggling with how I can evaluate my data. ...
2
votes
1answer
643 views

Feature Selection, Machine learning and Time Series analysis, for large financial timeseries

I have m( around O(millions) ) of rows of type timestamp | val | ind1 | ind2 | ind3 | .... k entries My task is to predict the value of "val" for any future ...