Git Product home page Git Product logo

jjwxc_book_rank's Introduction

jjwxc_book_rank

各种方式计算绿晋江 (http://www.jjwxc.net) 小说排名

主成分分析 pca

  • 原始数据:book_info.csv

  • 代码:book_rank_pca.r

  • 小说的PCA评分总排名(TOP 9000): book_rank_pca_top_9k.csv

  • 小说的PCA评分总排名:book_rank_pca_v.csv

计算过程:

取原始数据中的四列: 积分rank,收藏数collect,评论数comment,单章最大点击量 max_chapter_click

调用pca计算,根据前两个主成分计算,方差贡献达90%

> pca
Standard deviations:
[1] 1.7848343 0.6658461 0.5284915 0.3028405

Rotation:
                        PC1        PC2        PC3        PC4
rank              0.5163638 -0.4667678  0.1895280 -0.6925138
collect           0.5036702 -0.3873323 -0.6137144  0.4686625
comment           0.5116272  0.1379844  0.6992417  0.4798531
max_chapter_click 0.4668216  0.7829826 -0.3138388 -0.2655580

> summary(pca)
Importance of components:
                          PC1    PC2     PC3     PC4
Standard deviation     1.7848 0.6658 0.52849 0.30284
Proportion of Variance 0.7964 0.1108 0.06983 0.02293
Cumulative Proportion  0.7964 0.9073 0.97707 1.00000

jjwxc_book_rank's People

Contributors

abbypan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.