Giter Site home page Giter Site logo

Comments (5)

zachmayer avatar zachmayer commented on September 12, 2024

This seems a little tricky, as we want to pass trace=FALSE to some models but not others. I see 2 options:

  1. Provide an optional list of arguments for the models, e.g. list(nn=list(trace=FALSE), gbm=list(verbose=FALSE))
  2. Make methodList an actual list, e.g. list(glm=NULL, rpart=NULL, nn=list(trace=FALSE), gbm=list(verbose=FALSE))

If we go with #1, we can do it post-CRAN release. If we go with #2, I think it should be pre-release.

from caretensemble.

zachmayer avatar zachmayer commented on September 12, 2024

Here's another option that might work, post CRAN release: a methodList class. If a character vector is passed to buildModels, it coerces it to a methodList. The methodList class would be constructed from objects like this:

list(
"glm",
"rpart",
"nnet"=list(trace=FALSE),
"gbm"=list(verbose=FALSE)
)
And would return an object like this:
list(
"glm"=NULL,
"rpart"=NULL,
"nnet"=list(trace=FALSE),
"gbm"=list(verbose=FALSE)
)

In other words, un-named objects in the input list would be ok so long as they were character vectors, and they would be converted to the "model_function"=model_arguments format. The modelList generator could also use modelLookup() from caret to verify that all models are valid.

I think we can safely push this post 1.0, maybe targeting 1.1 or something.

from caretensemble.

jknowles avatar jknowles commented on September 12, 2024

Yes. This sounds like a great solution.

from caretensemble.

zachmayer avatar zachmayer commented on September 12, 2024

Ok. We'll put that on the agenda for post-1.0.0

from caretensemble.

zachmayer avatar zachmayer commented on September 12, 2024

Closed by #56

from caretensemble.

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.