Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 1.86 KB

README.md

File metadata and controls

42 lines (23 loc) · 1.86 KB

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]

You can check this Example.

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")