dotnet / dotnet/machinelearning

Need a supported way to get Eigenvectors from PrincipalComponentAnalysisTransformer

Open
#6,812 1 comment 1 reaction 0 assignees View on GitHub
area-Transforms enhancement untriaged
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

I am wanting to evaluate the Eigenvectors when performing Principal Component Analysis. Unfortunately, these appear to locked away inside a private field of PrincipalComponentAnalysisTransformer.

Using reflection, I can get the private _transformInfos field from my fitted instance of PrincipalComponentAnalysisTransformer. This provides me with an array of the private internal class TransformInfo. From here, I can use reflection to get the first array entry's Eigenvectors field which will return my float[][] array.

Would it be possible to add a "GetEigenvectors" method to PrincipalComponentAnalysisTransformer that returns this float[][] data?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.