Giter VIP home page Giter VIP logo

Comments (12)

JonasIsensee avatar JonasIsensee commented on June 11, 2024

As far as I can tell, the current implementation of theiler windows does not work here.
The theiler neighborhoods require an index n for the query, which does not exist in general.

Instead we would need a method that makes sure the nearest neighbors are not temporal neighbors of eachother....

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

The theiler neighborhoods require an index n for the query, which does not exist in general.

Damn, you are right.

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

Well, on the other hand, you can still find the closest neighbor and then not allow temporal neighbors of the closest neighbor. See here: JuliaDynamics/DynamicalSystemsBase.jl#45

from timeseriesprediction.jl.

JonasIsensee avatar JonasIsensee commented on June 11, 2024

What do you think of this?
could something like this work?

function neighborhood_and_distances(point::AbstractVector,R::AbstractDataset, tree,
                      ntype::FixedMassNeighborhood; w::Int = 1)
    ind = Int[]
    function f(i)
        for j  ind
            if abs(i-j) < w
                return true
            end
        end
        push!(ind,i)
        return false
    end
    idxs,dists = knn(tree, point, ntype.K, false, f)
    return idxs,dists
end

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

Nice approach. Seems like it would work, but may have performance issues.

If it is bad, you can increase the performance by making f a Functor instead, with the only field a Vector{Int}, I guess...

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

@JonasIsensee I think this is a nice approach. We should have it in DynamicalSystemsBase neighborhood as well.

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

@JonasIsensee the theiler window is currently not an argument of localmodel_tsp. Make it a keyword argument that defaults to mean(τ) for methods that have τ and to mean(R.delay) for methods that given an abstract dataset.

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

Then we can close this issue.

from timeseriesprediction.jl.

JonasIsensee avatar JonasIsensee commented on June 11, 2024

Which implementation of it do you want though?

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

The one we have already. That excludes temporal neighbors of the query point only.

The only thing that is left is to only have the argument to tsp a swell.

from timeseriesprediction.jl.

JonasIsensee avatar JonasIsensee commented on June 11, 2024

The theiler neighborhoods require an index n for the query, which does not exist in general.

Damn, you are right.

from timeseriesprediction.jl.

Datseris avatar Datseris commented on June 11, 2024

my brain is literally out of order.

from timeseriesprediction.jl.

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.