Comments (5)
Progress reporting can be suppressed using verbose=FALSE as a control argument.
rules <- apriori(Adult, parameter = list(supp = 0.5, conf = 0.9, target = "rules"), control=list(verbose = FALSE))
from arules.
I have additional questions.
How to silent the output when arules::inspect()
inspect()
is not control argument control=list(verbose = FALSE)
.
The result doesn't silent message even though execute the assignment like this code
> data("Adult")
> rules <- apriori(Adult, control = list(verbose = F))
> res <- inspect(rules[1:10])
lhs rhs support confidence lift
[1] {} => {race=White} 0.8550428 0.8550428 1.0000000
[2] {} => {native-country=United-States} 0.8974243 0.8974243 1.0000000
[3] {} => {capital-gain=None} 0.9173867 0.9173867 1.0000000
[4] {} => {capital-loss=None} 0.9532779 0.9532779 1.0000000
[5] {relationship=Unmarried} => {capital-loss=None} 0.1019819 0.9719024 1.0195373
[6] {occupation=Sales} => {race=White} 0.1005282 0.8920785 1.0433144
[7] {occupation=Sales} => {native-country=United-States} 0.1039679 0.9226017 1.0280552
[8] {occupation=Sales} => {capital-gain=None} 0.1030670 0.9146076 0.9969706
[9] {occupation=Sales} => {capital-loss=None} 0.1068343 0.9480378 0.9945030
[10] {occupation=Adm-clerical} => {native-country=United-States} 0.1052373 0.9160577 1.0207632
from arules.
I am confused about the purpose of silencing inspect
. The whole point if inspect
is to show results on the screen (like print
). You probably want to do something like this:
res <- as(rules, "data.frame")
from arules.
Thanks, I overlooked this flag.
from arules.
Oh. I got it
Thanks advice :)
from arules.
Related Issues (20)
- Error in validObject(.Object) : invalid class “ngTMatrix” object: all row indices (slot 'i') must be between 0 and nrow-1 in a TsparseMatrix HOT 1
- interestMeasure count for itemsets HOT 1
- continuous features? HOT 1
- Help installing arules HOT 3
- Bug: RStudio generates X ammount of Rules, Knited Document has Y HOT 10
- Check item encoding HOT 1
- error in evaluating the argument 'x' in selecting a method for function 'colSums': 'NA' indices are not (yet?) supported for sparse Matrices HOT 4
- Error in transactions(AdultUCI) : could not find function "transactions" HOT 2
- issue when aggregating items HOT 5
- What is transIdenticalToItemsets? HOT 1
- Apriori " Error in deparse1(call) : could not find function "deparse1" " HOT 1
- Parameter to define minimum support (inclusion) HOT 7
- arules 1.7.3 doesn't seem to work with R 4.2 HOT 1
- Discretize is not passing the dig.lab method to cut HOT 1
- dependency with Matrix ? HOT 1
- Least Contradiction Range incorrect HOT 3
- (can't install package) ERROR: compilation failed for package 'fim4r' HOT 8
- find rule on the right side RHS apriori vs fpgrowth HOT 7
- arulesSequences error with timeout HOT 1
- Difference between is.significant() and InterestMeasure() - with same method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arules.