Comments (5)
Note also that I ran the tests as described at https://github.com/QuantEcon/MatchingMarkets.py/tree/master/tests
and they all worked up to Plotting Tests
, where I got the same error I noted above.
...
Non-Stochastic brute search
Optimization terminated successfully.
Current function value: -1036.000000
Iterations: 49
Function evaluations: 133
Results: [1.02182617]
Plotting Tests
---PLEASE VERIFY THAT GRAPHS ARE RENDERED ON YOUR SCREEN---
+++++++
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/srv/s/games/MatchingMarkets.py/matchingmarkets/tests.py", line 154, in FullTest
market.update(discount=rng.random_sample,
File "/srv/s/games/MatchingMarkets.py/matchingmarkets/market.py", line 393, in update
nx.draw_networkx_edges(self.Graph, self.graph_pos,
TypeError: draw_networkx_edges() got an unexpected keyword argument 'labels'
from matchingmarkets.py.
My PR #8 seems to resolve the API issue.
Now I'm seeing this PULP_CBC_CMD
test failure:
...
Plotting Tests complete
============================
Pulp Test
Testing zero subtraction
Testing inconsistant lp solution
Test failed: var x == 0.0 != 4
Tests failed for solver <matchingmarkets.algorithms.pulp.solvers.PULP_CBC_CMD object at 0x7efc65d16f40>
* Solver <class 'matchingmarkets.algorithms.pulp.solvers.PULP_CBC_CMD'> failed.
Note also that several messages that seem like warnings, simply because I didn't install all the solvers, also come out, e.g.:
Solver <class 'matchingmarkets.algorithms.pulp.solvers.CPLEX_DLL'> unavailable
from matchingmarkets.py.
Hi,
Sorry about taking so much time to respond. I haven't worked on this project in a while.
I added a setup.py
you should be able to run normally. If it sees more use, I can add it to pip without too much trouble.
Try it and running python -m unittest discover test
to run the unit test suite and it should work. If it doesn't I'll investigate, thanks.
from matchingmarkets.py.
Excellent - thank you!
The updates fixed the error I encountered in testing, and all the tests now pass.
I note that I got what seemed like a more complete test by running FullTest()
, which may be worth mentioning some more in the documentation. The FullTest did surface a warning or two, which may or may not be worth some attention.
[run FullTest manually]
...
Non-Stochastic brute search
Warning: Maximum number of function evaluations has been exceeded.
Warning: Either final optimization did not succeed or `finish` does not return `statuscode` as its last argument.
Results: [6.76774276]
...
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
/srv/s/games/MatchingMarkets.py/matchingmarkets/market.py:332: RuntimeWarning: divide by zero encountered in double_scalars
k=(1/(0.9*np.sqrt(len(
iteration done
(That divide by zero line RuntimeWarning was copied in from a run before my full install, so it may be spurious.)
Thanks again!
from matchingmarkets.py.
Yeah that warning is because it would be too long to set up a brute force search that converges in the test suite
from matchingmarkets.py.
Related Issues (3)
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 matchingmarkets.py.