dwave-examples / structural-imbalance Goto Github PK
View Code? Open in Web Editor NEWDemo for analyzing the structural imbalance on a signed social network.
License: Other
Demo for analyzing the structural imbalance on a signed social network.
License: Other
Users that have installed the factoring demo will have Cloud Client installed so the following sequence to run on CPU will fail:
The demo will try to run on the QPU without having installed .[qpu] --extra-index-url https://pypi.dwavesys.com/simple
Traceback (most recent call last):
File "C:\Users\circleci\repo\demo.py", line 86, in <module>
gssn = GlobalSignedSocialNetwork(qpu)
File "C:\Users\circleci\repo\dwave_structural_imbalance_demo\interfaces.py", line 60, in __init__
maps['Global'] = global_signed_social_network()
File "C:\Users\circleci\repo\dwave_structural_imbalance_demo\mmp_network\loader.py", line 34, in global_signed_social_network
next(data_iter)
File "C:\Users\circleci\repo\python\tools\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6347: character maps to <undefined>
ETraceback (most recent call last):
File "C:\Users\circleci\repo\demo.py", line 86, in <module>
gssn = GlobalSignedSocialNetwork(qpu)
File "C:\Users\circleci\repo\dwave_structural_imbalance_demo\interfaces.py", line 60, in __init__
maps['Global'] = global_signed_social_network()
File "C:\Users\circleci\repo\dwave_structural_imbalance_demo\mmp_network\loader.py", line 34, in global_signed_social_network
next(data_iter)
File "C:\Users\circleci\repo\python\tools\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6347: character maps to <undefined>
And possibly run them with classical samplers. This would let us run the tests on PRs.
a6a4a9f comments out two tests because they are unix-specific. If we wish to continue running these integration tests this way, we should fix and restore them.
#25 added a new implementation of the demo but did not go so far as to clean up the old one.
Currently, the sampler is hardcoded in the demo.
Either change to use LeapHybridSampler or allow the user to pick the sampler with the set of parameters.
In the demo, the results are plotted and saved. Display them instead.
I'm having trouble seeing how the aerospace tag applies to this one.
The unit tests do pass for me locally with DW_2000Q_6 and Advantage. Is there a different QPU architecture that is being used by Circle CI? The fix may be to use a --region
flag to define a smaller problem when running structural_imablance.py
in the unit test.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.