Git Product home page Git Product logo

Comments (3)

chc273 avatar chc273 commented on June 3, 2024

It maybe caused by nan values of target or very large abs errors initially.

  1. Check your target and see if there is any nan. 2. Make sure the target value is small. You may need to transform your target values, e.g. standardize it or divide it by some values.

from megnet.

rookiecoder-chen avatar rookiecoder-chen commented on June 3, 2024

My target is float numbers between 1 and 2,

INTENSIVE = True # U0 is an extensive quantity
scaler = StandardScaler.from_training_data(train_structures, train_targets, is_intensive=INTENSIVE)
model.target_scaler = scaler

Isn't this part of the code doing the scaler?By the way, there is no problem when I use megnet simple model. The problem only occurs in megnet full model. Can the notenook of transfer learning give a complete demo?

from megnet.

chc273 avatar chc273 commented on June 3, 2024

Without knowing details about your target values and no reproducible codes, I cannot comment much. You may need to scale your input features before putting them to model. Transfer learning example is complete. You just need to train the model the way you train other models after setting the transferred model weights.

from megnet.

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.