🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Question about operator's complexity

RintasponUser: "Rintaspon"
New Altair Community Member
Updated by Jocelyn

Hello, I would like to know what are time complexities (Big O) of these predictive operators?

  • k-NN
  • Naive Bayes
  • Decision Tree
  • Neural Net

And if possible, could anyone please give me psuedocode of (or how to inspect) these operators? because I need to know how the operators work with my data, especially the Decision Tree. Thank you.

Find more posts tagged with

Sort by:
1 - 3 of 31
    Thomas_OttUser: "Thomas_Ott"
    New Altair Community Member
    Accepted Answer

    Hi @Rintaspon,

     

    Did you check out mod.rapidminer.com? It allows you to 'guesstimate' how the models behave. Also, there is https://docs.rapidminer.com/studio/operators/ that describes the various operators and algorithms as well. If you really need the code, then you'd have to vist the RapidMiner Github acct for the source code.

    Telcontar120User: "Telcontar120"
    New Altair Community Member
    Accepted Answer

    As @Thomas_Ott said, mod.rapiminer.com is a great resource.

    From a quick-and-dirty perspective, I would rank these algorithms as follows in terms of time intensity to complete:

    • Naive Bayes (simple counting and basic math is all that ever happens, it's very efficient)
    • k-NN (lazy algorithm takes little time in training but will be slower when applied to new data)
    • Decision Tree (straightforward solutions with simple splits, also very fast to compute)
    • Neural Net (this is an iterative solution and can be computationally intensive depending on the configuration of number of nodes and hidden layers)

    I hope this helps.

     

    sgenzerUser: "sgenzer"
    Altair Employee
    Accepted Answer

    hello @Rintaspon - I agree with @Telcontar120 and @Thomas_Ott that mod.rapidminer.com is your go-to for day-to-day general sense of complexity.  If you are looking for a more theoretical approach to determine Big O (e.g. O(n) vs O(mn) etc..), you are going to find this in comp sci / ML textbooks on the subject.  A 30-second google search turned up something like this.

     

    As for pseudocode, again this is normally found in textbooks.  Mine is from circa 1990 so I'm not sure you want it.  :)

     

    Scott