From d52096df1f044c72f8f080487151fd554b2aa850 Mon Sep 17 00:00:00 2001 From: Ted Moore Date: Mon, 21 Mar 2022 18:13:13 +0000 Subject: [PATCH 1/3] PCA inverseTransformPoint --- doc/PCA.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/PCA.rst b/doc/PCA.rst index 42b00f8..4442a6f 100644 --- a/doc/PCA.rst +++ b/doc/PCA.rst @@ -51,4 +51,14 @@ :arg action: Run when done - Given a trained model, transform the data point in a |buffer| and write to an output buffer. + Given a trained model, transform the data point in ``sourceBuffer`` from the original dimensional space to ``numDimensions`` principal components and write into ``destBuffer``. + +:message inverseTransformPoint: + + :arg sourceBuffer: Input data + + :arg destBuffer: Output data + + :arg action: Run when done + + Given a trained model, transform the data point in ``sourceBuffer`` from being ``numDimensions`` principal components into the original dimensional space and write into ```destBuffer``. From 33c4d154d9f5352dfd098428042e380b512068e6 Mon Sep 17 00:00:00 2001 From: Ted Moore Date: Wed, 11 May 2022 21:37:07 +0100 Subject: [PATCH 2/3] added inverseTransform to PCA RST --- doc/PCA.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/PCA.rst b/doc/PCA.rst index 4442a6f..7e4310f 100644 --- a/doc/PCA.rst +++ b/doc/PCA.rst @@ -8,8 +8,6 @@ https://scikit-learn.org/stable/modules/decomposition.html#principal-component-analysis-pca - - :control numDimensions: The number of dimensions to reduce to @@ -32,6 +30,17 @@ :arg action: Run when done Given a trained model, apply the reduction to a source :fluid-obj:`DataSet` and write to a destination. Can be the same for both input and output (in-place). Returns the fraction of accounted variance, aka the fidelity of the new representation: a value near 1.0 means a higher fidelity to the original. + + + :message inverseTransform: + + :arg sourceDataSet: Source data, or the DataSet name + + :arg destDataSet: Destination data, or the DataSet name + + :arg action: Run when done + + Given a trained model, invert a source :fluid-obj:`DataSet` containing dimensions that are principal components to a destination :fluid-obj:`DataSet` with the dimensionality of the data that was used to ``fit``. :fluid-obj:`DataSet` can be the same for both input and output (the operation will be performed in-place). :message fitTransform: From b5cbc13394cf932958ab64fffef36947b12b0bc5 Mon Sep 17 00:00:00 2001 From: Ted Moore Date: Wed, 11 May 2022 22:26:58 +0100 Subject: [PATCH 3/3] =?UTF-8?q?off=20by=20one=20white=20space=20?= =?UTF-8?q?=F0=9F=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/PCA.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/PCA.rst b/doc/PCA.rst index 7e4310f..0c7a079 100644 --- a/doc/PCA.rst +++ b/doc/PCA.rst @@ -32,15 +32,15 @@ Given a trained model, apply the reduction to a source :fluid-obj:`DataSet` and write to a destination. Can be the same for both input and output (in-place). Returns the fraction of accounted variance, aka the fidelity of the new representation: a value near 1.0 means a higher fidelity to the original. - :message inverseTransform: +:message inverseTransform: - :arg sourceDataSet: Source data, or the DataSet name + :arg sourceDataSet: Source data, or the DataSet name - :arg destDataSet: Destination data, or the DataSet name + :arg destDataSet: Destination data, or the DataSet name - :arg action: Run when done + :arg action: Run when done - Given a trained model, invert a source :fluid-obj:`DataSet` containing dimensions that are principal components to a destination :fluid-obj:`DataSet` with the dimensionality of the data that was used to ``fit``. :fluid-obj:`DataSet` can be the same for both input and output (the operation will be performed in-place). + Given a trained model, invert a source :fluid-obj:`DataSet` containing dimensions that are principal components to a destination :fluid-obj:`DataSet` with the dimensionality of the data that was used to ``fit``. :fluid-obj:`DataSet` can be the same for both input and output (the operation will be performed in-place). :message fitTransform: