Coder Social home page Coder Social logo

rcorels's Introduction

R API for CORELS

To install, cd into the rcorels directory and run

# R CMD INSTALL .

Alternately, assuming you have the devtools library installed, you can simply use the install_github() function to install this package, as follows:

> library(devtools)
> install_github("saligrama/rcorels")

Within R, you can use the function train.corels() to train the CORELS model. The predict.corels() and print.corels() functions can be used to apply the resulting model to a set of test data, or print the model, respectively.

Note that for macOS users, the Homebrew version of R does not work with the Rcpp library that this depends on. Please use R from the official website.

Bundled data coming soon.

NOTE: This package compiles on Windows, but will NOT run on that platform due to significant incompatibilities between our code and Microsoft/MinGW's lack of support for several standard library functions. Please do not try to run this on Windows, as it will crash R. Instead, using Windows Subsystem for Linux (WSL) is the recommended way to run CORELS on Windows.

rcorels's People

Contributors

saligrama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rcorels's Issues

Invalid pointer, core dumped

Hi,

I successfully installed the corels R package. However, when running the example given in the documentation for train.corels, I get the following error:

...
create itemset ...
set transactions ...[27 item(s), 217 transaction(s)] done [0.00s].
sorting and recoding items ... [27 item(s)] done [0.00s].
creating bit matrix ... [27 row(s), 217 column(s)] done [0.00s].
writing ... [351 set(s)] done [0.00s].
Creating S4 object ... done [0.00s].
free(): invalid pointer
Aborted (core dumped)

And the R session is dropped. Information about my R session that may be useful:

R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding

locale:
[1] LC_CTYPE=pt_PT.UTF-8 LC_NUMERIC=C
[3] LC_TIME=pt_PT.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=pt_PT.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=pt_PT.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=pt_PT.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] corels_0.3.0

loaded via a namespace (and not attached):
[1] compiler_3.6.0 Rcpp_1.0.1

If there is something I can do about this, I'd like to know.
Thanks!

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.