"Unified package that contains atomic-features from various sources like PYMATGEN, MAGPIE, LDA2015 amd FHI_dft can be imported into Jupyter-notebook for performing various machine learning studies\n",
"\n",
"In this demonstration I will show how one can use the package to access material features from different sources using this package"
"This module is a visualization tool that allows us to visualize atomic properites of all elements accross periodic table as a heatmap"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"After importing periodictable module one must call this heatmap method to get interactive heatmaps. One must supply Spin and method appropirate keywords agruments as per one's interest. \n",
"\n",
"**Spin** arg value could be :\n",
"\n",
"* \"True\"\n",
"\n",
"* \"False\"\n",
"\n",
"**method** arg value could be :\n",
"\n",
"* \"hse06\"\n",
"\n",
"* \"pbe\"\n",
"\n",
"* \"pbe0\"\n",
"\n",
"* \"pbesol\"\n",
"\n",
"* \"pw-lda\"\n",
"\n",
"* \"revpbe\"\n",
"\n",
"* \"magpie\"\n",
"\n",
"* \"lda2015\"\n",
"\n",
"* \"pymat\"\n",
"\n",
"\n",
"**<font color='red'>Note</font>**: for **method** “magpie”/“lda2015”/“pymat” , **Spin** arg value has to be set to **\"False\"**\n",
"\n",
"As per different combinations specific element features will be loaded in heatmap plots."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Below is an example line of code you need to run to visualize data calculated via the HSE06 functional and spinless settings."
"After running the above line of code one gets a plot of complete periodic table of elements. From the dropdown menu, one can select which property one is interested to check and the table is updated automatically to show the corresponding heatmap."
"Besides ```periodictable module``` this package has 4 other modules that consist to atomic features from sources corresponding to its name. And it can be imported according to ones need to atomic features. \n",
"\n",
"I will breifly depict each of these module to access atomic feature and functions that are available with it.\n",
"\n",
"```atomic_properties_dft``` module : This module contains several atomic features accessible from FHI-AIMS dft calculations\n",
"\n",
"Import this module using following code shown in next cell block"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"from atomicfeaturespackage.atomicproperties import atomic_properties_dft as dft"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"After importing ``atomic_properties_dft`` module one must call **method** function to instantiate element objects. One must supply Spin and method appropirate keywords agruments as per one's interest. \n",
"\n",
"\n",
"Spin arg value could be :\n",
"\n",
"* \"True\"\n",
"\n",
"* \"False\"\n",
"\n",
"method arg value could be :\n",
"\n",
"* \"hse06\"\n",
"\n",
"* \"pbe\"\n",
"\n",
"* \"pbe0\"\n",
"\n",
"* \"pbesol\"\n",
"\n",
"* \"pw-lda\"\n",
"\n",
"* \"revpbe\"\n",
"\n",
"As per different combinations specific datafiles will be read and element features could be accessed. This can be done as follows :"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"dft.method(method = 'pbe', Spin = 'False')"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"-1.2418694571568608e-19"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dft.C.atomic_ea"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To view a dropdown list of properties accessible one can just press **Tab** after typing in dft.C."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Use **symbol** method from ```atomic_properties_dft module``` to acess property of interest of elements at once.\n",
"\n",
"Say for example we have a python list ```element = ['Sc','Ti', 'V', 'Cr']``` and we wish to get atomic number of these elements we can do the following"
"You can also get a python list of all feature names accessible from ```atomic_properties_dft``` module. For getting this one can use following command"
"``atomic_properties_pymat`` module contains several atomic features accessible from pymatgen\n",
"\n",
"Import this module using following code shown in next cell block"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"from atomicfeaturespackage.atomicproperties import atomic_properties_pymat as pymat"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"4300.0"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pymat.C.boiling_point"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To get a list of properties accessible one can just press **Tab** after typing in pymat.C.\n",
"\n",
"Use **symbol** method from ``atomic_properties_pymat`` module to acess property of interest of elements at once in similar manner as described for ``atomic_properties_dft`` module above.\n",
"\n",
"Similarly you can also get a python list of all feature names accessible from ```atomic_properties_pymat``` module. "
"Similarly remaining two modules ```atomic_properties_pymat``` and ```atomic_properties_magpie``` can be imported and atomic features can be accessed. Use the following commands for importing the modules respectively"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"from atomicfeaturespackage.atomicproperties import atomic_properties_lda2015 as lda\n",
"from atomicfeaturespackage.atomicproperties import atomic_properties_magpie as mp"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"One is referred to this documentation for further details on this package\n",
Unified package that contains atomic-features from various sources like PYMATGEN, MAGPIE, LDA2015 amd FHI_dft can be imported into Jupyter-notebook for performing various machine learning studies
In this demonstration I will show how one can use the package to access material features from different sources using this package
# Importing this package modules in Jupyter notebook
%% Cell type:code id: tags:
``` python
from atomicfeaturespackage.atomicproperties import periodictable
```
%% Cell type:markdown id: tags:
This module is a visualization tool that allows us to visualize atomic properites of all elements accross periodic table as a heatmap
%% Cell type:markdown id: tags:
After importing periodictable module one must call this heatmap method to get interactive heatmaps. One must supply Spin and method appropirate keywords agruments as per one's interest.
**Spin** arg value could be :
* "True"
* "False"
**method** arg value could be :
* "hse06"
* "pbe"
* "pbe0"
* "pbesol"
* "pw-lda"
* "revpbe"
* "magpie"
* "lda2015"
* "pymat"
**<font color='red'>Note</font>**: for **method** “magpie”/“lda2015”/“pymat” , **Spin** arg value has to be set to **"False"**
As per different combinations specific element features will be loaded in heatmap plots.
%% Cell type:markdown id: tags:
Below is an example line of code you need to run to visualize data calculated via the HSE06 functional and spinless settings.
After running the above line of code one gets a plot of complete periodic table of elements. From the dropdown menu, one can select which property one is interested to check and the table is updated automatically to show the corresponding heatmap.
Besides ```periodictable module``` this package has 4 other modules that consist to atomic features from sources corresponding to its name. And it can be imported according to ones need to atomic features.
I will breifly depict each of these module to access atomic feature and functions that are available with it.
```atomic_properties_dft``` module : This module contains several atomic features accessible from FHI-AIMS dft calculations
Import this module using following code shown in next cell block
%% Cell type:code id: tags:
``` python
from atomicfeaturespackage.atomicproperties import atomic_properties_dft as dft
```
%% Cell type:markdown id: tags:
After importing ``atomic_properties_dft`` module one must call **method** function to instantiate element objects. One must supply Spin and method appropirate keywords agruments as per one's interest.
Spin arg value could be :
* "True"
* "False"
method arg value could be :
* "hse06"
* "pbe"
* "pbe0"
* "pbesol"
* "pw-lda"
* "revpbe"
As per different combinations specific datafiles will be read and element features could be accessed. This can be done as follows :
%% Cell type:code id: tags:
``` python
dft.method(method = 'pbe', Spin = 'False')
```
%% Cell type:code id: tags:
``` python
dft.C.atomic_ea
```
%% Output
-1.2418694571568608e-19
%% Cell type:markdown id: tags:
To view a dropdown list of properties accessible one can just press **Tab** after typing in dft.C.
%% Cell type:markdown id: tags:
Use **symbol** method from ```atomic_properties_dft module``` to acess property of interest of elements at once.
Say for example we have a python list ```element = ['Sc','Ti', 'V', 'Cr']``` and we wish to get atomic number of these elements we can do the following
``atomic_properties_pymat`` module contains several atomic features accessible from pymatgen
Import this module using following code shown in next cell block
%% Cell type:code id: tags:
``` python
from atomicfeaturespackage.atomicproperties import atomic_properties_pymat as pymat
```
%% Cell type:code id: tags:
``` python
pymat.C.boiling_point
```
%% Output
4300.0
%% Cell type:markdown id: tags:
To get a list of properties accessible one can just press **Tab** after typing in pymat.C.
Use **symbol** method from ``atomic_properties_pymat`` module to acess property of interest of elements at once in similar manner as described for ``atomic_properties_dft`` module above.
Similarly you can also get a python list of all feature names accessible from ```atomic_properties_pymat``` module.
Similarly remaining two modules ```atomic_properties_pymat``` and ```atomic_properties_magpie``` can be imported and atomic features can be accessed. Use the following commands for importing the modules respectively
%% Cell type:code id: tags:
``` python
from atomicfeaturespackage.atomicproperties import atomic_properties_lda2015 as lda
from atomicfeaturespackage.atomicproperties import atomic_properties_magpie as mp
```
%% Cell type:markdown id: tags:
One is referred to this documentation for further details on this package