Exploration of online social networking

Assignment Help Python Programming
Reference no: EM131297698

This assignment will allow you to do a more open-ended exploration of online social networking. The goal is to let you use some of the tools we've learned in class on your own. There are some requirements to constrain your work, defined below.

To grade your project, I will run the following commands:

python collect.py

python cluster.py

python classify.py

python summarize.py

So, your a4 folder should have (at least) those four files. Please check that your files are named correctly, including using lower case letters!!!

Here is what each script should do:

collect.py: This should collect data used in your analysis. This may mean submitting queries to Twitter or Facebook API, or scraping webpages. The data should be raw and come directly from the original source -- that is, you may not use data that others have already collected and processed for you (e.g., you may not use SNAP datasets). Running this script should create a file or files containing the data that you need for the subsequent phases of analysis.

cluster.py: This should read the data collected in the previous steps and use any community detection algorithm to cluster users into communities. You may write any files you need to save the results.

classify.py: This should classify your data along any dimension of your choosing (e.g., sentiment, gender, spam, etc.). You may write any files you need to save the results.

summarize.py: This should read the output of the previous methods to write a textfile called summary.txt containing the following entries:

Number of users collected:

Number of messages collected:

Number of communities discovered:

Average number of users per community:

Number of instances per class found:

One example from each class:

Additionally, you should create a plain text file called 'description.txt' that contains a brief summary of what your code does and any conclusions you have made from the analysis (3-5 paragraphs).

Other notes:

You may use any of the algorithms in scikit-learn, networkx, scipy, numpy, nltk to perform your analysis. You do not need to implement the methods from scratch.

It is expected that when I run your collect.py script, I may get different data than you collected when you tested your code. While the final results of the analysis may differ, your scripts should still work on new datasets.

You may checkin to Github any configuration or data files that your code needs. For example, if you've used manually annotated training data to fit a classifier, you may store that in Github. However, you should not store large data files (e.g., >50Mb). However, please ensure that your code will run using the commands above. Ensure that you use relative, not absolute paths when needed. (E.g., don't put "C:/Aron/data" as a path.) I recommend checking that your code works on another system prior to submission.

Some of you have asked to use python libraries in a4 beyond the ones we've used in class (sklearn, networkx, nltk, etc). In general, I'd prefer that you didn't, but if you feel you must, please also create a plain text file called requirements.txt containing the name of each package we have to install to run your code, one per line. E.g.,

requirements.txt:

tweepy

super-duper

Be sure to check this file into your github repository as well, in the same folder as your code.

if you want to use the twitter api key, here is my:

consumer_key = '3XbpXgiUcWCItLOXhaewxZXTn'

consumer_secret = 'AFG1pbr9ZDthJEZpnFlAYlruBmDcWQWslugusO6DcBI6vXrp41'

access_token = '3102761048-ejzZSViqCWnapUzZn1omIChGsNpD3ylNflaI7vn'

access_token_secret = '0wQnt6HToWmWSDQMuXygMyrWw1Y4LlC9Wknah3BXLHrY0'

Attachment:- Assignment.rar

Reference no: EM131297698

Questions Cloud

What is the yield to maturity at current market price : The Brownstone Corporation's bonds have 5 years remaining to maturity. Interest is paid annually, the bonds have a $1,000 par value, and the coupon interest rate is 9%. What is the yield to maturity at a current market price of $828? What is the yiel..
Why civil asset forfeiture for minor drug offenses violates : Why Civil Asset Forfeiture for Minor Drug Offenses Violates Due Process.what knowledge will it create? What gaps in our knowledge will it help to fill, and how will it advance the selected theory or theories? How might the results of your researc..
How the job satisfaction of employees at chc can affect : Expectancy theory suggests that employees will perform better if there is a reward for performance.- Should CHC have employees compete for an extra reward each year?
Do you agree with these senators that reducing barriers : Do you agree with these senators that reducing barriers to trade reduces the number of jobs available to workers in the United States?
Exploration of online social networking : This assignment will allow you to do a more open-ended exploration of online social networking. The goal is to let you use some of the tools we've learned in class on your own
Extensive use of debt to finance growth : “Fannie Mae” (FNMA) and “Freddy Mac” (FHLMC) are Government Sponsored Enterprises (GSEs) and as such were perceived to have low risk.   In the early 2000s. Former Federal Reserve Chairman Alan Greenspan stated that these institutions (“Fannie and Fre..
Which option will allow the company to maximize : Which option will allow the company to maximize its expected monetary value (EMV) - However, Hess estimates that the demand for the newly designed window will be 210,000 units with a probability of 0.6, and that there will be a 0.4 probability of s..
Problem of determining capacity to consent : Provide 2-3 policy options that can be implemented for the problem of determining capacity to consent. As the number of individuals with cognitive impairment continue to rise, so will the number of people with questionable capacity to make health ..
Examine realistic retirement planning situation : Retirement Planning In the next two questions we will examine a realistic retirement planning situation. How much will the annuity pay you each year through your retirement?

Reviews

len1297698

12/2/2016 12:56:18 AM

Use python 3.5 to write and see the readme.txt first to know the detail. And what if you want to use twitter api key to get tweet data, I also provide my key in the readme.txt file.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd