Comments (4)
@To3No7,
Thank you for the issue. Could you please provide any specific Use-case for the above feature which might help us to analyse the issue. Thank you!
from tf-keras.
As part of a course I am teaching in deep learning one part is time series forecasting with RNNs. We work with the Jena weather data, following in part the Tensorflow example https://www.tensorflow.org/tutorials/structured_data/time_series.
Part of this exercise is to:
- Make two different models that should both predict what the temperature will be 24 hours ahead based on the last 24 hours' readings. That is, if your input sequence e.g. runs from hour 1 through hour 24, then you should predict what the temperature is at hour 48. Do this using these two methods:
- Part 2.1. Direct prediction of the value you are looking for (single-step with a new target time-step). That is, use 24 hours of input values to predict only one output value. 24 hours ahead (hour 48).
- Part 2.2. Make a prediction of all intermediate values as well. That is, again use 24 hours of input values, but predict all values from hour 25 through hour 48. Your output will now be a 24-value long vector at each prediction (Single shot prediction).
- Note that for these two models we are only interested in the quality of the prediction at hour 48, so you need to find a way to measure the performance for this particular hour in order to compare the models against model 2.1 and among themselves.
Compare these two models and analyze the difference in results, e.g. which gives the best prediction?
Thus to do the Part 2.2 the students need to have target_width of 24 instead of 1.
Some year back I have been suggesting the students should use the windowing function from the tensorflow tutorial, but this spring I suggested they use the keras function timeseries_dataset_from_array instead as that would be a more clean solution. However, as timeseries_dataset_from_array didn’t have a target_width, almost no student was able to implement a correct datasetgen for Part 2.2 and I had to quickly hack together a solution for them to use (as seen above).
Is this clear enough?
I might be able to provide solution code, but this have to be done privately for obvious reasons.
from tf-keras.
@sachinprasadhs @qlzh727 @tilakrayal I'll pick this one up
from tf-keras.
Related Issues (20)
- [Contributors Wanted] A real-world model benchmark HOT 20
- tf.keras.losses on RaggedTensors crash during gradient computation on a GPU HOT 8
- Keras/tensorflow failed when specifying class_weight in model.fit() HOT 17
- Incorrect time per step estimation when fitting model HOT 4
- TensorBoard callback does not collect data per batch (accidentally removed) HOT 22
- Models with custom metrics cannot be loaded from trace HOT 3
- Cannot Build Intermediate Model to Nested Layers HOT 11
- LossScaleOptimizer fails to prevent overflow HOT 6
- Can not run all Keras tests successfully. HOT 6
- How to create a dynamic embedding layer in keras ? HOT 4
- Plotting a model (with model_to_dot) fails if the inputlabels/outputlabels contain brackets HOT 14
- Tokenizer converts padding integers to OOV when oov_token is not None HOT 2
- dtype of RNN cell's state is changed to tf.float32 during reset_states HOT 3
- AttributeError: 'VocabWeightHandler' object has no attribute 'name' HOT 5
- Why the loss function (mse) calculated by keras not the same as mine HOT 3
- NotFoundError could not find registered transfer manager for platform Host -- check target linkage [Op:__inference__jit_compiled_convolution_op_26169] HOT 3
- Error importing model with both load_model (.keras) and load_weights (.h5) HOT 10
- Using Lambda layers to take different slices of a prevous layer's output causes earlier Lambda layers to be overwritten HOT 5
- Error while importing tf_keras HOT 11
- shape issue for y_pred for a custom made loss function HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tf-keras.