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
1
vote
1 answer

Use decision rules to split other data

I am looking for an elegant solution to use the decision rules created in one dataset (for a example your training set) to split the data of another dataset (e.g test data) according to these rules. Look at this example: # Load PimaIndiansDiabetes…
Arno
  • 207
  • 2
  • 9
1
vote
0 answers

How to display the list of Weka Interfaces Not Necessarily

I understand that we can perform Weka classifications and other data mining tasks in R using the RWeka package. An example for creating a classifier is by using make_Weka_classifier with the following…
1
vote
1 answer

Error: package or namespace load failed for ‘RWeka’:

Im getting this error, when i execute Library(Rweka). try to help me in resolving this error. i have jdk 1.8. and R 3.5 installed. Error: package or namespace load failed for ‘RWeka’: .onLoad failed in loadNamespace() for 'rJava', details: call:…
user1340391
  • 11
  • 1
  • 4
1
vote
2 answers

RWeka NgramTokenizer

I've struggled with the RWeka package, specifically with the NGramTokenizer function to make bigrams. From scouring the internet, I've seen one or two other users with the same issue but no solution (that works for me). Below is an example: 2-gram…
Shane
  • 13
  • 4
1
vote
1 answer

Issues in Installing RWeka in R (Ubuntu 16.04)

I want to install Fselector package in which RWeka is needed but on installing RWeka it throughs me following error: Error : .onLoad failed in loadNamespace() for 'RWeka', details: call: .jcall("java/lang/System", "V", "setOut", out) error: method…
Gaurav Parmar
  • 41
  • 1
  • 9
1
vote
0 answers

RWeka M5P model. How to reproduce result manually?

I would like to clarify my understanding of the result of a trained M5P model. I trained an M5P model that gave me a tree followed by 4 linear models. M5 unpruned model tree: (using smoothed linear models) Value12 <= 2.266 : | Value2 <= 1111.5 :…
DavBig
  • 35
  • 1
  • 1
  • 7
1
vote
0 answers

R caret train() underperforming on J48 compared to manual parameter setting

I need to optimize the accuracy of the C4.5 algorithm on my churn dataset using RWeka's implementation (J48()). Therefore I am using the train() function of the caret package to help me determine the optimal parameter settings (for M and C). I tried…
m3ph
  • 53
  • 6
1
vote
0 answers

RWeka Neural Network Classifier error

I am using RWeka package to carry out a machine learning experiment, the method runs fine for other machine learning algorithms given by RWeka but whenever I run the neural networks I get the below mentioned error: MLP <-…
IronMaiden
  • 552
  • 4
  • 20
1
vote
1 answer

TextMining in R - Extracting 2 gram for only few terms and 1 gram for rest

text = c('the nurse was extremely helpful', 'she was truly a gem','helping', 'no issue', 'not bad') I want to extract 1-gram token for most words and 2 gram tokens for words such as extremely, no , not For example when I get tokens they should be as…
MysticRenge
  • 373
  • 1
  • 4
  • 13
1
vote
1 answer

Having issues in installation of RWeka

I have been trying to install RWeka for R through ipython notebook, but am getting errors. I have ubuntu 16.10 I have tried the following commands sudo R CMD javareconf sudo R install.packages("rJava",type="source") "Installing package into…
1
vote
0 answers

RWeka in Windows 64 installed and can't load library

I've successfully installed RWeka as shown below but when loading the library I get the error there is no package called ‘RWeka’ package ‘RWekajars’ successfully unpacked and MD5 sums checked package ‘RWeka’ successfully unpacked and MD5 sums…
user3437823
  • 351
  • 2
  • 14
1
vote
0 answers

RWeka won't load. Using RStudio

library(RWeka) gives this error: Error in get(Info[i, 1], envir = env) : lazy-load database 'C:/Users/Richard/Documents/R/win-library/3.1/rJava/R/rJava.rdb' is corrupt In addition: Warning message: In get(Info[i, 1], envir = env) : internal error…
1
vote
1 answer

RWeka - J48 Function In R 3.3.0

I am working on a churn project and came across a J48 tree function. The asked packages were RWeka and party. But when I am loading library(RWeka), I am getting an error Error : .onLoad failed in loadNamespace() for 'rJava', details: call:…
Joe
  • 183
  • 5
  • 16
1
vote
2 answers

Error in RWeka in R package

I have searched SO and everywhere else and nothing works to fix the unsupported major.minor version 51 error. I uninstalled Java 8 and installed Java 7. No luck. Thank you for your help. I am using: R 3.3.1 Java 8.91 OSX, el…
xanstorm
  • 33
  • 1
  • 8
1
vote
1 answer

How to implement a backup tokenizer switch in RWeka?

I am using R-tm-Rweka packages to do some text mining. Instead of building a tf-tdm on single words, which is not enough for my purposes, i have to extract ngrams. I used @Ben function TrigramTokenizer <- function(x) NGramTokenizer(x,…
Pradeep
  • 350
  • 3
  • 16