Skip to content

DataINCITE/FeatureSpaceDiagram

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 13, 2022 08:12
December 7, 2022 12:27
December 12, 2022 15:09
December 7, 2022 04:40

THIS FORK NO LONGER MAINTAINED; INSTEAD SEE: https://github.com/TheRensselaerIDEA/FeatureSpaceDiagrams

FeatureSpaceDiagram

Generating feature space diagrams in R

This is a first effort to implement "feature space diagrams" in R, inspired by: https://towardsdatascience.com/escape-the-correlation-matrix-into-feature-space-4d71c51f25e5

Workflow

Our workflow is generally as described in the original post:

  • Generate the correlation matrix
  • Create a distance matrix from the correlation matrix
    • Original approach: Take the absolute value of correlation matrix and subtract each value from 1.
    • Revised approach: use R's dist() function to provide different approaches to finding distance
  • Use PCA to reduce our NxN distance matrix to Nx2.
  • Plot each feature’s location using the first two principal components.
  • Use Feature Agglomeration (hierarchical clusterimg) to generate feature clusters.
  • Color each feature by its cluster.
  • Draw lines to represent relationships based on some threshold

Acknowledgements

Many thanks to Win Cowger and the rest of the #Rstats Fediverse community for the inspiration!

image

About

Generating feature space diagrams in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages