GuessCompx: An empirical complexity estimation in R

11/04/2019
by   Marc Agenis-Nevers, et al.
0

This article introduces GuessCompx which is an R package that performs an empirical estimation on the time and memory complexities of an algorithm or a function. It tests multiple increasing-sizes samples of the user's data and attempts to fit one of seven complexity functions: O(N), O(N^2), O(log(N)), etc. Based on a best fit procedure using LOO-MSE (leave one out-mean squared error), it also predicts the full computation time and memory usage on the whole dataset. Conceptually, it relies on the base R functions system.time and memory.size, the latter being only suitable for Windows users. Together with this results, a plot and a significance test are returned. Complexity is assessed with regard to the user's actual dataset through its size (and no other parameter). This article provides several examples demonstrating several cases (e.g., distance function, time series and custom function) and optimal parameters tuning. The subject of the empirical computational complexity has been relatively little studied in computer sciences, and such a package provides a reliable, convenient and simple procedure for estimation process. Further, the package does not require to have the code of the target function.

READ FULL TEXT

page 5

page 6

page 7

page 9

research
09/22/2020

An R package for Normality in Stationary Processes

Normality is the main assumption for analyzing dependent data in several...
research
06/01/2019

lspartition: Partitioning-Based Least Squares Regression

Nonparametric partitioning-based least squares regression is an importan...
research
12/10/2019

Generalised Network Autoregressive Processes and the GNAR package

This article introduces the GNAR package, which fits, predicts, and simu...
research
06/19/2018

vsgoftest: An Package for Goodness-of-Fit Testing Based on Kullback-Leibler Divergence

The R-package vsgoftest performs goodness-of-fit (GOF) tests, based on S...
research
06/04/2018

pammtools: Piece-wise exponential Additive Mixed Modeling tools

This article introduces the pammtools package, which facilitates data tr...
research
04/27/2020

Efficient Quantile Tracking Using an Oracle

For incremental quantile estimators the step size and possibly other tun...
research
05/19/2023

A general model-checking procedure for semiparametric accelerated failure time models

We propose a set of goodness-of-fit tests for the semiparametric acceler...

Please sign up or login with your details

Forgot password? Click here to reset