Git Product home page Git Product logo

Comments (3)

JClavel avatar JClavel commented on September 16, 2024

Hi Silvia,

It's hard to track the problem without a reproducible example. Small differences are expected between 32 and 64 bits versions since they’re not using the same math libraries and rounding. When I’m running the example code from ?GIC.fit_pl.rpanda on a Windows machine with both 32 and 64 bits versions (R-3.6.3) installed I can indeed find very small differences in parameter search. But the results are almost the same:

sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
//
// with the example code from ?GIC.fit_pl.rpanda
//
GIC(fit1); GIC(fit2)

-- Generalized Information Criterion --

GIC: 7190.805 | Log-likelihood -3432.328

-- Generalized Information Criterion --

GIC: 7192.806 | Log-likelihood -3432.329

sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 18362)
GIC(fit1); GIC(fit2)

-- Generalized Information Criterion --

GIC: 7190.805 | Log-likelihood -3432.328

-- Generalized Information Criterion --

GIC: 7192.77 | Log-likelihood -3432.303

In your situation, it seems that there’s almost no need for regularization (the “gamma” parameter is very low). It’s possible that this led to numerical underflow affecting the program. If this is the cause, one solution might be to set the “tol” parameter to some small values (e.g. tol=1e-8; see ?fit_t_pl). You can also switch to ML or try another penalty. Sometime working on a scaled tree can also helps.

HTH,

Regards

Julien

from panda.

SArtuso avatar SArtuso commented on September 16, 2024

Dear Julien,

thank you very much for your response! I followed your suggestion of changing the value for the regularization parameter, and it solves the problem of the inconsistency between the two versions of R, which now give the same results. However, it also strongly affects the estimation of the models parameters and the model’s comparison with the GIC. So, after trying out, I think I will stick with the 64-bit, whose outcomes looks more reliable then the 32-bit.

Thank you very much for your help!

Regards,
Silvia

from panda.

JClavel avatar JClavel commented on September 16, 2024

from panda.

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.