Giter Club home page Giter Club logo

Comments (8)

mepcotterell avatar mepcotterell commented on September 21, 2024

@DongYuYu I'd like for you to work on this issue #5. Before you can properly test the Smoothing_F class, you'll need to determine the cause of the zero-column in the fit produced by RidgeRegression during the training phase of Smoothing_F. You can use this issue to discuss this issue with the group.

from fda.

DongYuYu avatar DongYuYu commented on September 21, 2024

Quick Summary for Friday Work

I think that's all we done last Friday as following:

B_Spline:

  1. Add bs for shifting the j-th spline to j+mMax-m-th spline evaluation

  2. define range(m:Int) = 0 to ττ.dim - 1+m -2 to modify the index range of spline

  3. decrease the augment interval for τ from mMax to mMax-1

  4. change the boarder value for τ to ττ(0)-0,01 and ττ(ττ.dim - 1)+0.01

  5. check if the last spline works well for the setting above

Smoothing_F:

  1. change the function usage at predict and form_phi from bb to bs

  2. change the range for makeknots by multiply *t(t.dim-1)

from fda.

mepcotterell avatar mepcotterell commented on September 21, 2024

@DongYuYu I've cleaned up the B_Spline class in commit b829109 based on your edits.

from fda.

mepcotterell avatar mepcotterell commented on September 21, 2024

@DongYuYu Any progress on this? I'm particularly interested in the testing of RidgeRegression with the penalty matrix.

from fda.

DongYuYu avatar DongYuYu commented on September 21, 2024

Not much yet. I'm into RedgeRegression and might ask questions later.

from fda.

DongYuYu avatar DongYuYu commented on September 21, 2024

@mepcotterell I have implemented some part of the regression. I added the penalty matrix in

RidgeRegression:
    def xtx:MatrixD): MatrixD = {
        val a = x.t * x
        for (i <- 0 until a.dim1) {
            for (j <- 0 until a.dim2) {
                a(i, j) += lambda*Σ(i,j)
            }
        }
        a
    }

However, I have some problems: First, regarding to the this formula in R,
(X' W X + λ Σ) c = X' W y, I think in our regression formula, we take the X.t but here is it taking derivative? We will see.
Secondly, I think Σ suppose to be a square matrix here, but Σ[i,j] = Integral B''[i](t) B''[j](t) dt, is i necessary to be equal to j here? I still not very clear about the B-Spline formulation process.

from fda.

mepcotterell avatar mepcotterell commented on September 21, 2024

@DongYuYu It's unfortunate that they mix/overload notations, but I believe X' denotes the transpose of the matrix X and B'' denotes the second derivative of the function B.

from fda.

mepcotterell avatar mepcotterell commented on September 21, 2024

@DongYuYu See B_SplineTest5 in B_Spline for an implementation of the Σ matrix.

from fda.

Related Issues (15)

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.