Skip to main content

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.

-2votes
0answers
26views

Improve the loss in a neural network model

I've built a neural network model for predicting groundwater quality for certain select contaminants, am attaching the graph of predicted vs actual contaminant values for EC. What are some techniques ...
Krish Verma's user avatar
0votes
0answers
17views

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, ...
zvxayr's user avatar
1vote
0answers
12views

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 ...
Prateek's user avatar
1vote
0answers
13views

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 ...
user29255210's user avatar
2votes
0answers
24views

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 ...
Eli Bain's user avatar
2votes
0answers
20views

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 ...
C Chen's user avatar
2votes
0answers
18views

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) ...
Marcin Bednarski's user avatar
4votes
3answers
147views

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 ...
S. M.'s user avatar
0votes
0answers
25views

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 ...
twofair's user avatar
1vote
1answer
32views

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 ...
user anonymous's user avatar
0votes
0answers
21views

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 ...
Zacciep's user avatar
1vote
2answers
83views

Please help with 1d Convolutional Neural Network with two channels in Tensorflow

I've been trying effortlessly (to no avail) for the past month to run a CNN. I previously tried PyTorch without success, and am trying Tensorflow as it appears simpler. I have simulated data from a ...
LifeisGood94's user avatar
0votes
2answers
42views

Embeddings for multiple categorical features with different cardinality

If I have multiple categorical features, each which has its own unique cardinality, and I want to use an embedding layer to reduce the dimensions fed to an MLP. Should I have one big embedding matrix ...
dule arnaux's user avatar
0votes
0answers
35views

I need to train a multiclass model but i have a small dataset

I have an Excel file that contains two columns, one with text like phrases and other that tells me the classification that goes from 'CS1' to 'CS8'. The text is like ...
Hugo Rios's user avatar
0votes
0answers
27views

Am I following the correct approach?

I am working on a medical semantic segmentation problem, where the input is of size (1,256,256) and I have two outputs associated with that input ( two masks ) each with shape ( 1,256,256). For every ...
AAA_11's user avatar

153050per page
close