Git Product home page Git Product logo

deep-ttf's People

Contributors

antisrdy avatar gm-spacagna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deep-ttf's Issues

Adding Layers

How can we add more layers to this model? I tried adding layers and kept getting this error:
"ValueError: Input 0 is incompatible with layer gru_19: expected ndim=3, found ndim=2"

I was experimenting adding a simple GRU layer like this: model.add(GRU(40, activation = 'tanh'))

Choice of example dataset -- not censored?

Hello,

Very nice work.
It doesn't appear that the engine data set you've collected is apt survival analysis given that the target event (engine failure) is recored. E.g. "(engine/day, 2) tensor containing time-to-event and 1 (since all engines failed)"
E.g. it seems like you're attempting semi-supervised learning on a fully-supervised dataset (unless I've missed something!)
It would be nice to see a simpler and censored example, perhaps the rossi dataset that Lifelines experiments with:
from lifelines.datasets import load_rossi
rossi_dataset = load_rossi()

See:
http://lifelines.readthedocs.io/en/latest/Survival%20Regression.html

Missing code in the notebook

@gm-spacagna Could you please share the missing Jupyter notebook code to generate the graphs after "If we plot the predictions at each time step of engine 3 in terms of mode and [10%, 90%] confidence interval we observe the following:" I'd like to understand how to create that confidence interval graph (in your README.md)

Thank you

Incompatible data shapes

Hello,
Thanks for this great piece! As you stated, your solution here could be used in predicting component failure across various applications and domains. I was experimenting with your code using a different data set BUT which is structured same as your data here. But when I got to the builddata() function, I got the following error:

error:---> 39 xtemp[:, max_time-min(j, 99)-1:max_time, :] = engine_x[max(0, j-max_time+1):j+1, :]
ValueError: could not broadcast input array from shape (50,74) into shape (1,1,74)

Again, my data is structured exactly same as yours coming into this function. Seems like the left and right sides of the above line within the function has different shapes hence numpy can not braodcast input array into shape (1,1,74) from (50,74). **Can you please help with how I can overcome this problem?

Thanks!**

error

run 'model.fit',then " UnboundLocalError: local variable 'arrays' referenced before assignment",what should i do?

Invalid Loss error when training on the GPU

I've used your implementation of the WTTE-RNN on the CPU and managed to complete training without any issues. However, when I used the same implementation on a Nvidia GPU I am getting the Invalid Loss error at around 25/100 epochs.

Following are the only changes I've done made when running on the GPU:

  1. CuDNNGRU is used instead of the GRU.

  2. The masking layer is removed from the the model as CuDNNGRU does not support masking. I.e. following line is removed:
    model.add(Masking(mask_value=mask_value, input_shape=(None, n_features)))

  3. An initial input layer is added to the model:
    mode.add(InputLayer(input_shape(None, n_features)))

The epsilon is 1e-10 and the Keras backend is Tensorflow. And the WTTE-RNN version is 1.1.1.

NaN during training

I started to see NaN during training at about 20 epochs, is the nanterminator supposed to prevent that? The output was all NaN.

build_data()

Hey - in your build_data func, whats the rationale behind the value 99 in the following line?

xtemp[:, max_time-min(j, 99)-1:max_time, :] = engine_x[max(0, j-max_time+1):j+1, :]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.