Comments (4)
Hi @AyeshaUlde, the data weights can be set for SNAP training as in this notebook (https://github.com/materialsvirtuallab/maml/blob/master/notebooks/pes/snap/example.ipynb)
For example, if we want to set 100 as weight for the energies of the AIMD structures, we can modify the line of weights[df['dtype'] == 'energy'] = 100
to weights[(df["dtype"] == "energy") & (df["group"] == "AIMD")] = 100
from maml.
Hi @AyeshaUlde, the data weights can be set for SNAP training as in this notebook (https://github.com/materialsvirtuallab/maml/blob/master/notebooks/pes/snap/example.ipynb)
For example, if we want to set 100 as weight for the energies of the AIMD structures, we can modify the line of
weights[df['dtype'] == 'energy'] = 100
toweights[(df["dtype"] == "energy") & (df["group"] == "AIMD")] = 100
@JiQi535 That gives KeyError: 'group'
How can I resolve it?
from maml.
The "group" information can be extracted from the training.json files. For example, if you have already extracted the "group" labels for the training structures in a list called "groups", you can add this part of information to the dataframe by df["group"]=groups
. This is one way to have the structures and energies in the df
correctly pointed to their "group" labels, you can try others as well.
Overall, the way to assign weights for energies, forces and stresses are already shown in the notebook (https://github.com/materialsvirtuallab/maml/blob/master/notebooks/pes/snap/example.ipynb), and the "group" labels are provided in the training.json files.
from maml.
The "group" information can be extracted from the training.json files. For example, if you have already extracted the "group" labels for the training structures in a list called "groups", you can add this part of information to the dataframe by
df["group"]=groups
. This is one way to have the structures and energies in thedf
correctly pointed to their "group" labels, you can try others as well.Overall, the way to assign weights for energies, forces and stresses are already shown in the notebook (https://github.com/materialsvirtuallab/maml/blob/master/notebooks/pes/snap/example.ipynb), and the "group" labels are provided in the training.json files.
Okay, got it. Thank you.
from maml.
Related Issues (20)
- GAPotential.train error : "No such file or directory: 'train.xml'" HOT 6
- ValueError: could not convert string to float: ' command mindist does not exist.\n' HOT 14
- Pip package contains mypy cache HOT 3
- Bowsr `minimize()` still raises IndexError
- Question about radius in BOWSR readme example HOT 7
- BayesianOptimizer.optimize() too verbose HOT 1
- A code running error HOT 1
- Training data HOT 1
- `citation.cff`
- a Code running error (Example for MTP fitting) HOT 12
- How to use potential in lammps? HOT 1
- AtomSets | Validation set splitting HOT 1
- Difference compared to FitSNAP
- The problem of model training efficiency HOT 2
- MTP example notebook (issue with imports) HOT 2
- MLIP MTP notebook HOT 6
- Running error in the mtp example in notebook HOT 1
- [Bug]: Running error in the nnp example in notebook HOT 1
- An Error occurred when I try to run GAP code in notebooks/pes/gap/example.ipynb HOT 1
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 maml.