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

Method transform

JSAT/src/jsat/datatransform/FastICA.java:409–422  ·  view source on GitHub ↗
(DataPoint dp)

Source from the content-addressed store, hash-verified

407 }
408
409 @Override
410 public DataPoint transform(DataPoint dp)
411 {
412 Vec x;
413 if (zeroMean != null)
414 x = zeroMean.transform(dp).getNumericalValues();
415 else
416 x = dp.getNumericalValues();
417
418 Vec newX = x.multiply(unmixing);
419
420 //we know that zeroMean wont impact cat values or weight
421 return new DataPoint(newX, dp.getCategoricalValues(), dp.getCategoricalData(), dp.getWeight());
422 }
423
424 @Override
425 public DataPoint inverse(DataPoint dp)

Callers

nothing calls this directly

Calls 6

multiplyMethod · 0.95
getNumericalValuesMethod · 0.80
getCategoricalValuesMethod · 0.80
getCategoricalDataMethod · 0.80
transformMethod · 0.65
getWeightMethod · 0.45

Tested by

no test coverage detected