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
0 answers

Changing Euclidean distance to Manhanttan

My Code: wine_Manhanttan <- SimpleKMeans(wine, Weka_control(N=3, V=T, A = "weka.core.ManhanttanDistance")) Return: Error in .jcall(clusterer, "V", "buildClusterer", instances) : java.lang.ClassNotFoundException Trying change SimpleKMeans default…
0
votes
1 answer

Trouble creating Naive Bayes classifier using RWeka

I'm trying to create a NB classifier via RWeka and it is returning a variable type error. I have the following variables: dtm_df.train as a data.frame containing the following ask check state 1_10 0 1 bad 1_100 1 0 bad 1_11 …
Paulos
  • 119
  • 1
  • 7
0
votes
2 answers

Plot decision tree based on strings with J48 algorithm for prediction

I'm trying to plot J48 decision tree based on string values attributes and predict the target variable(categorical), I have seen many examples plotting decision tree based on numerical values but i haven't come across based on strings. Here is…
louis
  • 595
  • 3
  • 9
  • 24
0
votes
0 answers

Why do I get an Error in using RWEKA package

I used the RWEKA and suddenly when I use: > require("RWeka") I get the following error: Loading required package: RWeka Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : namespace ‘RWekajars’ 3.9.1-3 is already loaded,…
Avi
  • 2,247
  • 4
  • 30
  • 52
0
votes
2 answers

How should I plot a multi-split (non binary split) decision tree run from RWeka J48() function?

I try to build a multi-split tree with the option of J48() function: mytree = J48(class ~ ., data=train.set, na.action = NULL, control= Weka_control(U=TRUE, B=FALSE)) and it seems to work fine. But I cannot plot the decision tree by any of the…
d.lee
  • 3
  • 4
0
votes
1 answer

RWeka installation under Rstudio on Mac

I tried to find solutions from previous posts, but they do not solve my problem. I am using macOS High Sierra and have Java installed. Below is the error reported by Rstudio. Also, rJava, Mac, and R are really messy with each other. I found this…
0
votes
1 answer

RWeka M5P model tree in Rmd chunk gives an error

I create a Model-tree with the following command: Tree_Model <- RWeka::M5P(Formule_Train, data = AB_Train) Then the following line executes fine inside a R-chunk in a Rmd-file: Tree_Model_Test <- predict(Tree_Model, newdata=AB_Test) But when I try…
Ben Engbers
  • 433
  • 3
  • 12
0
votes
0 answers

Error in loading RWeka

After installing the RWeka package with R studio, library(RWeka) produces a fatal error, forcing me to start a new session. loading the package in R vanilla shows an error message like this. > library(RWeka) *** caught segfault *** address…
Scott
  • 79
  • 7
0
votes
0 answers

Issue trying to Knit Rmd File to Word when RWeka is Used

I'm trying to Knit an Rmd file to Word, and keep encountering the following error message: Error Message from RStudio My line 28 is as follows: NN <- make_Weka_filter("weka/filters/unsupervised/attribute/NumericToNominal") I use NN later to apply…
natehoffy
  • 1
  • 2
0
votes
0 answers

Loading RWeka package crashes R 3.5 session (Windows 10)

I never had any issues with RWeka package but since yesterday when I updated all my packages, loading RWeka crashes my R session immediately. I reinstalled R (to the newest version of 3.5), rJava and RWeka packages. Didn't have any issues during…
Ankhnesmerira
  • 1,386
  • 15
  • 29
0
votes
1 answer

How to use RWeka classifiers function attribute "options"?

In RWeka classifiers, there is an attribute "options" in the classifier's function call, e.g. Bagging(formula, data, subset, na.action, control = Weka_control(), options = NULL). Could some one please give an example (a sample R code) on how to…
Alex
  • 37
  • 1
  • 9
0
votes
1 answer

OrdinalClassification in RWeka

I saw that there are a lot of meta classifiers of Weka implemented in RWeka package but I can't find the meta classifiers OrdinalClassifiers. Is there a package that I can use? Thanks.
adamista
  • 205
  • 2
  • 12
0
votes
2 answers

Invalid input error in utf8towcs when running R code in shiny

When I run the app, I getting the following error. Error in FUN: invalid input 'at my monthly blog stats and we’re nearly on 4000 for April which is amazing – thank you Jx 😘😘' in 'utf8towcs' I tried to covert the data as below because of…
Jay
  • 51
  • 2
  • 4
0
votes
0 answers

How do I change this data into proper format to do association rule mining in WEKA?

This is how the data is stored in the file given. There are 8 attributes given. I need association rule mining done using Apriori Algorithm in WEKA. Such as, if item 1 & item 2 are bought --> item 4 is also bought or something reasonable as that.…
user6829603
0
votes
2 answers

extract weights from a RWeka SMOreg model

I am using the awesome RWeka package in order to fit a SMOreg model as implemented in Weka. While everything is working fine, I have some problem extracting the weights from the fitted model. As all Weka classifier object, my model has a nice print…
fednem
  • 95
  • 2
  • 13