码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 降维(Dimensionality Reduction)


    降维(Dimensionality Reduction)

    1. The Curse of Dimensionality

    • The main motivations for dimensionality reduction
      1. To speed up a subsequent training algorithm (in some cases it may even remove noise and redundant features, making the training algorithm perform better)
      2. To visualize the data and gain insights on the most important features
      3. Simply to save space (compression)
    • The main drawbacks
      1. Some information is lost, possibly degrading the performance of subse‐
      2. quent training algorithms
      3. It can be computationally intensive
      4. It adds some complexity to your Machine Learning pipelines Transformed features are often hard to interpret

    2. Main Approaches for Dimensionality Reduction

    • Projection 投影
      Many features are almost constant,highly correlated,将高纬数据投影到低纬度数据
    • Manifold Learning
      d-dimensional的数据在n-dimensional的空间卷起来,然后可以压缩回d-dimensional,假设高纬的数据是由低纬的数据变换来的
      if you reduce the dimensionality of your training set before training a model, it will definitely speed up training, but it may not always lead to a better or simpler solution; it all depends on the dataset

    3. PCA

    • 主要思想
      First it identifies the hyperplane that lies closest to the data 找到最优的超平面, preserves the maximum amount of Variance,then it projects the data onto it 将数据投影上去
    • Principal Components
      The unit vector that defines the ith axis is called the ith principal component (PC) 主成分是投影平面的单位坐标轴向量,n维平面有n个主成分向量,主成分的方向不重要,重要的是定义的平面
    # Singular Value Decomposition (SVD)求解矩阵的主成分向量
    X_centered = X - X.mean(axis=0) #主成分要求数据以原点为中心
    U, s, V = np.linalg.svd(X_centered)
    c1 = V.T[:, 0]
    c2 = V.T[:, 1]
    W2 = V.T[:, :2]
    X2D = X_centered.dot(W2)
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    V T = ( ∣ ∣ ∣ c 1 c 2 ⋯ c n ∣ ∣ ∣ ) V^T=

    (|||c1c2⋯cn|||)" role="presentation">⎛⎝⎜|c1||c2|⋯|cn|⎞⎠⎟(|||c1c2⋯cn|||)
    VT=⎝⎛​∣c1​∣​∣c2​∣​⋯​∣cn​∣​⎠⎞​
    X d − p r o j = X ⋅ W d X_{d-proj}=X \cdot W_d Xd−proj​

  • 相关阅读:
    Flink往Starrocks写数据报错:too many filtered rows
    node_modules/node-sass npm ERR! command failed解决方法
    使用ffmpeg解码音频sdl(push)播放
    R6G azide, 5-isomer具有良好的水溶性,2135330-71-9
    uniapp开发短视频系统仿哔哩哔哩
    Docker 容器监控之CAdvisor+InfluxDB+Granfana
    Redis实战 - 02 Redis 保存短信验证码实现用户注册
    UTONMOS带您体验数字人 感受元宇宙
    碰撞检测与相交测试-unity碰撞检测和相交测试的实现原理
    算法训练Day49 | Leetcode121. 买卖股票的最佳时机(只能买卖一次);LeetCode122. 买卖股票的最佳时机II(可以买卖多次)
  • 原文地址:https://blog.csdn.net/huanghaifeng201213/article/details/128086451
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号