Giter Site home page Giter Site logo

polywog's People

Contributors

brentonk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

davidaarmstrong

polywog's Issues

.parallel in cv.polywog

.parallel appears to be ignored in cv.polywog.r. perhaps related to this is the difficulty in using keyboard interrupt to stop execution of polywog (basically I have to kill R every time).

Error when running cv.polywog

Hi,

I've tried running cv.polywog but I can't figure out what is causing this error.
My data are just a dataframe

I run:
cv.polywog(y_dat~x_dat, data=forpoly, degrees.cv = 1:10, nfolds = 5)

and the error I get is:

Error in { :
task 1 failed - "x should be a matrix with 2 or more columns"

I tried inputing my data as a matrix instead, but then got an error that my data should be a dataframe. Any assistance resolving this would be great! Thanks!

Julie

Eliminate preplot.polywog

A "preplot.polywog" object is just a reclassed predVals() return, so eliminate it and have the plotting methods deploy right onto predVals() output.

Reimplement "unpenalized"

Since we're no longer explicitly constructing the model matrix, it isn't possible to exclude terms from the penalty according to their names in the model matrix. That leaves us with a few natural ways to implement unpenalized:

  1. Name raw terms to leave unpenalized, then set the penalty weight of all polynomial terms including any of these to 0. The upside is that this is easy to implement and reasonably robust to changes in the data used for fitting. The downside is that it comes with considerable loss of generality except when used for linearly included terms.
  2. Provide indices of the rows of polyTerms to leave unpenalized. Then we are fully general, but some problems arise:
    • The user has to inspect polyTerms to know which rows are which, meaning running polywog(..., method = "none") once before fitting
    • The identity of a row can change if terms are added or dropped from the model formula, or if a change in the dataset changes the set of linearly independent polynomial terms. This could be partly alleviated by having the print and summary methods tell which terms were unpenalized, but it still seems risky.
  3. Perhaps the best way would be to reimplement the old way, by generating the "variable name" corresponding to each row of polyTerms after it is computed, then checking those against the supplied character vector unpenalized

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.