[关闭]
@HaomingJiang 2016-06-24T23:33:55.000000Z 字数 2056 阅读 1703

Chp5 Data Mining Essentials

笔记 SMM(SocialMediaMining)



5.1 Data

In social media, individuals generate many types of nontabular data, such as text, voice, or vedio. They are first coverted to tabular data. (i.e. use the fast Fourier transoform(FFT) to process voice; use vectorization to process text, a variety of that is vector-space model)

Vector Space Model
We are given a set of documents . Use the dictionary of all possible words as the features. Each document is a set of words. The goal is to use feature vector to represent document.

Naive way: We can set when the word exists, or 0 when it doesn't.
General way: term frequency-inverse document frequency(TF-IDF)

where is the frequency of word j in document i.
is the inverse frequency of word j across all documents.

5.1.1 Data quality

  1. Noise
  2. Outliers
  3. Missing Values
  4. Duplicate Data

5.2 Data Preprocessing

  1. Aggregation
  2. Discretization
  3. Feature Selection
  4. Feature Extraction
  5. Sampling:(i.e. stratified sampling can deal with imbalance data)
    In social media, many data is presented in the form of network. We can just sample nodes and edges using aforementioned sampling methods. An alternative way is illustrated below:
    (a) sample a small set of nodes (seed nodes)
    (b) find the connected components they belong to
    (c) find the set of nodes (and edges) connected to them directly
    (d) find the set of nodes and edges that are within n-hop distance from them.

5.3 Supervised Learning

Decision Tree
Naive Bayes Classifier
Nearest Neighbor Classifier

Classification with Network Information
If we only have the information about connections and class labels (i.e, bought or will not buy).
Let P(y_i=1|N(v_i)) denote the probability of node having class attribute value 1 given its neighbors. Approximately, we can use the neighbors' information to deduct the probability.
i.e. (weighted-vote relational-neigbhor, wvRN)

It can strat with an initial probability, (for unlabel data, the probability is 0.5). Eventually, it will converge to an distribution.

Regression

5.4 Unsupervised Learning

Clustering

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注