MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / setErrorTolerance

Method setErrorTolerance

JSAT/src/jsat/regression/KernelRLS.java:104–109  ·  view source on GitHub ↗

Sets the tolerance for errors in approximating a data point by projecting it onto the set of basis vectors. In general: as the tolerance increases the sparsity of the model increases but the accuracy may go down. Values in the range 10 x ∀ x ∈ {-1, -2, -3, -4} often work w

(double v)

Source from the content-addressed store, hash-verified

102 * @param v the approximation tolerance
103 */
104 public void setErrorTolerance(double v)
105 {
106 if(Double.isNaN(v) || Double.isInfinite(v) || v <= 0)
107 throw new IllegalArgumentException("The error tolerance must be a positive constant, not " + v);
108 this.errorTolerance = v;
109 }
110
111 /**
112 * Returns the projection approximation tolerance

Callers 1

KernelRLSMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected