Coder Social home page Coder Social logo

Comments (3)

tnagler avatar tnagler commented on September 20, 2024

The explanation is rather simple (and not very satsfying):

RVineStructureSelect uses foreach for parallelization which (as any method for parallelization in R) causes a substantial overhead. The overhead comes from setting up multiple instances of R, organizing the workload for each instance of R, and gathering the results. When the computations that are executed in parallel are very fast, the overhead caused by foeach can exceed the time saved through parallelization.

This is exactly what happens in your example. Since you're using familyset = 1, the selection of each pair-copula (the task that is executed in parallel) is extremely fast. If you run the same command with familyset = NA or familyset = 1:10, the parallel version is probably faster.

from vinecopula.

spotopt avatar spotopt commented on September 20, 2024

Thank you very much for the fast reply. Maybe a future release could avoid that by setting the maximum number of cores less or equal to the number of copula types. Another option is to add a comment in the package description.
(Anyway, I am having lots of fun with this package. Thanks!)

from vinecopula.

tnagler avatar tnagler commented on September 20, 2024

I would rather not tamper with the user specification of cores. But I added an remark to the documentation of the cores argument (see 67829e6).

from vinecopula.

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.