{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "3200850a-b8fb-4f50-9815-16ae8da0f942", "metadata": { "tags": [] }, "outputs": [], "source": [ "import os\n", "from pathlib import Path\n", "\n", "import numpy as np\n", "import pandas as pd\n", "from ase import Atom, Atoms\n", "from ase.data import chemical_symbols, covalent_radii, vdw_alvarez\n", "from ase.io import read, write\n", "from pymatgen.core import Element\n", "from scipy import stats\n", "from tqdm.auto import tqdm\n", "\n", "from mlip_arena.models.utils import REGISTRY, MLIPEnum\n", "\n", "%matplotlib inline\n", "\n", "# model_name = \"MACE-MP(M)\"\n", "\n", "# calc = MLIPEnum[model_name].value()" ] }, { "cell_type": "code", "execution_count": 7, "id": "90887faa-1601-4c4c-9c44-d16731471d7f", "metadata": { "scrolled": true, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "========== eSCN(OC20) ==========\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ "WARNING:root:Detected old config, converting to new format. Consider updating to avoid potential incompatibilities.\n", "WARNING:root:Couldn't modify the submission pickle with error: [Errno 2] No such file or directory: '/checkpoint/zitnick/ocp_logs/4486283/30683411_submitted.pkl'\n", "/pscratch/sd/c/cyrusyc/.conda/mlip-arena/lib/python3.11/site-packages/fairchem/core/modules/normalization/normalizer.py:69: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n", " \"mean\": torch.tensor(state_dict[\"mean\"]),\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "24eab286853845a9adc00bf1b005fe96", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/118 [00:00\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
namemethodREFS^2force-flip-timesforce-total-variationenergy-diff-flip-timesenergy-grad-norm-maxenergy-jumpenergy-total-variationconservation-deviationspearman-descending-forcespearman-ascending-forcespearman-repulsion-energyspearman-attraction-energytortuosityforce-jump
118HHALIGNN[3.7199999999999998, 3.70996794, 3.69993586, 3...[-1.2249419689178467, -1.2238645553588867, -1....[1.91e-06, 0.00826454, 0.00533009, -0.00355052...[]29443.6142553040.6565014.07424813.6760802.022960-0.200684-0.119952-0.9865720.8447861.797762458.210954
119HeHeALIGNN[4.433, 4.4229736200000005, 4.41294724, 4.4029...[2.4748411178588867, 2.4748411178588867, 2.474...[0.0, -1e-08, 0.0, 0.0, 1e-08, 0.0, 0.0, 0.0, ...[]441448.97943643160.17554413.83107232.5447414.849522-0.021494-0.195001-0.7202180.6095193.9218461582.685197
120LiLiALIGNN[6.572000000000001, 6.561981520000001, 6.55196...[-0.21738338470458984, -0.21738338470458984, -...[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...[]221127.74959120281.6591362.06720320.0534662.469147-0.714286-0.444127-0.991010-0.6547151.3866961721.766498
121BeBeALIGNN[6.138000000000001, 6.12797338, 6.117946759999...[2.665587902069092, 2.665587902069092, 2.66558...[0.0, 0.0, 0.0, 0.0, 1e-08, 0.0, 0.0, 0.0, 0.0...[]251645.96035721145.0404629.42209451.6479555.0765230.544090-0.158055-0.9899620.3424761.7159531775.001526
122BBALIGNN[5.921000000000001, 5.91097088, 5.900941739999...[0.6220548152923584, 0.6220548152923584, 0.622...[0.0, 0.0, 1e-08, 0.0, 0.0, 1e-08, -1e-08, -1e...[]351811.41373236131.34079113.08836852.6918565.5517870.052632-0.171460-0.9850240.7578801.6173721799.183469
............................................................
231FlFlALIGNN[6.0, 5.989982779999999, 5.979965579999999, 5....[-10.127323150634766, -10.127323150634766, -10...[0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-...[]393329.77083144181.33814212.29284484.2394348.151059-0.249255-0.316556-0.9467700.1595762.6941473926.252725
232McMcALIGNN[6.0, 5.989982779999999, 5.979965579999999, 5....[-10.127323150634766, -10.127323150634766, -10...[0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-...[]393329.77083144181.33814212.29284484.2394348.151059-0.249255-0.316556-0.9467700.1595762.6941473926.252725
233LvLvALIGNN[6.0, 5.989982779999999, 5.979965579999999, 5....[-10.127323150634766, -10.127323150634766, -10...[0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-...[]393329.77083144181.33814212.29284484.2394348.151059-0.249255-0.316556-0.9467700.1595762.6941473926.252725
234TsTsALIGNN[6.0, 5.989982779999999, 5.979965579999999, 5....[-10.127323150634766, -10.127323150634766, -10...[0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-...[]393329.77083144181.33814212.29284484.2394348.151059-0.249255-0.316556-0.9467700.1595762.6941473926.252725
235OgOgALIGNN[6.0, 5.989982779999999, 5.979965579999999, 5....[-10.127323150634766, -10.127323150634766, -10...[0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-...[]393329.77083144181.33814212.29284484.2394348.151059-0.249255-0.316556-0.9467700.1595762.6941473926.252725
\n", "

118 rows × 19 columns

\n", "" ], "text/plain": [ " name method R \\\n", "118 HH ALIGNN [3.7199999999999998, 3.70996794, 3.69993586, 3... \n", "119 HeHe ALIGNN [4.433, 4.4229736200000005, 4.41294724, 4.4029... \n", "120 LiLi ALIGNN [6.572000000000001, 6.561981520000001, 6.55196... \n", "121 BeBe ALIGNN [6.138000000000001, 6.12797338, 6.117946759999... \n", "122 BB ALIGNN [5.921000000000001, 5.91097088, 5.900941739999... \n", ".. ... ... ... \n", "231 FlFl ALIGNN [6.0, 5.989982779999999, 5.979965579999999, 5.... \n", "232 McMc ALIGNN [6.0, 5.989982779999999, 5.979965579999999, 5.... \n", "233 LvLv ALIGNN [6.0, 5.989982779999999, 5.979965579999999, 5.... \n", "234 TsTs ALIGNN [6.0, 5.989982779999999, 5.979965579999999, 5.... \n", "235 OgOg ALIGNN [6.0, 5.989982779999999, 5.979965579999999, 5.... \n", "\n", " E \\\n", "118 [-1.2249419689178467, -1.2238645553588867, -1.... \n", "119 [2.4748411178588867, 2.4748411178588867, 2.474... \n", "120 [-0.21738338470458984, -0.21738338470458984, -... \n", "121 [2.665587902069092, 2.665587902069092, 2.66558... \n", "122 [0.6220548152923584, 0.6220548152923584, 0.622... \n", ".. ... \n", "231 [-10.127323150634766, -10.127323150634766, -10... \n", "232 [-10.127323150634766, -10.127323150634766, -10... \n", "233 [-10.127323150634766, -10.127323150634766, -10... \n", "234 [-10.127323150634766, -10.127323150634766, -10... \n", "235 [-10.127323150634766, -10.127323150634766, -10... \n", "\n", " F S^2 force-flip-times \\\n", "118 [1.91e-06, 0.00826454, 0.00533009, -0.00355052... [] 29 \n", "119 [0.0, -1e-08, 0.0, 0.0, 1e-08, 0.0, 0.0, 0.0, ... [] 44 \n", "120 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ... [] 22 \n", "121 [0.0, 0.0, 0.0, 0.0, 1e-08, 0.0, 0.0, 0.0, 0.0... [] 25 \n", "122 [0.0, 0.0, 1e-08, 0.0, 0.0, 1e-08, -1e-08, -1e... [] 35 \n", ".. ... .. ... \n", "231 [0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-... [] 39 \n", "232 [0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-... [] 39 \n", "233 [0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-... [] 39 \n", "234 [0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-... [] 39 \n", "235 [0.0, 0.0, -9.5e-07, 0.0, 0.0, 0.0, 0.0, 9.5e-... [] 39 \n", "\n", " force-total-variation energy-diff-flip-times energy-grad-norm-max \\\n", "118 443.614255 30 40.656501 \n", "119 1448.979436 43 160.175544 \n", "120 1127.749591 20 281.659136 \n", "121 1645.960357 21 145.040462 \n", "122 1811.413732 36 131.340791 \n", ".. ... ... ... \n", "231 3329.770831 44 181.338142 \n", "232 3329.770831 44 181.338142 \n", "233 3329.770831 44 181.338142 \n", "234 3329.770831 44 181.338142 \n", "235 3329.770831 44 181.338142 \n", "\n", " energy-jump energy-total-variation conservation-deviation \\\n", "118 4.074248 13.676080 2.022960 \n", "119 13.831072 32.544741 4.849522 \n", "120 2.067203 20.053466 2.469147 \n", "121 9.422094 51.647955 5.076523 \n", "122 13.088368 52.691856 5.551787 \n", ".. ... ... ... \n", "231 12.292844 84.239434 8.151059 \n", "232 12.292844 84.239434 8.151059 \n", "233 12.292844 84.239434 8.151059 \n", "234 12.292844 84.239434 8.151059 \n", "235 12.292844 84.239434 8.151059 \n", "\n", " spearman-descending-force spearman-ascending-force \\\n", "118 -0.200684 -0.119952 \n", "119 -0.021494 -0.195001 \n", "120 -0.714286 -0.444127 \n", "121 0.544090 -0.158055 \n", "122 0.052632 -0.171460 \n", ".. ... ... \n", "231 -0.249255 -0.316556 \n", "232 -0.249255 -0.316556 \n", "233 -0.249255 -0.316556 \n", "234 -0.249255 -0.316556 \n", "235 -0.249255 -0.316556 \n", "\n", " spearman-repulsion-energy spearman-attraction-energy tortuosity \\\n", "118 -0.986572 0.844786 1.797762 \n", "119 -0.720218 0.609519 3.921846 \n", "120 -0.991010 -0.654715 1.386696 \n", "121 -0.989962 0.342476 1.715953 \n", "122 -0.985024 0.757880 1.617372 \n", ".. ... ... ... \n", "231 -0.946770 0.159576 2.694147 \n", "232 -0.946770 0.159576 2.694147 \n", "233 -0.946770 0.159576 2.694147 \n", "234 -0.946770 0.159576 2.694147 \n", "235 -0.946770 0.159576 2.694147 \n", "\n", " force-jump \n", "118 458.210954 \n", "119 1582.685197 \n", "120 1721.766498 \n", "121 1775.001526 \n", "122 1799.183469 \n", ".. ... \n", "231 3926.252725 \n", "232 3926.252725 \n", "233 3926.252725 \n", "234 3926.252725 \n", "235 3926.252725 \n", "\n", "[118 rows x 19 columns]" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "code", "execution_count": null, "id": "4e6ae884-89f3-43f2-8fd9-19bf00c91566", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "mlip-arena", "language": "python", "name": "mlip-arena" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.8" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }