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

Is there a Tensorflow built-in function to create a matrix from a single-layered feedforward neural network without activation functions?

In Tensorflow, I implemented a simple single-layer feedforward neural network with N inputs and N outputs without activation functions and biases. Simply, it is just a N-by-N matrix. Question: is ...
H.C.'s user avatar
  • 1
0 votes
1 answer
63 views

What may cause the CNN layer weight regularizer to reduce the model accuracy

What may cause the accuracy reduction when using the tf.keras regularizer at layers in CNN in the symptom? The example is simple but it happens with more complex CNN causing no improvement during the ...
mon's user avatar
  • 575
0 votes
0 answers
20 views

Loss values seem to fluctuate, yet the weights are correct

I'm taking my first steps with tensorflow (and in ML in general), and using this piece of code to train a very simple model that tries to find the underlying linear relation: f(x,y) = 4x +7y -2 (+ ...
Stars's user avatar
  • 1
1 vote
1 answer
22 views

How do I best approach a multiple-target binary classification in Tensorflow/Keras?

I currently have eight features which are either categorical or continuous variables. My targets are many (~1000) binary variables. So far I have attempted skmultilearn and sklearn.multioutput. I ...
FoolsGold1997's user avatar
0 votes
0 answers
12 views

Tensorflow RNN - implementing recursive layer

I am dealing with a regression problem, for which I wanted to try to use a recurrent neural network. The general setting is that I have to predict a continuous quantity starting from the evolution, in ...
ChristianC's user avatar
0 votes
0 answers
30 views

Feedforward Deep neural networks

Hello everyone can you help me to create a diagram for these F-DNN ...
Veertud Tv's user avatar
1 vote
1 answer
28 views

activation=tf.keras.activations.relu vs activation='relu'

Both models are for binary classification problems Model 1 ...
Justin Jonany's user avatar
0 votes
1 answer
26 views

Confusion with tensorflow's Sequential Dense Layers

I'm working on a regression probem using Tensorflow, and have created two models with slight differences in their first Dense layer. The Models ...
Justin Jonany's user avatar
0 votes
2 answers
25 views

Binary classification using RNN not going beyond 50% accuracy

I am trying to find out the reason behind why my RNN network won't go beyond 50% for binary classification. My input data is of the shape: ...
Prabhjot Singh Rai's user avatar
0 votes
0 answers
21 views

Why does the AutoKeras NAS require reshaping of data?

Please take a look at the following source codes: training.py ...
user366312's user avatar
0 votes
0 answers
14 views

How to choose the right typt of ANN architecture for a regression model

So, im working on a project where i am leveraging ai to get accurate price predictions in terms of houses and real estate properties. I would like to use an artificial neural network so now i have to ...
maizen's user avatar
  • 1
0 votes
1 answer
31 views

Why is the sprase categorical accuracy decreasing every epoch and predictions are always NaN?

Problem Summary My model is built and compiled properly but gets the NaN validation loss on all epochs. The training set accuracy is also infinitesimally small and keeps decreasing. I couldn't find a ...
Joachim Rives's user avatar
2 votes
0 answers
44 views

Detecting upside down numbers in the MNIST dataset

I'm trying to predict numbers using the MNIST dataset. Since I don't know whether the numbers that I'm trying to predict are rotated (most of the time upside down, but can also be 90 or 270 degrees), ...
user1195883's user avatar
0 votes
0 answers
39 views

Custom Loss Function Returns Graph Execution Error: Can not squeeze dim[0], expected a dimension of 1, got 32

I have built a loss function which adds time and frequency weighted averages and variances to the MSE: ...
Harry Chittenden's user avatar
0 votes
0 answers
10 views

tensorflow binary_crossentropy gives unexpected(possibly wrong) results

...
CouldntLoginToMyPreviousAcc's user avatar
0 votes
0 answers
13 views

Tensorflow outputs nan for basic object detection/classification

