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.
2,105 questions
2 votes
0 answers
47 views
Kaggle TPUv5e8 7 times slower than v3
I am trying to learn Kaggle TPU and I am migrating a Flower Classification notebook from an older TPU v3-8 environment to the new TPU v5e-8 (TPU VM) environment on Kaggle. I was trying to migrate this ...
3 votes
1 answer
71 views
What loss functions are suitable for a YOLO-like architecture in TensorFlow/Keras, especially for fine-tuning on an imbalanced dataset?
I'm working with a custom YOLO-like architecture implemented in TensorFlow/Keras. While pretraining on the COCO dataset works, I plan to fine-tune the model on a highly imbalanced dataset. ...
5 votes
1 answer
119 views
Variable Length Input: How to handle longer input sequences during model testing
As the part of my college project on RNN, I'm working on a text classification task using tensorflow module. During training, I used pad_sequences with a max_length of 100, so all training examples ...
2 votes
0 answers
62 views
DensNet169 model accuracy not increasing on medical classification dataset
I am training an DensNet model on medical dataset which has gold standards as per annotation. After training i noticed accuracy is just 60%. Later i performed following changes but still no luck. ...
1 vote
0 answers
40 views
GNN Loss NaN after first training example?
I am trying to train a GNN but am getting a NaN loss function immediately after the first training example. Below I have included all of the pertinent code. My input is 385 points in 3D space confined ...
0 votes
0 answers
34 views
Custom loss function not behaving as expected in PyTorch but does in TensorFlow
I tried modifying the reconstruction loss such that values that are pushed out of bounds do not contribute to the loss and it works as expected in tensorflow after training an autoencoder. However, ...
1 vote
0 answers
34 views
Getting ValueError: Unexpected object from deserialization, expected a layer or operation, got a <class '__main__.L1Dist'> while reloading the model
here is the code from the Distance layer part because site is not allowing me to upload full code. embedding = make_embedding() distance layer ...
1 vote
0 answers
39 views
Q-values output is NaN in DQN model - input state is normalized and padded
I'm training a Deep Q-Network (DQN) to trade crypto using historical data. My model keeps outputting NaN values for the Q-values during prediction. I'm using a custom function getState2() to generate ...
2 votes
0 answers
87 views
tuple has no attribute "rank" error when trying to build bayesian neural net
I'm trying to build a BNN but am encountering the error in the title. I tried to ensure I'm not passing a tuple to .shape.rank by : using the functional API with explicit Input (should make first ...
2 votes
0 answers
74 views
ONNX - How do I convert ONNX float32 model to bfloat16?
I have found several documentation and tools for converting ONNX model to float16, but none of them supports converting to bfloat16. The model is originally trained using tensorflow and converted to ...
2 votes
0 answers
38 views
Multinodal vs modular neural network
I’ve made a couple of neural networks that predict separate target features form the same dataset. All these networks have different hyperparameters and different function transforms for example (log) ...
4 votes
3 answers
243 views
Time series predictions with LSTM
I have collection of TEC data.My data sample for example the day1,day2,day3,day4. Case1: I have the following task to do: Training by the consecutive 3 days to predict the each 4th day. Each day data ...
0 votes
0 answers
36 views
Tensorflow tape.gradient to calculate a 2d array with respect to a single column of the 2d array input
I have a feature dataframe that has a shape of (100,18). 18 features for 100 different points. One of those features is time. The model will then output an array with shape of (100,16). The model has ...
2 votes
1 answer
57 views
Need to automate collecting relevant information from websites and creating valuable insights
I need to collect information from 5 websites say once a week and then keep only the relevant info in a formatted manner. relevance here means relevant to my topics. I intend to automate this -from ...
0 votes
0 answers
38 views
Tensorflow "your input ran out of data" warning despite using .repeat()
I am attempting to subsample a timeseries dataset to reduce training time. Because I am using a mapping / window generator I want to apply this subsampling / dropping after the data samples are ...