Skip to content

Commit 315d070

Browse files
author
Chi Chen
committed
Update docs
1 parent 2764d8b commit 315d070

29 files changed

+3506
-157
lines changed

api-docs-source/index.rst

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,43 @@ To run the potential energy surface (pes), lammps installation is required you c
5353

5454
The SNAP potential comes with this lammps installation. The GAP package for GAP and MLIP package for MTP are needed to run the corresponding potentials. For fitting NNP potential, the `n2p2` package is needed.
5555

56+
57+
Install all the libraries from requirement.txt file::
58+
pip install -r requirements.txt
59+
(If doesn't works provide the path of requirement.txt file)
60+
61+
For all the requirements above::
62+
pip install -r requirements-ci.txt
63+
pip install -r requirements-optional.txt
64+
pip install -r requirements-tf.txt
65+
pip install -r requirements.txt
66+
67+
(If doesn't works provide the path of requirements.txt file)
68+
5669
Usage
5770
-----
5871

59-
Many Jupyter notebooks are available on usage. See `notebooks </notebooks>`_.
72+
Many Jupyter notebooks are available on usage. See `notebooks </notebooks>`_. We also have established a tool and a tutorial lecture at nanoHUB `https://nanohub.org/resources/maml <https://nanohub.org/resources/maml>`_.
6073

6174
API documentation
6275
-----------------
6376

6477
See `API docs <https://guide.materialsvirtuallab.org/maml/modules.html>`_.
78+
79+
Machine learning (ML) is the study of computer algorithms that improve automatically through experience.[1][2] It is seen as a subset of artificial intelligence. Machine learning algorithms build a mathematical model based on sample data, known as "training data", in order to make predictions or decisions without being explicitly programmed to do so.[3] Machine learning algorithms are used in a wide variety of applications, such as email filtering and computer vision, where it is difficult or infeasible to develop conventional algorithms to perform the needed tasks.
80+
81+
Machine learning is closely related to computational statistics, which focuses on making predictions using computers. The study of mathematical optimization delivers methods, theory and application domains to the field of machine learning. Data mining is a related field of study, focusing on exploratory data analysis through unsupervised learning.[5][6] In its application across business problems, machine learning is also referred to as predictive analytics.
82+
83+
Citing
84+
------
85+
::
86+
87+
@misc{maml,
88+
author = {Chen, Chi and Zuo, Yunxing and Ye, Weike and Ong, Shyue Ping},
89+
title = {{Maml - materials machine learning package}},
90+
year = {2020},
91+
publisher = {GitHub},
92+
journal = {GitHub repository},
93+
howpublished = {\url{https://github.com/materialsvirtuallab/maml}},
94+
}
95+

docs/_sources/index.rst.txt

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,43 @@ To run the potential energy surface (pes), lammps installation is required you c
5353

5454
The SNAP potential comes with this lammps installation. The GAP package for GAP and MLIP package for MTP are needed to run the corresponding potentials. For fitting NNP potential, the `n2p2` package is needed.
5555

56+
57+
Install all the libraries from requirement.txt file::
58+
pip install -r requirements.txt
59+
(If doesn't works provide the path of requirement.txt file)
60+
61+
For all the requirements above::
62+
pip install -r requirements-ci.txt
63+
pip install -r requirements-optional.txt
64+
pip install -r requirements-tf.txt
65+
pip install -r requirements.txt
66+
67+
(If doesn't works provide the path of requirements.txt file)
68+
5669
Usage
5770
-----
5871

59-
Many Jupyter notebooks are available on usage. See `notebooks </notebooks>`_.
72+
Many Jupyter notebooks are available on usage. See `notebooks </notebooks>`_. We also have established a tool and a tutorial lecture at nanoHUB `https://nanohub.org/resources/maml <https://nanohub.org/resources/maml>`_.
6073

6174
API documentation
6275
-----------------
6376

6477
See `API docs <https://guide.materialsvirtuallab.org/maml/modules.html>`_.
78+
79+
Machine learning (ML) is the study of computer algorithms that improve automatically through experience.[1][2] It is seen as a subset of artificial intelligence. Machine learning algorithms build a mathematical model based on sample data, known as "training data", in order to make predictions or decisions without being explicitly programmed to do so.[3] Machine learning algorithms are used in a wide variety of applications, such as email filtering and computer vision, where it is difficult or infeasible to develop conventional algorithms to perform the needed tasks.
80+
81+
Machine learning is closely related to computational statistics, which focuses on making predictions using computers. The study of mathematical optimization delivers methods, theory and application domains to the field of machine learning. Data mining is a related field of study, focusing on exploratory data analysis through unsupervised learning.[5][6] In its application across business problems, machine learning is also referred to as predictive analytics.
82+
83+
Citing
84+
------
85+
::
86+
87+
@misc{maml,
88+
author = {Chen, Chi and Zuo, Yunxing and Ye, Weike and Ong, Shyue Ping},
89+
title = {{Maml - materials machine learning package}},
90+
year = {2020},
91+
publisher = {GitHub},
92+
journal = {GitHub repository},
93+
howpublished = {\url{https://github.com/materialsvirtuallab/maml}},
94+
}
95+

docs/_static/basic.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -764,6 +764,7 @@ div.code-block-caption code {
764764
}
765765

766766
table.highlighttable td.linenos,
767+
span.linenos,
767768
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
768769
user-select: none;
769770
}

docs/_static/doctools.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for all documentation.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -285,9 +285,10 @@ var Documentation = {
285285
initOnKeyListeners: function() {
286286
$(document).keydown(function(event) {
287287
var activeElementType = document.activeElement.tagName;
288-
// don't navigate when in search box or textarea
288+
// don't navigate when in search box, textarea, dropdown or button
289289
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
290-
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
290+
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
291+
&& !event.shiftKey) {
291292
switch (event.keyCode) {
292293
case 37: // left
293294
var prevHref = $('link[rel="prev"]').prop('href');

docs/_static/language_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This script contains the language-specific data used by searchtools.js,
66
* namely the list of stopwords, stemmer, scorer and splitter.
77
*
8-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
8+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
99
* :license: BSD, see LICENSE for details.
1010
*
1111
*/

docs/_static/searchtools.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for the full-text search.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -59,10 +59,10 @@ var Search = {
5959
_pulse_status : -1,
6060

6161
htmlToText : function(htmlString) {
62-
var htmlElement = document.createElement('span');
63-
htmlElement.innerHTML = htmlString;
64-
$(htmlElement).find('.headerlink').remove();
65-
docContent = $(htmlElement).find('[role=main]')[0];
62+
var virtualDocument = document.implementation.createHTMLDocument('virtual');
63+
var htmlElement = $(htmlString, virtualDocument);
64+
htmlElement.find('.headerlink').remove();
65+
docContent = htmlElement.find('[role=main]')[0];
6666
if(docContent === undefined) {
6767
console.warn("Content block not found. Sphinx search tries to obtain it " +
6868
"via '[role=main]'. Could you check your theme or template.");

0 commit comments

Comments
 (0)