GithubHelp home page GithubHelp logo

NaN predictions about agtboost HOT 4 OPEN

blunde1 avatar blunde1 commented on August 30, 2024
NaN predictions

from agtboost.

Comments (4)

Blunde1 avatar Blunde1 commented on August 30, 2024

@ldesreumaux Thank you for raising the issue!

I am not able to reproduce the result that you are showing.
With a fresh install from the developer version together with your code

devtools::install_github("Blunde1/agtboost/R-package")
library(agtboost)
data(caravan.train, package = "agtboost")
train <- caravan.train
gbt.train(train$y, train$x, loss_function="logloss", verbose=10, nrounds=500, learning_rate=0.1)

I got the following output

it: 1  |  n-leaves: 2  |  tr loss: 0.2143  |  gen loss: 0.2145
it: 10  |  n-leaves: 2  |  tr loss: 0.1969  |  gen loss: 0.201
it: 20  |  n-leaves: 2  |  tr loss: 0.1913  |  gen loss: 0.1981
it: 30  |  n-leaves: 2  |  tr loss: 0.1887  |  gen loss: 0.1977
C++ object <000001e8ce835610> of class 'ENSEMBLE' <000001e8cdeae5a0>

I obtained almost identical results at consecutive runs.
May I ask which system/compiler you are using, or if you have worked on the internal C++ code?
The tree-depths you obtain are vastly different from mine, so something strange is deffinitely going on here.

from agtboost.

ldesreumaux avatar ldesreumaux commented on August 30, 2024

Indeed, the issue cannot be reproduced with the development version. I can only reproduce it when agtboost is installed with:

install.packages("agtboost")

And it does not seem to be platform-dependent: I reproduced it on Windows 10 and openSUSE 12.3 with R 4.0.5.

from agtboost.

Blunde1 avatar Blunde1 commented on August 30, 2024

Thank you, I was now able to reproduce it on R 4.0.5 (2021-03-31). Strangely CRAN and development version should be the same. I will look into it.

from agtboost.

Blunde1 avatar Blunde1 commented on August 30, 2024

Hoping this will be fixed in v0.9.2.
Waiting for CRAN mirrors to be updated to test with docker

from agtboost.

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.