Questions tagged [rweka]

RWeka - R package which makes Weka functions accessible

R is a free, open-source programming language and software environment for statistical computing, bioinformatics, and graphics. Weka is an open source machine learning library written in Java. RWeka is a package for R that provides an interface to most Weka functions so that they are accessible in R.

104 questions
2
votes
0 answers

Extracting all possible ngrams in R tm document term matrix

I am using the "tm" package in R to create a term document matrix. Then I use "RWeka" to extract trigrams as specified in the code below myCorpus <- VCorpus(VectorSource(reddata$Tweet)) #create tokenizer function TriTok<- function(x)…
Sebastian
  • 445
  • 5
  • 20
2
votes
0 answers

package or namespace load failed for 'RWeka'

So, I installed RWeka on my MacBook OS X El Capitan Version 10.11.6, however when I run library(RWeka) I get the error Error : .onLoad failed in loadNamespace() for 'RWeka', details: call: .jnew("weka/core/WekaPackageClassLoaderManager") error:…
cappuccino
  • 325
  • 3
  • 13
2
votes
0 answers

RWeka won't load

Can't get the RWeka package to be added to the library. I can install.packages("RWeka") but when I load library(RWeka), I get an error message, "No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java…
2
votes
2 answers

Issues installing RWeka

All, I'm having some issues installing RWeka. I am on IOS 10.12.1. This error message is appearing: installing the source package ‘RWeka’ trying URL 'https://cran.rstudio.com/src/contrib/RWeka_0.4-29.tar.gz' Content type 'application/x-gzip' length…
2
votes
1 answer

RWeka will not work with caret or possibly %dopar%

I am completing the exercises from Applied Predictive Modeling, the R textbook for the caret package, by the authors. I cannot get the train function to work with methods M5P or M5Rules. The code will run fine…
Ben Hunter
  • 876
  • 1
  • 8
  • 18
2
votes
1 answer

Searching key terms (Corpus) into another in R

I asked this question before and got negative feedback because I did not provide code. I spent the whole day trying and trying and now I am stuck in an issue. This code has been fetched by a user in Stackoverflow "Tyler Rincker" <- big thanks to…
Lian Ahmad
  • 109
  • 1
  • 10
2
votes
1 answer

How to use RWeka package on a dataset?

So I generated a random dataset online and I need to apply the C4.5 algorithm on it. I installed the RWeka package and all its dependencies but I do not know how to execute it. Can somebody help me with links to tutorials? Anything apart from the…
Saksham Arora
  • 71
  • 2
  • 9
2
votes
1 answer

Save/load a M5 RWeka caret model fails

I'm coming up with an error after loading a saved M5 implementation of the RWeka package via Caret. Error in .jcall(o, "Ljava/lang/Class;", "getClass") : RcallMethod: attempt to call a method of a NULL object. To reproduce the…
Gary Chung
  • 158
  • 10
2
votes
1 answer

Parsing a decision tree (from a WEKA classifier) for plotting in R?

I would like to plot the result of an ID3 model. It doesn't seem to have a default plot module in WEKA nor in R. Is there an already made code to do this? (or, does the tree format below has a standard name, for which I could easily find a…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
1
vote
1 answer

Text analysis with dictionary of words: NGramTokenizer not working

I am trying to look for a list of keywords in a text. Some of these keywords are n-grams. However, the TermDocumentMatrix will only find single words. I already had a look at several similar questions like this one (from which I borrowed the custom…
gicanzo
  • 69
  • 8
1
vote
1 answer

Issues Installing RWeka in Databricks

I'm trying to install RWeka on DataBricks, using R but keep running into this error: Error in library(RWeka) : there is no package called ‘RWeka’ This is the code I'm using: install.packages('rJava') install.packages('RWeka') code…
1
vote
1 answer

All nodes are labelled as "setosa" for R48 plot of iris dataset in R

I tried using decision tree algorithm in R which is pretty straightforward but while plotting the plot for R48 algorithm all the nodes are labelled as "setosa", but on many sites and as per my thinking the nodes must have been different. Can someone…
Vishal
  • 13
  • 3
1
vote
0 answers

Is there a non-Java implementation of the M5P regression model of the RWeka library?

I am looking for a function which creates the M5P regression model like the M5P function of the RWeka library (as the M5P function is based on Java code which has some drawbacks for me). I tried the cubist function of the cubist library and the…
sh_student
  • 369
  • 2
  • 14
1
vote
0 answers

Unable to load RWeka package

I have tried adding the path in the terminal using the solution given here and it said was successfully added but still I am unable to load the RWeka package. It is giving me the below error - Error: package or namespace load failed for…
1
vote
1 answer

Are there RWeka's Detailed Accuracy By Class?

In Weka 3.8.3 (a machine learning platform), the results of an analysis using JRip classifier are in the following form. === Summary === Correctly Classified Instances 158 25.2396 % Incorrectly Classified Instances 468 …
Rodrigo
  • 4,706
  • 6
  • 51
  • 94