Comments (2)
Also, this call fails when the objects in the list are Atoms
.
bash-4.4$ cat t
import numpy as np
from ase.atoms import Atoms
l = [Atoms('H2'), Atoms('He2')]
np.random.choice(l, 1)
bash-4.4$ python3 t
Traceback (most recent call last):
File "/home/cluster2/bernstei/src/work/NiOxHy/fit_iterative_stage_010/_expyre/run_070_MACE_fit_NiOxHy_MACE_fit_lPgYyu05kGnYajeJu5wzBxuJV1094EXFnTzKyVYkb4Y=_pnjs9mxr/run_020_MD_sample/070_MACE_fit/t", line 5, in <module>
np.random.choice(l, 1)
File "numpy/random/mtrand.pyx", line 946, in numpy.random.mtrand.RandomState.choice
ValueError: a must be 1-dimensional
from mace.
I can fix in a PR, but the answer to the replace=True
question affects the way to do it (np.random.randint
vs. np.random.choice(list(range(len(...))))
from mace.
Related Issues (20)
- Deployment of the MACE Model Without Using ASE HOT 5
- Error while using multihead interface HOT 2
- Segmentation fault during LAMMPS-MACE-CPU run HOT 1
- Problems with parallelization on CPU (Using LAMMPS) HOT 1
- Improve plotting script
- Automatically add parameters to optimizer
- Change stress to virials internally
- ASE documentation update? HOT 4
- Move to ruff for linting and formating? HOT 3
- Tripeptides Data for MACE-OFF Model
- Bug on loading finetuning model HOT 2
- Remove `e3nn` version pin HOT 2
- models created from multihead fine tuning don't work in lammps HOT 6
- universal loss (at least in multi-head-interface branch) does not support per-config weight
- cannot turn off multihead finetuning in multi-head-interface branch HOT 17
- Colab Tutorial Link Does not work HOT 2
- help message for `--pair_repulsion` is wrong HOT 1
- How to use multi-GPUs training with PBS system HOT 20
- [feature suggest] active learning in lammps
- I got Warning pytorch not support instance-level annotations. 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 mace.