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

Method setUp

JSAT/src/jsat/regression/KernelRLS.java:182–199  ·  view source on GitHub ↗
(CategoricalData[] categoricalAttributes, int numericAttributes)

Source from the content-addressed store, hash-verified

180 }
181
182 @Override
183 public void setUp(CategoricalData[] categoricalAttributes, int numericAttributes)
184 {
185 vecs = new ArrayList<Vec>();
186 if(k.supportsAcceleration())
187 kernelAccel = new DoubleList();
188 else
189 kernelAccel = null;
190
191 K = null;
192 InvK = null;
193 P = null;
194
195 KExpanded = new DenseMatrix(100, 100);
196 InvKExpanded = new DenseMatrix(100, 100);
197 PExpanded = new DenseMatrix(100, 100);
198 alphaExpanded = new double[100];
199 }
200
201 @Override
202 public void update(DataPoint dataPoint, final double y_t)

Callers 1

trainMethod · 0.95

Calls 1

supportsAccelerationMethod · 0.65

Tested by

no test coverage detected