Giter Club home page Giter Club logo

cgnn's People

Contributors

tony-y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cgnn's Issues

Some problems about the construction of Crystal Graphs

I have tried some relaxed structures of the Material Project dataset to construct suitable crystal graphs. These data are from a Kyoto University’s project phonondb@kyoto-u. I use the package pymatgen to import these structures to mp_graph.py.

With the tools mp_graph.py, I found that except for some structures with the same tetrahedral configuration as SiO2, such as Si (mp-149) and SiC(mp-7140) most of structures' crystal graphs have the two problems:

  1. Atom A is connected to Atom B, while Atom B is not connected to Atom A.
  2. Atom A is connected to a father atom, while the closer atom is not connected.

Crystal Graphs are undirected graphs, so any two adjacent atoms should be connected to each other.
The first problem is caused by the clustering algorithm. The k-means cluster used in mp_graph.py is to find the nearest atom cluster to the target atom. However, in a situation that Atom A is only connected to Atom B while Atom B is connected to many atoms and A-B distance is not the shortest, the clustering algorithm will exclude the connection from B to A but retain the connection from A to B.

The second problem is caused by expressing the distance by percentage instead of absolute distance. The father atom has a bigger radius, so the percent distance is smaller in fact. Because of the reason, the k-means algorithm will exclude the nearest atom.

oqmd dataset generator error

Hello developer, thanks for your code and research. It's helped a lot. But there is a question when I run python ../tools/oqmd_data.py, could you teach me how to solve this problem?

Traceback (most recent call last):
File "../tools/oqmd_data.py", line 128, in
main(**options)
File "../tools/oqmd_data.py", line 110, in main
entries = get_valid_entries()
File "../tools/oqmd_data.py", line 34, in get_valid_entries
return list(entries)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/models/query.py", line 162, in iter
self._fetch_all()
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/models/query.py", line 965, in _fetch_all
self._result_cache = list(self.iterator())
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/models/query.py", line 1217, in iterator
for row in compiler.results_iter():
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 794, in results_iter
results = self.execute_sql(MULTI)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 840, in execute_sql
cursor.execute(sql, params)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/utils.py", line 98, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/home/dell/anaconda3/envs/ElemNet/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.ProgrammingError: (1146, "Table 'oqmd_v1_2.calculations' doesn't exist")

Can not configure environment for qmpy to access mysql database

pip and conda can not search pymatgen=2018.12.12
other versions installed through conda can not access MySQL oqmd database, running your oqmd script has bugs.
How do I solve these problems?

conda create --name qmpy
conda install -n qmpy scikit-learn matplotlib python=2.7
source activate qmpy
pip install pymatgen==2018.12.12 monty==1.0.3
pip install qmpy==1.2.0 ase==3.17
pip install pydash tqdm joblib

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.