Code Monkey home page Code Monkey logo

Comments (7)

JinYang88 avatar JinYang88 commented on August 22, 2024 1

Check out my answer on #13, I believe it is due to uninitialized bias parameters.

It works for me now, great!

from mtad-gat-pytorch.

m-ali-awan avatar m-ali-awan commented on August 22, 2024

I have further dived into code and came to know that outputs from TemporalAttentionLayer are nan always, and from FeatureAttentionLayer some come out as nans.

from mtad-gat-pytorch.

axeloh avatar axeloh commented on August 22, 2024

If you haven't already, I suggest you ensure that

  1. input data has the correct format
  2. data itself does not contain nan and are scaled properly before input to the model.

Regards,
Axel

from mtad-gat-pytorch.

ylic204 avatar ylic204 commented on August 22, 2024

I have further dived into code and came to know that outputs from TemporalAttentionLayer are nan always, and from FeatureAttentionLayer some come out as nans.

Have you solved this problem yet? I also have this problem, During training, the losses are all nan,and there are many zeros in the data. And I don't understand why the num_values in labeled_anomalies.csv and the shape in the .npy file in the train folder are different. For example, C-1 in labeled_anomalies.csv is 2264, but C-1.npy is 2158. '2264' and '2158' don't match.

from mtad-gat-pytorch.

JinYang88 avatar JinYang88 commented on August 22, 2024

Same problem with the SMD dataset, using the default hyperparameters.

from mtad-gat-pytorch.

JinYang88 avatar JinYang88 commented on August 22, 2024

Setting use_gatv2 to False can produce normal loss.

from mtad-gat-pytorch.

 avatar commented on August 22, 2024

Check out my answer on #13, I believe it is due to uninitialized bias parameters.

from mtad-gat-pytorch.

Related Issues (20)

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.