Skip to content

Object for data analysis using linear and non-linear Biplots obtained by SVD decomposition. This class implements a set of functions for data analysis, including scaling, dimensionality reduction, affine transformations, and biplots computation and display.

License

Notifications You must be signed in to change notification settings

UN-GCPDS/python-gcpds.localbiplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biplot_logo

UMAP-Based Local Biplot

Here, we introduce Local Biplot, a methodological framework tailored for discerning meaningful data patterns in non-stationary contexts for precision agriculture. Local Biplot relies on the well-known uniform manifold approximation and projection method, such as UMAP, and local affine transformations to codify non-stationary and non-linear data patterns while maintaining interpretability. This lets us find important clusters for transformation and projection within a single global axis pair. Hence, our framework encompasses variable and observational contributions within individual clusters. At the same time, we provide a relevance analysis strategy to help explain why those clusters exist, facilitating the understanding of data dynamics while favoring interpretability.

Please, if you use this code, cite this paper: Crop Water Status Analysis from Complex Agricultural Data Using UMAP-Based Local Biplot]

Requeriments

localbiplot requires Python >= 3.8 and internet access to download the libraries

Install from source code

!pip install -U git+https://github.com/Jectrianama/python-gcpds.localbiplot.git --quiet

Add the library in your code as follows:

import gcpds.localbiplot as lb

Execute the method

localbiplot = lb.LocalBiplot(affine_='rotation',redm='umap')
#global pca biplot
loading,rel_,score = localbiplot.biplot2D(Xdata,plot_=True,labels=ydata,loading_labels=Xdata.columns)
#local biplot
localbiplot.local_biplot2D(Xdata,y=ydata,plot_=True,loading_labels=Xdata.columns,  filename="synth_local_bip")

About

Object for data analysis using linear and non-linear Biplots obtained by SVD decomposition. This class implements a set of functions for data analysis, including scaling, dimensionality reduction, affine transformations, and biplots computation and display.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages