Git Product home page Git Product logo

Comments (6)

jeremyrcoyle avatar jeremyrcoyle commented on August 11, 2024

Somewhat addressed in #72. task$Y for NULL outcome generates an error:

> task <- sl3_Task$new(cpp, covariates = covars, outcome = NULL)
> task$Y
Error in generator_fun(node_name, self$nrow) : Node outcome not specified

I kind of like having to force outcome=NULL if you really want a task without an outcome. Do you think it's important to be able to allowing missing(outcome)?

from sl3.

osofr avatar osofr commented on August 11, 2024

I think so. I think it might be relevant for prediction, which I imagine would be a typical use-case of the package. So I feed a trained sl3 learner a bunch of new data, but I now have to remember each time to set outcome = NULL? I feel like its too much to ask of a user to remember. On the other hand, is it difficult to add missing(outcome) check that sets it to NULL?

from sl3.

osofr avatar osofr commented on August 11, 2024

So, I am OK with the above error, it makes sense to me. I guess all we need is a check for missing(outcome)?

from sl3.

jeremyrcoyle avatar jeremyrcoyle commented on August 11, 2024

No it's of course super easy to add that functionality. I just thought we might want to provide some signal to a user that they didn't specify an outcome so they're not surprised later. If you don't think that's necessary I'll go ahead and support missing outcome

from sl3.

osofr avatar osofr commented on August 11, 2024

Awesome! Thanks. I think this is fine.

from sl3.

jeremyrcoyle avatar jeremyrcoyle commented on August 11, 2024

Fixed in #76

from sl3.

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.