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
0answers
15 views

Should rescaling be used on test images in keras?

I am kind of confused regarding the topic. I have built a CNN architecture for the cat-dog image classification around 6000 images of cat and 6000 images of dog and I am predicting on test images. I ...
-1
votes
0answers
7 views

model stuck in first epoch

Every other model is running in seconds on M1 Macbook but this is model is taking infinite time to run the epochs.I am not able to identify the problem here.The same code is working fine in google ...
1
vote
0answers
15 views

How to load a dataset with a specific structure in tfds library?

I have a dataset that it's classes arranged in the following way: /dataset/train/images/class1/ /dataset/train/images/class2/ . . . /dataset/train/images/classN/ ...
0
votes
0answers
13 views

MNIST trained network tested with my own samples

I trained a Dense Neural Network with MNIST dataset in order to classify 28x28 images of numbers. Now I was trying to make it work with my own samples (I draw the image of a "7" in paint and ...
0
votes
1answer
16 views

How does TensorFlow handle multiple samples?

Say the mini-batch has $N$ samples $(x, y)$, how will tensorflow utilize this $N$ samples to train the network. Will it do $N$ forward loop for each sample independently? Will it do $N$ backward ...
0
votes
0answers
10 views

Convert a simple NN model to LSTM model (made using Tensorflow.compat.v1)

I have a simple neural net which I would like to convert to an LSTM model. Can someone please help me with the code? The following code contains the neural net part: ...
1
vote
0answers
6 views

Cannot update variable with shape [2] using a Tensor with shape [512,1], shapes must be equal. [Op:AssignAddVariableOp]

I know this question has been asked many times before but I just can't figure out what's going wrong. My model takes one input and gives two outputs , I'm passing it in a dictionary: ...
0
votes
1answer
18 views

Working of Dense Layer

What kind of operation does Dense Layer perform to reduce dimemsion. So basically I have used Dense layer to compress the dimension all the time like from 10000 neurons to direct 2000 neurons or even ...
0
votes
0answers
9 views

LSTM - unable to get a 3D output

I have an array with shape (55834, 250, 30) and I'd like to get an output of the same shape from this LSTM model. ...
0
votes
1answer
16 views

Error during the compilation of a neural network in Vitis AI, "Not found op in super_const_dict: name: Decoder_Section_1_UpConv_1/kernel"

I'm following a Xilinx Tutorial about the implementation of a Neural Network in a System on Chip (ARM Processor + Xilinx FPGA) and I have come up with an error during the compilation step. I've ...
0
votes
0answers
7 views

Training fasttext on your own corpus

I want to train fasttext on my own corpus. However, I have a small question before continuing. Do I need each sentences as a different item in corpus or can I have many sentences as one item? For ...
0
votes
0answers
9 views

Large dataset with large sparse and dense features - solve memory inefficiency

My model stores sparse and dense features during training. When operating on a large dataset (consider 10^5 samples), the memory requirements explodes during the training. What could be done to solve ...
0
votes
0answers
30 views

Using Sentence-Bert with other features in scikit-learn

I have a dataset where one feature is text and 4 more features. Sentence-Bert vectorizer transforms text data into tensors. I can use these sparse matrices directly with a machine learning classifier. ...
0
votes
1answer
22 views

Computing F1 score for YOLOV5

I am confused at finding out the exact F1 score of my YOLOv5 model which underwent training for 150 epochs. Also, how can I know if the model has done well based on these graphs? Here are the metrics: ...
0
votes
1answer
19 views

How do I feed my keras model in batches?

I am trying to feed a Sequential model in batches. To be reproducible my example, suppose my data is: X=np.random.rand(24,432) Y=np.random.rand(24,432) My goal is ...
0
votes
0answers
12 views

BayesianOptimization tuning the same parameter with different results

I'm running a hyperparameter search using Keras wherein there is only one hyperparameter explicitly specified (# of LSTM units). However when running BayesianOptimization, after a while I notice it ...
1
vote
0answers
15 views

The case of (1,478) dim and parameters of neural network to find out

colleagues, actually I am kind'a new to NN, but hard trying.. I have data: Index: 40073 entries (excluded from training, UID) Columns: 484 entries dtypes: bool(468), float64(2), int64(13), object(1) I ...
0
votes
0answers
5 views

Preprocessing for Transfer Learning Model with an Inception Network

I am trying to build an image classification model using an Inception Network as the base. This is a simple binary classification model. My images are available in many smaller directories within one ...
1
vote
0answers
18 views

Failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered [closed]

While running a code I am encountering this error any ideas on how to resolve this
0
votes
0answers
6 views

What exactly "subset" is in "tf.keras.preprocessing.text_dataset_from_directory"?

so I'm following the official keras tutorial here. However I couldn't really understand the subset and validation_split ...
-1
votes
1answer
68 views
0
votes
0answers
15 views

Batch normalization vs Layer normalization in tensorflow

Suppose you have the following code below. I would like to normalize the feature within each batch individually. Would I have to consider layer normalization or batch normalization for this purpose ...
0
votes
0answers
10 views

Getting the maximum values of batch inputs in preparing data for a tensorflow weather prediction

Consider the code below. I got this code from the tensorflow page. We have 19 features for predicting the temperature in weather. The code creates a w2 class variable as an example. The label is one ...
0
votes
1answer
17 views

Segmentation 3D Unet checkerboard artifacts in slices above and below segmentation voxels

I suppose an image is worth too many words, so here is the image: As you can see, in the middle where there are voxels to be segmented, no artifacts are present. Whereas on the top and bottom I get a ...
1
vote
0answers
14 views

How can I find the individual components of a tensorflow.python.data.ops.dataset_ops.BatchDataset file?

suppose you have a file created by the tensorflow.python.data.ops.dataset_ops.BatchDataset? How can I access the individual components? Specifically I want to max value of every batchdataset.
0
votes
0answers
10 views

Adding a constant to a batch data set in preparing time series data in Tensorflow

Consider the code below. The batch data is created with the command tf.keras.preprocessing.timeseries_dataset_from_array. I want to manipulate every array in the batch data in such a way that I want ...
1
vote
0answers
8 views

Regarding 32-bit microcontrollers, is TensorFlow Lite for Microcontrollers the only available option?

I am working on a ML project that includes ARM-based microcontrollers such as Arduino Nano 33 BLE Sense. I did some research but could not find any alternative for these microcontrollers rather than ...
0
votes
2answers
49 views

High accuracy in mode.fit but low precision and recall. Overfit? Unbalanced? Error?

Hello ive been training a CNN with keras. A binnary clasificator where it says if a depth image has a manhole or not. Ive labeled manually the datasets with 0 (no manhole) and 1(it has a manhole). I ...
1
vote
0answers
11 views
0
votes
0answers
10 views

Increase dimension of dataset for modelisation

I have a dataset like that : | A header | Another header | | -------- | -------------- | | a | {player_1: stat_1,stat_2,stat_3} | | b | {player_2: stat_1,stat_2,stat_3} | | ...
0
votes
1answer
22 views

What is glorot uniform?

While reading Bengio and Glorot, came across this, but after going through paper, intution about the algorithm was not so deep, care to explain why was this needed and where they needed to implement ...
0
votes
0answers
12 views

BERT Text Classification Model gives error

I am fine-tuning a BERT Model for text classification with Tensorflow. Here is my code for building the model: ...
0
votes
0answers
11 views

Input Neural Network

I have often seen something like this: tf.placeholder(dtype=tf.float32, shape=[None, input_dim]) as an input for a neural network. But the only input that makes ...
0
votes
0answers
33 views

Fine-tuning a pre-trained Tensorflow model

I have two questions regarding fine-tuning a pre-trained Tensorflow model on a mix of high-quality and low-quality images.In other words, ' Does the large contrast in image quality confuses the model ...
0
votes
0answers
7 views

Graph convolution with global information

Is it possible to add global information in addition to node information using Spektral or Pythorch? For instance, information of nodes such as relative position and atomic mass give a molecular ...
0
votes
0answers
8 views

How to trim the train, test and validate datasets for LSTM to avoid shape issues?

I am trying to get an LSTM to optimize for regression of stock returns, but I keep encountering shape errors during the fit() phase. Specified a list with shape [30,2] from a tensor with shape [1,2] ...
0
votes
1answer
25 views

LSTM layer (keras) is causing all layers after it to constantly predict the same thing no matter the input

I have a model for OCR, which after 2-3 epochs gives the same output. When I predicted the values and looked at the output for each layer I realized that all layers after the 1st layer in the LSTM ...
0
votes
0answers
10 views

How to improve accuracy? BERT

Dataframe: ...
0
votes
0answers
9 views

Why does my Yolov1 output tensor contains negative value?

I have been working on my own imlplementation of the Yolov1 model. The first thing I want to mention is that It seems to be learning. Here is the train/val curves : (<0.1 train and 0.26 val loss) ...
0
votes
1answer
33 views

Model does not predict anything as positive

I was trying to train a model to predict if someone exists in a speech or not, first I extracted some set of features using a previous model, now I have a 1D vector of features for each example and I ...
0
votes
0answers
7 views

Is it possible to to only use only a training data sample for creating a LIME model explainer?

I have been looking into outputting a model explainer artefact at time of training my Keras+Tensorflow Neural network. Lime seems like a great choice however my data is very big and I am reading from ...
0
votes
1answer
20 views

Activation Maps using Tensorflow Object Detection API

I am trying to create visual explanations such as GradCAM from a trained object detection model. In order to implement the algorithm I need to access intermediate tensors and calculate gradients to ...
0
votes
0answers
36 views

Why is Pytorch 100x faster than Tensorflow for Deep Reinforcement Implementation?

[Intro] I am currently getting into machine learning coming from mathematics and am following a few courses to get the hang of this. In one of the courses, the author has a github with code examples: ...
0
votes
0answers
15 views

Converting lists of categorical data to numeric vectors with unlabeled data

I am preparing some data for an autoencoder. One of the variables, diag_codes, is a list of codes associated with each observation. They are of varying lengths but have at least one. My question is, ...
1
vote
0answers
17 views

overfitting in captioning model

Train 8000 images Val 1000 images i got this plot for 10 epochs with the last one which is ...
1
vote
1answer
26 views

How to choose embedding size for tensorflow recommender system

I am going to build a recommender system using TensorFlow recommender and the two-tower-model. I have wondered, how to choose the size of the embedding dimension. Are there any papers on this for ...
0
votes
1answer
20 views

How to reduce RMS error value in regression analysis & predictions - feature engineering, model selection

There's this dataset containing the metadata of Twitch's top 1,000 streamers of 2020. You can have the details here. I am currently participating in a challenge to predict the values for Followers ...
0
votes
0answers
9 views

Random data channel selector layer

I would like to create a custom layer in Keras. The layer will take two arrays as input and will output one of the two arrays, selected at random. No other operations on the arrays are performed. The ...
1
vote
1answer
16 views

Creating and training a Multilayer perceptron model with few data

Are there any ways to create a deep multilayer perceptron model that is capable of making accurate regression predictions based on the training done using around 1000 unique data? I'm currently ...
0
votes
0answers
7 views

How to achieve windowing and shuffling in tensorflow model of two inputs and two outputs?

I'm analysing daily power consumption of a washing machine. My dataset consists of 4 columns namely: Unix timestamp aggregate power consumption by all devices in the house Power consumption by ...

1
2 3 4 5
40