You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This short tutorial introduces the use of the Lasso Homotopy (ASP) and Orthogonal Matching Pursuit (OMP) solvers.
4
+
# These are sparse solvers that compute the entire regularization path,
5
+
# providing insight into how the support evolves as the regularization parameter changes.
6
+
# For more details on the algorithms and their implementation,
7
+
# see [ActiveSetPursuit.jl](https://github.com/MPF-Optimization-Laboratory/ActiveSetPursuit.jl)
8
+
9
+
# We start by importing `ACEpotentials` (and possibly other required libraries)
10
+
using ACEpotentials
11
+
using Random, Plots
12
+
using ACEpotentials.Models: fast_evaluator
13
+
using SparseArrays
14
+
using Plots
15
+
16
+
17
+
# Since sparse solvers automatically select the most relevant features, we usually begin with a model that has a large basis.
18
+
# Here, for demonstration purposes, we use a relatively small model.
19
+
20
+
model =ace1_model(elements = [:Si], order =3, totaldegree =12)
21
+
P =algebraic_smoothness_prior(model; p =4)
22
+
23
+
# Next, we load a dataset. We split the dataset into training, validation, and test sets.
24
+
# The training set is used to compute the solution path, the validation set is used to select the best solution, and the test set is used to evaluate the final model.
# To demonstrate the use of the sparse solvers, we will generate models with different numbers of active parameters.
62
+
# We can select the final model, a model with 500 active parameters, and a model with a validation error within 1.3 times the minimum validation error.
63
+
# We can use the `ACEfit.asp_select` function to select the desired models from the result.
Copy file name to clipboardExpand all lines: docs/src/tutorials/index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,6 @@
6
6
*[Smoothness Priors](../literate_tutorials/smoothness_priors.md) : brief introduction to smoothness priors
7
7
*[Basic Dataset Analysis](../literate_tutorials/dataset_analysis.md) : basic techniques to visualize training datasets and correlate such observations to the choice of geometric priors
8
8
*[Descriptors](../literate_tutorials/descriptor.md) : `ACEpotentials` can be used as descriptors of atomic environments or structures, which is described here.
9
+
*[Sparse Solvers](../literate_tutorials/asp.md) : basic tutorial on using the `ASP` and `OMP` solvers.
0 commit comments