Git Product home page Git Product logo

Comments (4)

ed0001tt avatar ed0001tt commented on June 22, 2024

I have the same problem when i set y as a constant array

from deep-symbolic-optimization.

IgorK7 avatar IgorK7 commented on June 22, 2024

I did a bid digging myself and it seems like the issue comes from train.py. Specifically, the code can pick nan value as a threshold for risk seeking policy gradient. It is on lines 365-370 (approx). If one replaces np.quantile() with np.nanquantile(), then the code runs just fine (See below)

        else: # Empirical quantile   
            # IK added 02.03.2023   np.nanquantile                          
            # quantile = np.quantile(r, 1 - epsilon, interpolation="higher")
            quantile = np.nanquantile(r, 1 - epsilon, interpolation="higher")

from deep-symbolic-optimization.

ed0001tt avatar ed0001tt commented on June 22, 2024

Oh, this seems to make the code run. but the R value is now nan.

from deep-symbolic-optimization.

brendenpetersen avatar brendenpetersen commented on June 22, 2024

Thanks @IgorK7! Yea, we have run into some issues with nan. Good to know about np.nanquantile, though it still seems like an issue to have a nan reward. We have also found nan reward values sneak in from time to time, which can cause weird behaviors, but we haven't yet been able to nail down why; and it's hard to reproduce as it depends on the dataset... Replacing nan rewards with some bad negative reward might patch this, but still not a great fix...

from deep-symbolic-optimization.

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.