RMOA | Connect R to MOA for massive online data stream mining | Wrapper library
kandi X-RAY | RMOA Summary
kandi X-RAY | RMOA Summary
Currently RMOA focusses on classification models (as the stream package in R already allows clustering). Classification models which are possible through RMOA are:. Streaming regression models are also included namely. Streaming recommendation engines which are made available are.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RMOA
RMOA Key Features
RMOA Examples and Code Snippets
Community Discussions
Trending Discussions on RMOA
QUESTION
I'm implementing Prequential Evaluation in R using RMOA
.
This isn't too important for the question, but basically this evaluates performance of a stream mining classifier by first testing and then training the model for every observation in a stream.
I have it largely completed, except I'm encountering this error message when making predictions:
number of items to replace is not a multiple of replacement length
I'm using the Iris dataset, and strangely it predicts class labels and trains for the first 50 observations as I would expect. For the remaining 100, however, it produces the above error. The dataset is in its default order :
...ANSWER
Answered 2018-May-01 at 09:50After some digging I found the bug originally reported on the MOA-users Google group.
The issue was addressed as a bug in commit 39665f9
by the package author as stated in the issue I opened on the GitHub repository.
Installing RMOA
via CRAN results in version 1.0 which still contains this bug. To avoid, install version 1.1 which is available from the package GitHub repository or by using the following
QUESTION
I'm using the RMOA
package for R
to implement a Hoeffding Tree stream classifier with holdout evaluation.
Everything is training correctly, except when I try to evaluate my model from my held-out test stream I'm getting hit with the following error message:
Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "c('HoeffdingTree', 'MOA_classifier', 'MOA_model')"
Having checked the answer to this question, the problem may stem from the fact that the predict()
method exists in both the stats
and RMOA
packages. I have tried to use the ::
notation in order to specify which package, but I can't seem to point to RMOA predict()
. I also tried uninstalling stats
altogether but it hasn't helped.
Does anyone know how to point directly to RMOA
's predict()
, or is my issue caused by something else entirely?
My R code is below. I'm simply streaming the iris data set for just now, and extracting the first 30 stream items to use for holdout evaluation.
...ANSWER
Answered 2018-Feb-19 at 17:22the predict method in package RMOA is an internal variable you can call it like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RMOA
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page