Coder Social home page Coder Social logo

chengjun / mybook Goto Github PK

View Code? Open in Web Editor NEW
82.0 4.0 23.0 550.6 MB

Lectures on Computational Communication

Home Page: https://chengjun.github.io/mybook/

License: GNU General Public License v3.0

Jupyter Notebook 82.75% HTML 16.37% CSS 0.01% JavaScript 0.02% Python 0.21% Rich Text Format 0.61% TeX 0.03% Shell 0.01% Common Lisp 0.01% Makefile 0.01% Batchfile 0.01% R 0.01% Perl 0.01%
computational-communication computational-social-science jupyter-notebook python

mybook's Introduction

《计算传播学》讲义

Elements of Computational Communication

logo

王成军

在线浏览链接见:https://chengjunwang.com/mybook/

起源

本书起源于王成军在2016年开始为复旦大学开设的《计算新闻传播学》新媒体硕士课程,最初的课程框架由香港城市大学祝建华老师、复旦大学周葆华两位老师和王成军三个人商定,旨在为新闻传播学院的学生提供关于计算传播学应用的基本架构,内容注重计算思维的训练和实战应用,体现了实用性和案例化教学的特点。按照数据分析的流程分为数据收集、数据清洗、统计分析、机器学习(神经网络)、文本挖掘、推荐系统、网络科学、可视化等多个模块。其后,王成军在南京大学开设名为《大数据挖掘与分析》课程,基本上遵循相同的框架。

Jupyter Book

本课程遵循可计算化的思路,采用Python作为编程工具,所有课程内容,包括文字、图片、代码等,均通过Jupyter Notebook展示。为更好地方便教学、交流以及更新课程内容,特将课程相关的Jupyter notebook通过Jupyter Book整理为在线图书的形式。笔者非常感谢Jupyter项目:一方面,如果没有Jupyter Notebook就很难有相关的课程;另一方面,如果没有Jupyter Book项目的成熟,将课程内容整理为在线电子图书也是一个巨大的工程。

需要声明的是,本在线书籍中不少应用内容来源于多本其它重要书籍,并非笔者独创。

因本书内容驳杂,而个人能力所限,难免存在诸多谬误;对于其中涉及的错误,笔者皆愿意承担。

相关课程

mybook's People

Contributors

chengjun avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mybook's Issues

VIF: variance_inflation_factor

from statsmodels.stats.outliers_influence import variance_inflation_factor
variables = data[['type_num', 'male', 'age', 'job1', 'job2', 'edu', 'income', 'all_freq_log', 
               'freq1_log', 'freq2_log', 'freq3_log', 'freq6_log', 'freq7_log', 'freq13_log', 'freq19_log']]
vif = pd.DataFrame()
vif['VIF'] = [variance_inflation_factor(variables.values,i) for i in range(variables.shape[1])]
vif['features'] = variables.columns
vif

Non-consecutive header level

Discussed in #25

Originally posted by chengjun October 27, 2021

  • /home/runner/work/mybook/mybook/03-UK-MPS-Scandal.ipynb:70002: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
  • /home/runner/work/mybook/mybook/03-UK-MPS-Scandal.ipynb:120002: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
  • /home/runner/work/mybook/mybook/03-UK-MPS-Scandal.ipynb:220002: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]
  • /home/runner/work/mybook/mybook/03-umbrella-of-love.ipynb:400002: WARNING: Non-consecutive header level increase; 0 to 2 [myst.header]

gini coefficient

def gini(list_of_values):
    sorted_list = sorted(list_of_values)
    height, area = 0, 0
    for value in sorted_list:
        height += value
        area += height - value / 2.
    fair_area = height * len(list_of_values) / 2.
    return (fair_area - area) / fair_area

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.