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
0
votes
1 answer

Output J48 Tree in Text File in R

I have got the decision tree for churn data set using J48()function from RWeka package. The tree is really big hence I am unable to see the whole tree. I want to output it in a text file but the format is getting changed. How can I save it…
Joe
  • 183
  • 5
  • 16
0
votes
1 answer

n-grams in R error: invalid 'times' argument

I'm trying to follow this example but hit an error. > library("RWeka") > library("tm") Loading required package: NLP > data("crude") > BigramTokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 2, max = 2)) > tdm <-…
geotheory
  • 22,624
  • 29
  • 119
  • 196
0
votes
2 answers

RWeka throws java.lang.UnsupportedClassVersionError under OSX 10.10.5

I'm getting the following error message with RWeka 0.4-28 under OS 10.5.5 when I try to create classifiers: Error in .jnew("weka/core/Attribute", attname[i], .jcast(levels, "java/util/List")) : java.lang.UnsupportedClassVersionError: …
Mark R
  • 775
  • 1
  • 8
  • 23
0
votes
2 answers

Performant way to extract most frequent ngrams using R

I am using the following tm+RWeka code to extract the most frequent ngrams in texts: library("RWeka") library("tm") text <- c('I am good person','I am bad person','You are great','You are more great','todo learn english','He is ok') BigramTokenizer…
Mpizos Dimitris
  • 4,819
  • 12
  • 58
  • 100
0
votes
0 answers

RWeka returns java.lang.NoSuchMethodError:

I am trying to run Weka AODE class in R using RWeka. The following code returns an error. library("RWeka") NB <- make_Weka_classifier("weka/classifiers/bayes/AODE") classifier <- NB(Species ~ ., data = iris) And I get this: Error in…
z-star
  • 680
  • 5
  • 6
0
votes
1 answer

NGramTokenizer: switched terms count as equal

I'm trying to plot bigrams from a sample of free comments about meetings held during the last month. I'm using the following method (from the Rweka package): BigramTokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 2, max = 3)) dtm <-…
Rodeuse
  • 1
  • 1
0
votes
1 answer

RWeka Issue Knitting HTML

I'm getting the error below involving the RWeka library, when trying to knit a markdown file into html with Knitr in Rstudio. Any tips would be greatly appreciated. Error : .onLoad failed in loadNamespace() for 'rJava', details: call:…
user2995020
  • 1
  • 1
  • 3
0
votes
1 answer

RWeka remove Sparse terms

I am creating a trigram and quadgram model using RWeka. There is an odd behavior I notice For the trigram TrigramTokenizer <- function(x) NGramTokenizer(x, Weka_control(min = 3, max = 3)) tdm <- TermDocumentMatrix(docs, control = list(tokenize =…
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
3 answers

Could not install RWeka package on R

I tried different ways to install RWeka package on R but could not find any success. I could not install RWeka though trying different methods: 1. Install normally install.packages("RWeka") cannot open compressed file 'RWekajars/DESCRIPTION',…
Duy Bui
  • 1,348
  • 6
  • 17
  • 38
0
votes
0 answers

Association Rule Mining on Multivariate Time Series

I have a data set which contains multiple variables varying with time. I want to run a association mining algorithm to mine the variables whose patterns change at the same time.It seems there is something on Temporal Association Mining but couldn't…
datapanda
  • 437
  • 1
  • 5
  • 12
0
votes
1 answer

calling a function for all elements of a vector

Hi I am trying to execute a Linear Regression using a few separate models and a few separate seeds. Currently I have the following which works but doesn't seem very R like library(RWeka) library(datasets) library(foreach) m0 <-…
Dalupus
  • 1,100
  • 9
  • 19
0
votes
1 answer

Rule learning algorithms of RWeka, problems with finding rules concerning dates

I have some problems with the RWeka package of R, more precisely with the rule-learning-algorithms. I have created an .arff file by my own, which you can see below. Now I have run the JRip and J48 algorithm of the RWeka package with the data of the…
titus24
  • 25
  • 3
-1
votes
1 answer

Obtaining the Linear Regression Model at each Leaf for M5P model

I am trying to figure how to get the linear model at each leaf of a tree generated by M5P method in RWeka library in R as an output to text file so that I can write a separate look up calculator program (say in Excel for non-R Users). I am…
user2162611
  • 146
  • 3
  • 13
-2
votes
1 answer

Why do I receive different taken time in Weka in every modeling time?

Every time I click start for do modeling in Weka for the same data and the same function I receive different taken time. How can I measure real taken time?
1 2 3 4 5 6
7