Comments (3)
Can you show the complete code that you are trying to run? That would make debugging a tad easier.
from contextual.
Here it is :
prob_per_arm <- c(0.1, 0.1, 0.1, 0.1, 0.9)
horizon <- 250
simulations <- 1000
bandit <- BasicBernoulliBandit$new(weights = prob_per_arm)
agent <- list(Agent$new(EpsilonGreedyPolicy$new(0.1), bandit, "Epsilon = 0.1"),
Agent$new(EpsilonGreedyPolicy$new(0.2), bandit, "Epsilon = 0.2"),
Agent$new(EpsilonGreedyPolicy$new(0.3), bandit, "Epsilon = 0.3"),
Agent$new(EpsilonGreedyPolicy$new(0.4), bandit, "Epsilon = 0.4"),
Agent$new(EpsilonGreedyPolicy$new(0.5), bandit, "Epsilon = 0.5"))
history <- Simulator$new(agents = agent,
horizon = horizon,
simulations = 1000,do_parallel = T)$run()
from contextual.
Hi @fhujiil -thanks for reporting this issue! It seems that using setMKLthreads() in MRO 3.5.3 in combination with RStudio crashes R. See also here.
I was able to resolve the issue by skipping "setMKLthreads(1)" when both RStudio and MRAN are detected .
This might degrade performance when running contextual on MRAN+RStudio though - as contextual's parallel processing and MRAN's multi-threaded linear algebra computations will now compete for the same processors.
This solution will be in contextual's next CRAN release, probably sometime next month. To use the updated code right away, just install from GitHub:
install.packages("devtools")
devtools::install_github('Nth-iteration-labs/contextual')
from contextual.
Related Issues (20)
- Save predicted reward for chosen arm (feature request) HOT 2
- Some minor clarifications in the documentation HOT 1
- Help with creating a custom bandit. Error message: cannot add bindings to a locked environment HOT 3
- How to change the discount factor? HOT 2
- Minor update required for EpsilonFirstPolicy object input in documentation article HOT 1
- CRAN packages' problems on R-devel: `[[<-`(NULL, *)
- cannot have more than two simulations per epoch using benchmark MAB policy in offline bandit CMAB policy evaluation HOT 4
- Saved the trained agent and hold the thetas unchanged for simulation on new dataset
- Contextual, determinism and setting seeds HOT 1
- Arm choice sequence from the simulation? HOT 1
- minor correction for statement in demo "Demo: Bandits, Propensity Weighting & Simpson’s Paradox in R" HOT 2
- Confusing assignments in method get_reward for OfflineDoublyRobustBandit HOT 2
- Possible bug in Exp3Policy HOT 3
- How to get predictions of new test data?
- Package removed from CRAN
- Example in ContextualBinaryBandit doc does not run HOT 2
- abline() does not draw lines where expected HOT 2
- Typo in documentation for ContextualEpochGreedyPolicy HOT 2
- Setting random seed outside of Simulator 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 contextual.