Contenuto principale

Riduzione della dimensionalità ed estrazione delle feature

PCA, analisi fattoriale, selezione delle feature, estrazione delle feature e altro ancora

Le tecniche di trasformazione delle feature riducono la dimensionalità dei dati trasformandoli in nuove feature. Le tecniche di selezione delle feature sono preferibili quando non è possibile trasformare le variabili, ad esempio quando sono presenti variabili categoriali nei dati. Per una tecnica di selezione delle feature particolarmente indicata per l'adattamento con il metodo dei minimi quadrati, vedere Regressione stepwise.

Attività di Live Editor

Reduce DimensionalityReduce dimensionality using Principal Component Analysis (PCA) in Live Editor (Da R2022b)

Funzioni

espandi tutto

fscchi2Univariate feature ranking for classification using chi-square tests
fscmrmrRank features for classification using minimum redundancy maximum relevance (MRMR) algorithm
fscncaFeature selection using neighborhood component analysis for classification
fsrftestUnivariate feature ranking for regression using F-tests
fsrmrmrRank features for regression using minimum redundancy maximum relevance (MRMR) algorithm (Da R2022a)
fsrncaFeature selection using neighborhood component analysis for regression
fsulaplacianRank features for unsupervised learning using Laplacian scores
partialDependenceCompute partial dependence
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
oobPermutedPredictorImportanceOut-of-bag predictor importance estimates for random forest of classification trees by permutation
oobPermutedPredictorImportanceOut-of-bag predictor importance estimates for random forest of regression trees by permutation
predictorImportanceEstimates of predictor importance for classification tree
predictorImportanceEstimates of predictor importance for classification ensemble of decision trees
predictorImportanceEstimates of predictor importance for regression tree
predictorImportanceEstimates of predictor importance for regression ensemble of decision trees
relieffRank importance of predictors using ReliefF or RReliefF algorithm
sequentialfsSequential feature selection using custom criterion
stepwiselmPerform stepwise regression
stepwiseglmCreate generalized linear regression model by stepwise regression
ricaFeature extraction by using reconstruction ICA
sparsefiltFeature extraction by using sparse filtering
transformTransform predictors into extracted features
tsnet-Distributed Stochastic Neighbor Embedding
umapUniform Manifold Approximation and Projection (UMAP) for dimension reduction (Da R2026a)
barttestBartlett’s test
canoncorrCanonical correlation
pcaPrincipal component analysis of raw data
pcacovPrincipal component analysis on covariance matrix
pcaresResiduals from principal component analysis
ppcaProbabilistic principal component analysis
incrementalPCAIncremental principal component analysis (Da R2024a)
fitFit principal component analysis model to streaming data (Da R2024a)
transformTransform data into principal component scores (Da R2024a)
resetReset incremental principal component analysis model (Da R2024a)
factoranFactor analysis
rotatefactorsRotate factor loadings
nnmfNonnegative matrix factorization
cmdscaleClassical multidimensional scaling
mahalMahalanobis distance to reference samples
mdscaleNonclassical multidimensional scaling
pdistPairwise distance between pairs of observations
squareformFormat distance matrix
procrustesProcrustes analysis

Oggetti

espandi tutto

FeatureSelectionNCAClassificationFeature selection for classification using neighborhood component analysis (NCA)
FeatureSelectionNCARegressionFeature selection for regression using neighborhood component analysis (NCA)
ReconstructionICAFeature extraction by reconstruction ICA
SparseFilteringFeature extraction by sparse filtering

Argomenti

Selezione delle feature

Estrazione delle feature

Visualizzazione multidimensionale con t-SNE

  • t-SNE
    t-SNE is a method for visualizing high-dimensional data by nonlinear reduction to two or three dimensions, while preserving some features of the original data.
  • Visualize High-Dimensional Data Using t-SNE
    This example shows how t-SNE creates a useful low-dimensional embedding of high-dimensional data.
  • Modify t-SNE Settings
    This example shows the effects of various tsne settings.
  • t-SNE Output Function
    Output function description and example for t-SNE.

PCA e correlazione canonica

Analisi fattoriale

  • Factor Analysis
    Factor analysis is a way to fit a model to multivariate data to estimate interdependence of measured variables on a smaller number of unobserved (latent) factors.
  • Analyze Stock Prices Using Factor Analysis
    Use factor analysis to investigate whether companies within the same sector experience similar week-to-week changes in stock prices.
  • Perform Factor Analysis on Exam Grades
    This example shows how to perform factor analysis using Statistics and Machine Learning Toolbox™.

Fattorizzazione di matrici non negative

Scalamento multidimensionale

Analisi di Procuste

Esempi in primo piano