I am receiving nan as my accuracy and loss outputs after each epoch for basic object detection in tensorflow. Also, my results (classification and bounding box ...
Clouseau's user avatar
0 votes
0 answers
49 views

Custom loss and metric functions including additional parameter in Keras

The following example is based on this approach. Similar to that approach, I am wanting to pass an additional parameter with y_true for my custom metric, as both will be used in the computation of ...
David's user avatar
  • 1
1 vote
1 answer
31 views

Why would multiple activation layers be used in a row?

I'm learning about ML and I was looking at ...
Thomas's user avatar
  • 155
0 votes
0 answers
38 views

2060 Illegal instruction (core dumped) when importing Tensorflow in Python 3.8.18

I am attempting to run the experiments found here: https://github.com/risingfbk/p4ddle/tree/main/p4-ddos/p4ddle However when I run the line: ./experiment_**.sh I ...
The Radiant's user avatar
0 votes
0 answers
44 views

Value Error: One of the dimensions in the output is <= 0 due to downsampling in conv1d_9

i am trying to implement classification model on my dataset, which has 3 columns and 651 rows Displacement Time Labels 0.000245879 0.01 Undamage 0.001954869 0.02 Damage 0.006545664 0.03 Undamage 0....
Shagufta's user avatar
1 vote
1 answer
20 views

numpy in call method: how to run without eager execution?

I wrote an implementation of a feedback recurrent autoencoder in Keras. The key difference to a regular autoencoder is, that the decoded output is fed back to the input layers of both, encoder and ...
user155153's user avatar
0 votes
0 answers
36 views

how to implement federated transfer learning?

I'm exploring the concept of Federated Learning and Transfer Learning and am interested in combining both to implement Federated Transfer Learning. I understand that Federated Learning allows model ...
Rezuana Haque's user avatar
0 votes
0 answers
12 views

L2 regularisation included in Validation Loss is counter intuitive?

I have been trying to tune hyperparameters for a neural network - I noticed the validation data loss for tensorflow in particular includes the L2 regularisation loss as a measure of the total loss. ...
Governor's user avatar
  • 101
1 vote
1 answer
41 views

Deep learning model produces very different results when classifying the same samples

I'm trying to design a simple deep learning application for biometric system verification, but every time I run the application I get very different results and I can't figure out why. I don't use ...
uuR's user avatar
  • 11
0 votes
0 answers
8 views

RecSys model performance stalling at 47% AUC and F1-Score. Is the problem due to ratio of users to items in my dataset?

I'm having trouble with making my validation metrics go down for the binary_crossentropy and go up for the F1-score and AUC. I've tried tuning my hyper parameters such as the number of latent features ...
Mig Rivera Cueva's user avatar
0 votes
0 answers
10 views

Balancing imbalanced classes for TF2 object detection

I have a large set of images with 6 classes where the class distribution is imbalanced. Looked into balancing it by adding weight for each class but as I read in tensorflow docs the weight property is ...
Gautam's user avatar
  • 101
0 votes
0 answers
32 views

heavy underfitting of keras LSTM regression

I moved the question from stackoverflow to here. I used keras LSTM to do the standard regression project of ...
user6703592's user avatar
0 votes
0 answers
71 views

Get graph execution error for BiLSTM and LSTM on keras

I want to use BiLSTM mode for text classification tasks. I use a data generator to get already batched and embedded files that have been split into 64 different files(for training) and 4 files each ...
Nekon's user avatar
  • 1
1 vote
0 answers
16 views

Why do I keep on getting ResourceExhaustedError while training on video data using CONV3D on tensorflow?

I'm encountering a memory allocation problem while training a deep learning model on my computer, which has a Core i9 10th Gen CPU, 64 GB of RAM, and an NVIDIA GTX 1660 Super with 6GB of VRAM. Despite ...
Ali Subhan's user avatar
2 votes
0 answers
42 views

LSTM output capped at a maximum

I am using a LSTM built using to forecast a single-value (solar irradiance) by using weather data as my input. When predicting my validation test, I get a weird results as it looks like all my ...
Adam Jaamour's user avatar
0 votes
0 answers
16 views

Why does the first call to a TensorFlow function execute much slower than the second call?

I was doing an Image Classification problem using TensorFlow. I was generating the mean images for two image datasets having the same size. The dataset was generated using the tf.data API. Thereafter ...
Harsh Khare's user avatar
0 votes
0 answers
26 views

Multi input model tensorflow with fixed data as input

I am tring to implement the following architecture. alpha and beta are fixed matrices, they are matrices I want to input on every forward pass. Meaning for every batch they should be the same My ...
Ahmed Gado's user avatar
0 votes
0 answers
15 views

Need help designing conv-lstm in TensorFlow for longitudinal disease prediction

I am currently trying to develop a conv-lstm to predict disease progression in eye photos of patients. I have a folder of images with a total of 263 images of 144 different patients. I also have an ...
iyad79's user avatar
  • 1
0 votes
0 answers
18 views

How does TensorFlow method tf.data.Dataset.reduce() work?

I was trying to compute the mean of the images that I fetched from a GCS bucket using TensorFlow's tf.data input pipeline. For this, I came across two methods: ...
Harsh Khare's user avatar
0 votes
2 answers
33 views

Classification task on boolean only features: what model/layers/activators are better?

I'm trying to build a classification model. Features are purely boolean (not binary) and are in a csv file like 1,0,1,.. The result is an ...
Putnik's user avatar
  • 105
0 votes
1 answer
54 views

Custom Loss Function in Tensorflow for UNet

I am working on a Segmentation task, where I planned to use U-Net for the input_image of shape (224,224,3), the output should be the mask image of shape ...
Vishak Raj's user avatar
0 votes
0 answers
8 views

Are Julia ML libraries inherently parallelized and optimized?

I am trying to decide if I should learn Julia or stick with Python and its libraries, e.g. TensorFlow and FastAI. One important consideration is whether Julia has a library with similar capabilities ...
Joachim Rives's user avatar
1 vote
0 answers
16 views

Loading large raster dataset in to tensorflow

I am building a convolutional neural network for processing air quality concentration fields and meteorological parameter distribution. The input data are in Geotiff and NetCDF formats, which I load ...
Marcin Kawka's user avatar
1 vote
0 answers
7 views

What resources can be used to get reliable information about recommender systems and using time feature?

I am working on a recommender system that suggests games to users based on their playing history. So far, I have not used the period - when the user played specific games. I want to test my ...
Yana's user avatar
  • 175
0 votes
0 answers
33 views

Tensorflow model wont train when using validation data

Im trying to train a tensorflow neural network. Since the training data is too big for my computer RAM I have divided it into sub-datsets and sequentially use them for training. I have a problem ...
Sergio Pardina's user avatar
0 votes
0 answers
34 views

Can I use NDCG as a loss function in Tensorflow recommender?

I am trying to follow the sample code here to build a dcn model. I want to use ndcg as the loss function and metrics, but the default one here is rmse. https://www.tensorflow.org/recommenders/...
Learning's user avatar
0 votes
1 answer
64 views

Combine two separate models created via Transfer Learning?

Suppose have two 'image classification' models created by transfer learning on the same base model[1], each producing a different set of labels/classes. Trained at different times, with different ...
barryhunter's user avatar
0 votes
0 answers
10 views

How to solve MemoryError problem?

I have audio signals which I need to convert them to melspectrogram. I am using Deepfilternet to remove background noise. when I use the output of Deepfilternet for next phase like padding, it showed ...
Zara Nz's user avatar
0 votes
0 answers
11 views

Dealing with noise in softmax output

I have a device with an accelerometer and gyroscope (6-axis). The device sends live raw telemetry data to the model 40 samples for each input, 6 values per sample (accelerometer xyz, gyroscope xyz). ...
Sterling Duchess's user avatar
0 votes
0 answers
29 views

Create a TensorFlow Input pipeline from GCS Bucket?

I wish to generate a TensorFlow input pipeline (i.e. tf.data pipeline) for an image classification project. The images stored in a GCS bucket having access controls and is not publicly accessible. And ...
Harsh Khare's user avatar
0 votes
0 answers
12 views

When training deep learning model which is better, training with sampled data Vs. training on shorter epoch

I am running multiple hyperparameter optimization trials therefore trying to find a way to reduce time consumption. Two ways that I could think of are search hyperparameter on subset of data. search ...
haneulkim's user avatar
  • 457
2 votes
1 answer
30 views

Changing model architecture doesn't impact results

I am currently learning binary classification. The problem is classifying positive and negative movie reviews. The dataset is 25,000 reviews with each review represented by 10,000 of the most used ...
Omer Mualem's user avatar
1 vote
2 answers
36 views

Classification on sound data

My goal is to detect a problem in a windturbine. I have a dataset of 2h (1 hour for each class). To keep in mind, it will be embedded on an MCU target, so the neural network have to be less than 10M ...
Nept0's user avatar
  • 11
0 votes
0 answers
27 views

BERT + tensorflow + deterministic

Im using BERT in tensorflow, but when I try to turn it deterministic I got the error: "When determinism is enabled, random ops must have a seed specified. [[{{node dropout/dropout/random_uniform/...
Heloisa Rocha's user avatar
0 votes
0 answers
12 views

How to analyze social media data to see its impact on a game's sales

I work for a console gaming giant. We forecasted the sales for a RPG game that was to be released few months back. But the actual sales was twice the forecast. This compelled the developers to ...
Ritik P. Nayak's user avatar

1
2 3 4 5
45