-
Notifications
You must be signed in to change notification settings - Fork 158
could you please provide an example to predict disordered structure? #317
Comments
Even I load your model like this, it does not work...
Error stack
Ordered structure work well... |
@liuxiaotong15 can you remove the oxidation state and try again? |
Thanks. It works on the disordered model you submitted after I add a remove_oxidation_states() to all structure. But still not work for all ordered models. Can I test disordered structure on previous trained ordered model? |
@chc273 I think you use a dict to express an specie in disordered model, so the disorder structure can not be handled by previous trained model? |
I guess you change the atom in graph from
so old model can't handle disordered structure? |
@liuxiaotong15 again please try remove the oxidation state in ordered structures too |
@chc273 I think you misunderstanding my point. I have a lot of trained model (by ordered structures). I want to test their performance on disordered structures? Is it possible to do that? thanks. |
@chc273 sorry for post so many msg. And now I think I have a more easy way to ask my question: |
@liuxiaotong15 you can construct a new model without the elemental embedding layer, but compute the elemental embedding yourself via linear combinations, e.g., what CrystalGraphDisordered does. Some simple, but exactly the same example is here https://github.com/materialsvirtuallab/megnet/blob/master/notebooks/model_reconstruct.ipynb |
@chc273 Yes, it is a good way. thanks. By the way, I also tested training from graph generated by CrystalGraphDisordered. Merry Christmas and thank for a great MEGNet. |
@chc273 hi, today I dive into https://github.com/materialsvirtuallab/megnet/blob/master/notebooks/model_reconstruct.ipynb and find it is still not easy to handle the disordered structure. The 'CrystalGraphDisordered' bring in so many troubles... |
oh, my previous model is created by |
hi, I am trying to predict band gap of some disordered structures, but i didn't find any examples of that.
I use:
I read some of your code and found that you change the atom number to a dict but I get an error finally:
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type collections.defaultdict)
so could you provide an example of that?
thanks
The text was updated successfully, but these errors were encountered: