Comments (3)
I'm running things in Python 2.7, and when I removed "n = n_users" from the call above, the code proceeds farther, but then runs into the following error below. Thank you for the assistance.
$ python Simulation.py --alg factorUCB
...
Users 9 CoTheta [ 0.17459147 0.04203424 0.16958883 0.02280975 0.23921426 0.05525657
0.09552645 0.11874966 0.07183244 0.0457676 0.28499082 0.
0.01674014 0.1272744 0.3656073 0.28675806 0.165991 0.07772692
0.17026372 0.07092157]
Traceback (most recent call last):
File "Simulation.py", line 525, in
simExperiment.runAlgorithms(algorithms)
File "Simulation.py", line 302, in runAlgorithms
VDiff[alg_name] += self.getL2Diff(self.articles[pickedArticle.id].featureVector, alg.getV(pickedArticle.id))
File "Simulation.py", line 170, in getL2Diff
return np.linalg.norm(x-y) # L2 norm
ValueError: operands could not be broadcast together with shapes (20,) (25,)
from banditlib.
Same error!
from banditlib.
Thank you @diegoolano @scheeloong for pointing out the problem, and it is fixed now:)
from banditlib.
Related Issues (7)
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 banditlib.