Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are steps to predict crystal systems for a custom (user defined) dataset #1

Open
Qais-Ali-5 opened this issue Mar 25, 2024 · 1 comment

Comments

@Qais-Ali-5
Copy link

Qais-Ali-5 commented Mar 25, 2024

Thanks for nice work! I am little confused how may one use this for classifying their own dataset. For instance if I have a dataset of various 1D XRD patterns (be it measured or synthetic) with intensity vs 2theta information in folder. Few instructions are there for example;
It is mentioned that customed datasets can be evaluated by with Dataset= flag and train_steps= 0 load= true from saved model. What can be used here as a flag​ ?

Further if you may elaborate step by step how to use all the three models with 7 way crystal types to predict for a user defined dataset of XRD patterns?

Secondly does one need to first generate model? Or the pre-trained models can directly be used for prediction? Thanks in advance!

@AGI-init
Copy link
Owner

AGI-init commented Apr 7, 2024

Dataset=<path.classname> should work. So for example, if you have a file called MyXRD.py with a Pytorch Dataset class called MyDataset, the command should look like: Dataset=MyXRD.MyDataset.

If your Dataset has train=<boolean> in its signature, it can toggle training vs. evaluation data. Then you can evaluate on the evaluation data just by adding train_steps=0 load=true. To select the model type, use task=NoPoolCNN or task=CNN or task=MLP.

Yes, one needs to generate (train) a model for load=true to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants