美文网首页
PCA&SVD的基本原理

PCA&SVD的基本原理

作者: 斑马上树 | 来源:发表于2025-10-29 18:19 被阅读0次

一、基本原理

降维,PCA更多的发现特征间的线性关系,t-SNE主打非线性降维。

Dimensionality reduction we normally use it to visualize our data and to find hidden informationwe don't normally see. Also, it is use for optimizing of course this is under the assumption thatwhen implementing dimensionality reduction to your dataset it is representative of the actualdataset. You can find this out through the explained variance.

二、python实现

sklearn版本

from sklearn.decomposition import PCA

data = np.random.randn(10,4)

pca = PCA()

pca.fit(data)  

print (pca.components_)

print (pca.explained_variance_ratio_) 

# 对新数据进行pca主成分提取

pca = PCA(3)

pca.fit(data)

lowd = pca.transform(data)  

pca.inverse_transform(lowd)

附,参考资料:

1、sklearn文档,4.3. 预处理数据,https://www.studyai.cn/modules/preprocessing.html

相关文章

  • 2018-08-26日更

    基本原理任何科学都是包含基本原理的知识组成的。逻辑学的基本原理和人类理性的基本原理是一致的。 同一律 表述:事物只...

  • 逻辑学的基本原理

    01 基本原理 任何科学都是由包含基本原理的知识组成的。 任何科学的基本原理都是这门科学赖以...

  • 初识jQuery

    初识jQuery[jQuery基本原理](# jquery基本原理)[jQuery和JavaScript的区别](...

  • GAN

    基本原理 GAN(Generative Adversarial Networks) 的基本原理其实非常简单,这里以...

  • Android DLNA投屏-基于CyberGarage开发投屏

    在上一篇博客《Android DLNA投屏-基本原理》中,讲到了DLNA的一些基本原理。了解这些基本原理,对开发是...

  • 《简单的逻辑》读书笔记(二)

    逻辑学的基本原理 逻辑是让人信奉真相的技术 一、 基本原理 基本原理:反映绝对基础的事实,是人类意识活动的首要基础...

  • Hook机制学习(四) -插件加载机制

    weishu_博客 一:Classloader加载的基本原理 基本原理:系统通过ClassLoader加载了需要的...

  • Spring Security

    基本原理 Spring Security 基本原理(如下图): 认证模块(绿色): 账户密码 /login.htm...

  • 93/逻辑学的基本原理

    第二章 逻辑学的基本原理 1. 基本原理 任何科学都是有包含基本原理的知识组成的。 逻辑学,作为一门科学同样有它的...

  • ota 原理流程

    本文主要介绍基本原理,源码,制作ota 1 ota 基本原理 OTA(Over-the-Air Technolog...

网友评论

      本文标题:PCA&SVD的基本原理

      本文链接:https://www.haomeiwen.com/subject/winymktx.html