Relative Content

Tag Archive for pythontensorflowkeras

Instability of a neural network for modeling differential equations

I have the x and y values of solving some kind of differential equation. I am trying to train a neural network on TensorFlow, but the result is unstable and not accurate. What is the reason? It is important to note that the prediction occurs as follows: at the input x at the output x2 at the input x2 at the output x3 at the input x3 at the output x4, etc.

valueerror in Nbeats model from keras-beats

I am trying to implement NBeats model from keras-beats for timeseries prediction forcasting and it shows me valueerror about using float data type. I tried using astype to convert data to float 32 and 64 and it still showed me similar error

Tensorflow input of varying shapes

I’m using Tensorflow 2.16.1. I have a list of Tensors I want to use as training data. They are varying shapes. It’s unclear how I can make this work. Here is some example code:

How to break one Example in a TFRecord file into several Examples on-the-fly?

I am interested in developing an LSTM model to make predictions about satellite imagery. I have a workflow in Google Earth Engine that generates TFRecord files in cloud storage. Each example is a series of Int64List or FloatList of the same shape (21 items, corresponding to 21 years of data). All pixels have some number of missing values where the target variable was not surveyed in that year. I know how to serve TFRecord files to a model with TFRecordDataset, and how to do some amount of preprocessing with .filter and .map.