Skip to content

Commit

Permalink
more report
Browse files Browse the repository at this point in the history
  • Loading branch information
alkant committed May 8, 2012
1 parent acd46b5 commit c27d9b4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions cs261-writeup/finalreport.tex
Expand Up @@ -16,6 +16,10 @@
\usepackage{colortbl}
\usepackage[margin=0.7in]{geometry}

\DeclareMathOperator*{\bow}{bow}
\DeclareMathOperator*{\simil}{sim}


%\pagestyle{empty}

\begin{document}
Expand Down Expand Up @@ -279,6 +283,14 @@ \subsubsection{Stop word removal}
The performance of this classifier was underwhelming (.57 accuracy against a spam base rate of .73). However, this is unsurprising given the parsity of data we were using for this particular iteration.
\subsection{Clean-up process}


\begin{figure}
\includegraphics[width=8.8cm]{cdf_en_content_length.eps}
\caption{Effect of cleaning up code on content length. The cumulative probability distributions of content length
for both cleaned up and raw tweets are plotted.}
\label{len_cdf}
\end{figure}

\section{Detecting deceptive tweets}

\begin{figure*}[ht]\centering
Expand All @@ -297,6 +309,25 @@ \section{Detecting deceptive tweets}
based method.}
\end{figure*}

In this part, we focus on determining a good similarity measure between tweet content and linked content. To this end, we make use of the spam labeling, with the assumption we will further verify that ham tweets display more similarity than spam tweets. Our approach is as follows:
\begin{enumerate}
\item We define a set of candidate similarity measures.
\item We evaluate each of the candidates using the spam labeling in the dataset.
\item We a posteriori validate or invalidate the results by manually looking at low-similarity and high-similarity tweets.
\end{enumerate}

\subsection{Candidate similarity measures}
We thereby define 3 similarity measures. A similarity measure is any function which takes for input two strings and return a value between 0 and 1.

\subsubsection{Naive Jaccard measure}
The naive Jaccard measure between a tweet $T$ and its linked HTML content $H$ is defined by:
\[
\simil_{J}(T, H) = \frac{|\bow(T) \cap \bow(H)|}{|\bow(T)|}
\]
where $\bow$ is the bag-of-wording function which takes a string and returns a set of normalized tokens with stop words removed. This measure is expected to perform relatively poorly because of the sparse, high dimensional nature of the bag of words. We expect a lot of blunt 0 and 1 values for this metric.

\subsubsection{TF-IDF normalized cosine measure}
The TF-IDF distance

\begin{table}[!h]\centering
\begin{tabular}{|c|p{1.5cm}|p{1cm}|p{1cm}|p{1cm}|}
Expand Down

0 comments on commit c27d9b4

Please sign in to comment.