GithubHelp home page GithubHelp logo

Comments (3)

michaelweylandt avatar michaelweylandt commented on May 28, 2024

clustRviz is here: https://github.com/DataSlingers/clustRviz

The weights argument there can be two things: either a custom weight matrix or a function which is called on the data to build a weight matrix for that specific problem. We'd definitely want to do something similar because there are times when non-standard smoothing matrices make sense (e.g., in the SFPCA paper, we use great circle distances for points on the cortical surface) but it's worth it to make a convenient shortcut for the 95% case of second difference matrices.

from moma.

Banana1530 avatar Banana1530 commented on May 28, 2024

Summarizing, the ideal solution to this issue consists of two parts:

  1. create argument functions for smoothness type; and
  2. put parameter values into argument functions.

How clustRviz does this is clever, using tricks in functional programming.

https://github.com/DataSlingers/clustRviz/blob/93f56ab88675656a81f2bcd13a96e7ff181551b2/R/weights.R#L77

from moma.

Banana1530 avatar Banana1530 commented on May 28, 2024

A tentative solution is here:

Banana1530/MoMA-1@a4b64db

(currently broken due to code formatting issues.)

from moma.

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.