Overview & Submission System

Transcription

Overview & Submission System
Overview & Submission System
Dominik Mösslang
Ingo Holzmann
Thomas Wurmitzer
March 20, 2014
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
1 / 11
Schedule
Tutorium
Dates & Deadlines
Submission System
Assignment I: Example
(Short) Python Introduction
networkx, numpy & matplotlib Examples
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
2 / 11
Dates & Deadlines
10.03.2015
23.03.2015
30.03.2015
31.03.2015
26.04.2015
18.05.2015
15.06.2015
21.06.2015
23:59
13:00
23:59
23:59
12:00
23:59
Registration
Tutorium: Assignment 1
Setup SVN Repository
Handout: Assignment 1
Deadline: Assignment 1
Handout: Assignment 2
Final Exam
Deadline: Assignment 2
HS i12 ICK1130H
Network Statistics
Community Detection
HS i12 ICK1130H
!! Changes to the schedule and other exercise related stuff will be posted in
the newsgroup tu-graz.lv.web-science.
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
3 / 11
Submission System
Create a repository via TUGrazOnline
I
e.g. Student ID 123456 -> repository name WSWT15_123456.
Give tutors read/write access to repository (add as Member)
I
I
I
I
Dominik Mösslang
Ingo Holzmann
Thomas Wurmitzer
Invitations via e-mail will not be accepted!
Wait/sleep until we push Assignment 1 to your SVN repository.
I
Will be announced in the newsgroup!
Exercises will be handed out around the 31.03. & 18.05.2015.
Solve your task(s) and commit your code and results (see README.pdf)
I
I
Pay attention to the Soft- and Hard Deadlines for each assignment!
Last commit will be used for grading!
Reports & exercise points will be handed out via SVN.
I
Will be announced in the newsgroup!
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
4 / 11
Assignment 0: Setup Repository
Required to get access to both assignments!
Create and configure a SVN repository via TUGrazOnline
Give tutors read/write access to repository (add as Member)
I
I
I
I
Dominik Mösslang
Ingo Holzmann
Thomas Wurmitzer
Invitations via e-mail will not be accepted!
Deadline: 30.03.2015 23:59:59
I
Reminders will be sent out between the 27th and 29th .
Please do not commit anything until you got your assignment.
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
5 / 11
Assignment 1: Network Statistics
Two networks, Three tasks involving the calculation of certain metrics
and/or plotting them.
Goals
Get to know Python
And a few awesome libraries: networkx, (numpy, matplotlib)
Prepare you for Assignment 2
Tasks
1
2
3
4
5
6
Read your assignment description.
Implement your 3 Tasks.
Check your results/implementation using the provided unittests.
Write and commit results.
Get your points (REPORT.pdf) via SVN.
(Wait for handout of Assigment 2).
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
6 / 11
Assignment 1: Network Statistics (Example)
def perform(graph):
''' Takes a networkx.Graph,
related metrics and returns
graph's highest node degree
average degree of a node in
distribution itself. '''
calculates certain degree
a 3-tuple containing the
found in the graph, the
the graph and the degree
max_degree, avg_degree, degree_distribution = 0, 0.0, []
# TODO: Calculate the maximum degree.
# TODO: Calculate the average degree of a node.
# TODO: Calculate the graph's degree distribution.
... # 1. Write your code and assign variables.
# 2. Return tuple.
return (max_degree, avg_degree, degree_distribution)
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
7 / 11
Assignment 1: Network Statistics (Example)
% make
% make test
test_if_average_degree_matches_expectation ... ok
test_if_degree_distribution_match_expectations ... ok
test_if_maximum_degree_matches_expectation ... ok
test_if_result_tuple_contains_proper_types ... ok
---------------------------------------------------Ran 4 tests in 2.037s
% make check
test_if_degree_file_contains_results_triple ... ok
test_if_degree_file_exists ... ok
---------------------------------------------------Ran 2 tests in 0.037s
Commit the contents of your submission and plots folder and
you’re done!
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
8 / 11
Recommendations & Tips
If you haven’t already. Setup your repository today!
Make sure you follow the naming rule for repositories and files!
Don’t commit anything before the exercise rollout!
Setup your environment (today)!
In case you don’t know Python - start playing around (today)!
I
I
I
Type conversion
Iterating and manipulating lists
Working with modules and classes
In case you don’t know (networkx|numpy|matplotlib) - start playing
around (today)!
I
I
I
Browse the documentation (clustering, distances, . . . )
Read/Write graphs
Plotting (histograms, scatterplots, . . . )
Read the newsgroup.
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
9 / 11
Help & Resources
Use help and dir in interactive mode.
Library Documentation: networkx, numpy, matplotlib
Python Language Reference
I
https://docs.python.org/2/reference/index.html
Google’s Python Class
I
https://developers.google.com/edu/python/
Think Python: How to Think Like a Computer Scientist
I
http://www.greenteapress.com/thinkpython/
Code Academy’s Python Track
I
http://www.codecademy.com/en/tracks/python
The Hitchhiker’s Guide to Python!
I
http://docs.python-guide.org
StackOverflow
I
http://stackoverflow.com/questions/tagged/python
Reddit
I
http://reddit.com/r/learnpython
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
10 / 11
Questions?
1
2
3
Ask now.
Ask in the newsgroup tu-graz.lv.web-science.
Send an e-mail:
I
I
I
I
I
Dominik Mösslang, [email protected]
Ingo Holzmann, [email protected]
Emanuel Lacić, [email protected]
Thomas Wurmitzer, [email protected]
Please use [WSWT] or the course number 707.000 as a subject.
Please post general questions regarding the assignment tasks to the
tu-graz.lv.web-science. If you have a particular, specific problem, you
can contact us per e-mail as well. Answering delays might be longer,
though.
Dominik Mösslang, Ingo Holzmann, Thomas Wurmitzer
Overview & Submission System
March 20, 2014
11 / 11

Similar documents