diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 44588f5..82bf97a 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-11T23:12:40","documenter_version":"1.7.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-11T23:23:37","documenter_version":"1.7.0"}} \ No newline at end of file diff --git a/dev/index.html b/dev/index.html index 4e9bd3b..1aea551 100644 --- a/dev/index.html +++ b/dev/index.html @@ -9,4 +9,4 @@ max_iter = 300, tol = 1e-3, threshold_lambda = 10000 -)

After this you can use the MLJ solver like any other solver.

Index

ACEfit.AbstractDataType

ACEfit users should define a type of the form: UserData <: AbstractData

Several functions acting on such a type should be implemented: countobservations featurematrix targetvector weightvector

source
ACEfit.BLRType

struct BLR : Bayesian linear regression

Refer to bayesianlinear.jl (for now) for kwarg definitions.
source
ACEfit.LSQRType

LSQR

source
ACEfit.QRType

struct QR : linear least squares solver, using standard QR factorisation; this solver computes

\[ θ = \arg\min \| A \theta - y \|^2 + \lambda \| P \theta \|^2\]

Constructor

ACEfit.QR(; lambda = 0.0, P = nothing)

where

  • λ : regularisation parameter
  • P : right-preconditioner / tychonov operator
source
ACEfit.RRQRType

struct RRQR : linear least squares solver, using rank-revealing QR factorisation, which can sometimes be more robust / faster than the standard regularised QR factorisation. This solver first transforms the parameters $\theta_P = P \theta$, then solves

\[ θ = \arg\min \| A P^{-1} \theta_P - y \|^2\]

where the truncation tolerance is given by the rtol parameter, and finally reverses the transformation. This uses the pqrfact of LowRankApprox.jl; For further details see the documentation of LowRankApprox.jl.

Crucially, note that this algorithm is not deterministic; the results can change slightly between applications.

Constructor

ACEfit.RRQR(; rtol = 1e-15, P = I)

where

  • rtol : truncation tolerance
  • P : right-preconditioner / tychonov operator
source
ACEfit.SKLEARN_ARDType

SKLEARN_ARD

source
ACEfit.SKLEARN_BRRType

SKLEARN_BRR

source
ACEfit.TruncatedSVDType

struct TruncatedSVD : linear least squares solver for approximately solving

\[ θ = \arg\min \| A \theta - y \|^2 \]

  • transform $\tilde\theta = P \theta$
  • perform svd on $A P^{-1}$
  • truncate svd at rtol, i.e. keep only the components for which $\sigma_i \geq {\rm rtol} \max \sigma_i$
  • Compute $\tilde\theta$ from via pseudo-inverse
  • Reverse transformation $\theta = P^{-1} \tilde\theta$

Constructor

ACEfit.TruncatedSVD(; rtol = 1e-9, P = I)

where

  • rtol : relative tolerance
  • P : right-preconditioner / tychonov operator
source
ACEfit.assembleMethod

Assemble feature matrix and target vector for given data and basis.

source
ACEfit.assemble_weightsMethod

Assemble full weight vector for vector of data elements.

source
ACEfit.basis_sizeMethod
basis_size(model)

Return the length of the basis, assuming that model is a linear model, or when interpreted as a linear model. The returned integer must match the size of the feature matrix that will be assembled for the given model.

It defaults to Base.length but can be overloaded if needed.

source
ACEfit.count_observationsMethod

Returns the corresponding number of rows in the design matrix.

source
ACEfit.feature_matrixMethod

Returns the corresponding design matrix (A) entries.

source
ACEfit.target_vectorMethod

Returns the corresponding target vector (Y) entries.

source
ACEfit.weight_vectorMethod

Returns the corresponding weight vector (W) entries.

source
+)

After this you can use the MLJ solver like any other solver.

Index

ACEfit.AbstractDataType

ACEfit users should define a type of the form: UserData <: AbstractData

Several functions acting on such a type should be implemented: countobservations featurematrix targetvector weightvector

source
ACEfit.BLRType

struct BLR : Bayesian linear regression

Refer to bayesianlinear.jl (for now) for kwarg definitions.
source
ACEfit.LSQRType

LSQR

source
ACEfit.QRType

struct QR : linear least squares solver, using standard QR factorisation; this solver computes

\[ θ = \arg\min \| A \theta - y \|^2 + \lambda \| P \theta \|^2\]

Constructor

ACEfit.QR(; lambda = 0.0, P = nothing)

where

  • λ : regularisation parameter
  • P : right-preconditioner / tychonov operator
source
ACEfit.RRQRType

struct RRQR : linear least squares solver, using rank-revealing QR factorisation, which can sometimes be more robust / faster than the standard regularised QR factorisation. This solver first transforms the parameters $\theta_P = P \theta$, then solves

\[ θ = \arg\min \| A P^{-1} \theta_P - y \|^2\]

where the truncation tolerance is given by the rtol parameter, and finally reverses the transformation. This uses the pqrfact of LowRankApprox.jl; For further details see the documentation of LowRankApprox.jl.

Crucially, note that this algorithm is not deterministic; the results can change slightly between applications.

Constructor

ACEfit.RRQR(; rtol = 1e-15, P = I)

where

  • rtol : truncation tolerance
  • P : right-preconditioner / tychonov operator
source
ACEfit.SKLEARN_ARDType

SKLEARN_ARD

source
ACEfit.SKLEARN_BRRType

SKLEARN_BRR

source
ACEfit.TruncatedSVDType

struct TruncatedSVD : linear least squares solver for approximately solving

\[ θ = \arg\min \| A \theta - y \|^2 \]

  • transform $\tilde\theta = P \theta$
  • perform svd on $A P^{-1}$
  • truncate svd at rtol, i.e. keep only the components for which $\sigma_i \geq {\rm rtol} \max \sigma_i$
  • Compute $\tilde\theta$ from via pseudo-inverse
  • Reverse transformation $\theta = P^{-1} \tilde\theta$

Constructor

ACEfit.TruncatedSVD(; rtol = 1e-9, P = I)

where

  • rtol : relative tolerance
  • P : right-preconditioner / tychonov operator
source
ACEfit.assembleMethod

Assemble feature matrix and target vector for given data and basis.

source
ACEfit.assemble_weightsMethod

Assemble full weight vector for vector of data elements.

source
ACEfit.basis_sizeMethod
basis_size(model)

Return the length of the basis, assuming that model is a linear model, or when interpreted as a linear model. The returned integer must match the size of the feature matrix that will be assembled for the given model.

It defaults to Base.length but can be overloaded if needed.

source
ACEfit.count_observationsMethod

Returns the corresponding number of rows in the design matrix.

source
ACEfit.feature_matrixMethod

Returns the corresponding design matrix (A) entries.

source
ACEfit.target_vectorMethod

Returns the corresponding target vector (Y) entries.

source
ACEfit.weight_vectorMethod

Returns the corresponding weight vector (W) entries.

source
diff --git a/dev/objects.inv b/dev/objects.inv index 05d53cc..628e6cb 100644 Binary files a/dev/objects.inv and b/dev/objects.inv differ