Coder Social home page Coder Social logo

reached CPU time limit error about arules HOT 3 CLOSED

mhahsler avatar mhahsler commented on May 24, 2024
reached CPU time limit error

from arules.

Comments (3)

mhahsler avatar mhahsler commented on May 24, 2024

What is the exact error message? Yours sounds like someone used setTimeLimit(). arules does not set this because it only applies to top-level computations.

http://stackoverflow.com/questions/17819790/reached-cpu-time-limit-in-r

from arules.

kliegr avatar kliegr commented on May 24, 2024

I am not myself calling setTimeLimit(), but I am wrapping arules into evalWithTimeout() (I am aware of the new maxtime parameter), which might be doing that or something similar.

Before I updated R (arules, but also some other packages) exceeding time limit set in evalWithTimeout always produced only the TimeoutException, which is the correct exception according to the evalWithTimeout doc.

Now, I am getting mostly this new exception of class "simpleError", and only scarcely the TimeoutException. The exact message (err$message) of the new "simpleError" exception is "reached CPU time limit".

I already have a workaround/error handler for the new exception type, and as you write, this problem is likely unrelated to changes in arules. It may be caused by some other update in my R installation, possibly the error might be also somewhere on my side. It is nothing important.

from arules.

mhahsler avatar mhahsler commented on May 24, 2024

Maybe the developer of R.util has changed something in withTimeout(). It looks like you can specify if it throws an error when a timeout happens. However, the timeout does not work for the actual apriori call (since it uses C code). This is why I have introduced the new maxtime parameter.

from arules.

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.