NetworkX: Network Analysis with Python
|
|
|
- Jane Wilkins
- 10 years ago
- Views:
Transcription
1 NetworkX: Network Analysis with Python Salvatore Scellato From a tutorial presented at the 30th SunBelt Conference NetworkX introduction: Hacking social networks using the Python programming language by Aric Hagberg & Drew Conway 1
2 Outline 1. Introduction to NetworkX 2. Getting started with Python and NetworkX 3. Basic network analysis 4. Writing your own code 5. You are ready for your own analysis! 2
3 1. Introduction to NetworkX. 3
4 Introduction to NetworkX - network analysis Vast amounts of network data are being generated and collected Sociology: web pages, mobile phones, social networks Technology: Internet routers, vehicular flows, power grids How can we analyse these networks? Python + NetworkX! 4
5 Introduction to NetworkX - Python awesomeness 5
6 Introduction to NetworkX - Python in one slide Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasises code readability. there should be one (and preferably only one) obvious way to do it. Use of indentation for block delimiters (!!!!) Multiple programming paradigms: primarily object oriented and imperative but also functional programming style. Dynamic type system, automatic memory management, late binding. Primitive types: int, float, complex, string, bool. Primitive structures: list, tuple, dictionary, set. Complex features: generators, lambda functions, list comprehension, list slicing. 6
7 Introduction to NetworkX Python package for the creation, manipulation and study of the structure, dynamics and functions of complex networks. Data structures for representing many types of networks, or graphs Nodes can be any (hashable) Python object, edges can contain arbitrary data Flexibility ideal for representing networks found in many different fields Easy to install on multiple platforms Online up-to-date documentation First public release in April
8 Introduction to NetworkX - design requirements Tool to study the structure and dynamics of social, biological, and infrastructure networks Ease-of-use and rapid development Open-source tool base that can easily grow in a multidisciplinary environment with non-expert users and developers An easy interface to existing code bases written in C, C++, and FORTRAN To painlessly slurp in relatively large nonstandard data sets 8
9 Introduction to NetworkX - object model NetworkX defines no custom node objects or edge objects node-centric view of network nodes can be any hashable object, while edges are tuples with optional edge data (stored in dictionary) any Python object is allowed as edge data and it is assigned and stored in a Python dictionary (default empty) NetworkX is all based on Python Instead, other projects use custom compiled code and Python: Boost Graph, igraph, Graphviz Focus on computational network modelling not software tool development Move fast to design new algorithms or models Get immediate results 9
10 Introduction to NetworkX - how to choose When should I USE NetworkX to perform network analysis? Unlike many other tools, it is designed to handle data on a scale relevant to modern problems. Most of the core algorithms rely on extremely fast legacy code Highly flexible graph implementations (a graph/node can be anything!) Extensive set of native readable and writable formats Takes advantage of Python s ability to pull data from the Internet or databases When should I AVOID NetworkX to perform network analysis? Large-scale problems that require faster approaches (i.e. massive networks with 100M/1B edges) Better use of memory/threads than Python (large objects, parallel computation) 10
11 Introduction to NetworkX - quick example Use Dijkstra s algorithm to find the shortest path in a weighted and unweighted network: >>> import networkx as nx >>> g = nx.graph() >>> g.add_edge( a, b,weight=0.1) >>> g.add_edge( b, c,weight=1.5) >>> g.add_edge( a, c,weight=1.0) >>> g.add_edge( c, d,weight=2.2) >>> print nx.shortest_path(g, b, d ) [ b, c, d ] >>> print nx.shortest_path(g, b, d,weighted=true) [ b, a, c, d ] 11
12 Introduction to NetworkX - Python s Holy Trinity Python s primary library for mathematical and statistical computing. Containing sub-libs for Numeric optimisation Linear algebra..and many others The primary data type in SciPy is an array, so data manipulation is similar to that of MATLAB. NumPy is an extension of the SciPy data type to include multidimensional arrays and matrices. Provides many functions for working on arrays and matrices. Both SciPy and NumPy rely on the C library LAPACK for very fast implementation. matplotlib is primary plotting library in Python Supports 2- and 3-D plotting API allows embedding in apps All plots are highly customisable and ready for professional publication. 12
13 Introduction to NetworkX - drawing and plotting It is possible to draw small graphs within NetworkX and to export network data and draw with other programs (i.e., GraphViz, matplotlib) 13
14 Introduction to NetworkX - official website 14
15 Introduction to NetworkX - online resources Online documentation and active mailing list with helpful developers and contributors ( 15
16 2. Getting started with Python and NetworkX. 16
17 Getting started - import NetworkX Start Python (interactive or script mode) and import NetworkX: >>> import networkx as nx There are different Graph classes for undirected and directed networks. Let s create a basic Graph class >>> g = nx.graph() # empty graph The graph g can be grown in several ways. NetworkX includes many graph generator functions and facilities to read and write graphs in many formats. 17
18 Getting started - add nodes # One node at a time >>> g.add_node(1) # method of nx.graph # A list of nodes >>> g.add_nodes_from([2,3]) # A container of nodes >>> h = nx.path_graph(10) >>> g.add_nodes_from(h) # g now contains the nodes of h # In contrast, you can remove any node of the graph >>> g.remove_node(2) 18
19 Getting started - node entities A node can be any hashable object such as strings, numbers, files, functions, and more. This provides important flexibility to all your projects. >>> import math >>> g.add_node(math.cos) # cosine function >>> fh=open( tmp.txt, w ) # file handle >>> g.add_node(fh) >>> print g.nodes() [<built-in function cos>, <open file tmp.txt, mode w at 0x30dc38>] 19
20 Getting started - add edges # Single edge >>> g.add_edge(1,2) >>> e=(2,3) >>> g.add_edge(*e) # unpack edge tuple # List of edges >>> g.add_edges_from([(1,2),(1,3)]) # Container of edges >>> g.add_edges_from(h.edges()) # In contrast, you can remove any edge of the graph >>> g.remove_edge(1,2) 20
21 Getting started - access nodes and edges >>> g.add_edges_from([(1,2),(1,3)]) >>> g.add_node( a ) >>> g.number_of_nodes() # also g.order() 4 >>> g.number_of_edges() # also g.size() 2 >>> g.nodes() [1, 2, 3, a ] >>> g.edges() [(1, 2), (1, 3)] >>> g.neighbors(1) [2, 3] >>> g.degree(1) 2 21
22 Getting started - Python dictionaries NetworkX takes advantage of Python dictionaries to store node and edge measures. The dict type is a data structure that represents a key-value mapping. # Keys and values can be of any data type >>> fruit_dict={"apple":1,"orange":[0.23,0.11],42:true} # Can retrieve the keys and values as Python lists (vector) >>> fruit_dict.keys() [ "orange", "apple", 42 ] # Or create a (key,value) tuple >>> fruit_dict.items() [("orange",[0.23,0.11]),("apple",1),(42,true)] # This becomes especially useful when you master Python listcomprehension 22
23 Getting started - access nodes and edges Any NetworkX graph behaves like a Python dictionary with nodes as primary keys (only for access!) >>> g.add_node(1, time= 5pm ) >>> g.node[1][ time ] 5pm >>> g.node[1] # Python dictionary { time : 5pm } The special edge attribute weight should always be numeric and holds values used by algorithms requiring weighted edges. >>> g.add_edge(1, 2, weight=4.0 ) >>> g[1][2][ weight ] = 5.0 # edge already added >>> g[1][2] { weight : 5.0} 23
24 Getting started - node and edge iterators Many applications require iteration over nodes or over edges: simple and easy in NetworkX >>> g.add_edge(1,2) >>> for node in g.nodes(): 1, 1 2, 1 print node, g.degree(node) >>> g.add_edge(1,3,weight=2.5) >>> g.add_edge(1,2,weight=1.5) >>> for n1,n2,attr in g.edges(data=true): # unpacking print n1,n2,attr[ weight ] 1, 2, 1.5 1, 3,
25 Getting started - directed graphs >>> dg = nx.digraph() >>> dg.add_weighted_edges_from([(1,4,0.5), (3,1,0.75)]) >>> dg.out_degree(1,weighted=true) 0.5 >>> dg.degree(1,weighted=true) 1.25 >>> dg.successors(1) [4] >>> dg.predecessors(1) [3] Some algorithms work only for undirected graphs and others are not well defined for directed graphs. If you want to treat a directed graph as undirected for some measurement you should probably convert it using Graph.to_undirected() 25
26 Getting started - multigraphs NetworkX provides classes for graphs which allow multiple edges between any pair of nodes, MultiGraph and MultiDiGraph. This can be powerful for some applications, but many algorithms are not well defined on such graphs: shortest path is one example. Where results are not well defined you should convert to a standard graph in a way that makes the measurement well defined. >>> mg = nx.multigraph() >>> mg.add_weighted_edges_from([(1,2,.5), (1,2,.75), (2,3,.5)]) >>> mg.degree(weighted=true) {1: 1.25, 2: 1.75, 3: 0.5} 26
27 Getting started - graph operators Classic graph operations subgraph(g, nbunch) - induce subgraph of G on nodes in nbunch union(g1,g2) - graph union disjoint_union(g1,g2) - graph union assuming all nodes are different cartesian_product(g1,g2) - return Cartesian product graph compose(g1,g2) - combine graphs identifying nodes common to both complement(g) - graph complement create_empty_copy(g) - return an empty copy of the same graph class convert_to_undirected(g) - return an undirected representation of G convert_to_directed(g) - return a directed representation of G 27
28 Getting started - graph generators # small famous graphs >>> petersen=nx.petersen_graph() >>> tutte=nx.tutte_graph() >>> maze=nx.sedgewick_maze_graph() >>> tet=nx.tetrahedral_graph() # classic graphs >>> K_5=nx.complete_graph(5) >>> K_3_5=nx.complete_bipartite_graph(3,5) >>> barbell=nx.barbell_graph(10,10) >>> lollipop=nx.lollipop_graph(10,20) # random graphs >>> er=nx.erdos_renyi_graph(100,0.15) >>> ws=nx.watts_strogatz_graph(30,3,0.1) >>> ba=nx.barabasi_albert_graph(100,5) >>> red=nx.random_lobster(100,0.9,0.9) 28
29 Getting started - graph I/O NetworkX is able to read/write graphs from/to files using common graph formats: edge lists adjacency lists GML GEXF Python pickle GraphML Pajek LEDA YAML We will see how to read/write edge lists. 29
30 Getting started - read and write edge lists General read/write format >>> g = nx.read_format( path/to/file.txt,...options...) >>> nx.write_format(g, path/to/file.txt,...options...) Read and write edge lists g = nx.read_edgelist(path,comments='#',create_using=none, delimiter=' ',nodetype=none,data=true,edgetype=none,encoding='utf-8') nx.write_edgelist(g,path,comments='#', delimiter=' ',data=true,encoding='utf-8') Formats Node pairs with no data: 1 2 Python dictionary as data: 1 2 {'weight':7, 'color':'green'} Arbitrary data: green 30
31 Getting started - draw a graph NetworkX is not primarily a graph drawing package but it provides basic drawing capabilities by using matplotlib. For more complex visualization techniques it provides an interface to use the open source GraphViz software package. >>> import pylab as plt #import Matplotlib plotting interface >>> g = nx.erdos_renyi_graph(100,0.15) >>> nx.draw(g) >>> nx.draw_random(g) >>> nx.draw_circular(g) >>> nx.draw_spectral(g) >>> plt.savefig( graph.png ) Note that the drawing package in NetworkX is not (yet!) compatible with Python versions 3.0 and above. 31
32 3. Basic network analysis. 32
33 Basic network analysis - graph properties Let s load the Hartford drug users network: it s a directed graph with integers as nodes. hartford = nx.read_edgelist('hartford.txt', create_using=nx.digraph(),nodetype=int) N,K = hartford.order(), hartford.size() avg_deg = float(k)/n print "Nodes: ", N print "Edges: ", K print "Average degree: ", avg_deg 33
34 Basic network analysis - degree distribution Let s compute in- and out-degree distribution of the graph and plot them. Don t try this method with massive graphs, it s slow...! in_degrees = hartford.in_degree() # dictionary node:degree in_values = sorted(set(in_degrees.values())) in_hist = [in_degrees.values().count(x) for x in in_values] plt.figure() plt.plot(in_values,in_hist,'ro-') # in-degree plt.plot(out_values,out_hist,'bv-') # out-degree plt.legend(['in-degree','out-degree']) plt.xlabel('degree') plt.ylabel('number of nodes') plt.title('hartford drug users network') plt.savefig('hartford_degree_distribution.pdf') plt.close() 34
35 Basic network analysis - degree distribution 35
36 Basic network analysis - clustering coefficient We can get the clustering coefficient of individual nodes or of all the nodes (but the first we convert the graph to an undirected one): hartford_ud = hartford.to_undirected() # Clustering coefficient of node 0 print nx.clustering(hartford_ud, 0) # Clustering coefficient of all nodes (in a dictionary) clust_coefficients = nx.clustering(hartford_ud) # Average clustering coefficient ccs = nx.clustering(hartford_ud) avg_clust = sum(ccs.values()) / len(ccs) 36
37 Basic network analysis - node centralities Now, we will extract the main connected component; then we will compute node centrality measures. hartford_components = nx.connected_component_subgraphs(hartford_ud) hartford_mc = hartford_components[0] # Betweenness centrality bet_cen = nx.betweenness_centrality(hartford_mc) # Closeness centrality clo_cen = nx.closeness_centrality(hartford_mc) # Eigenvector centrality eig_cen = nx.eigenvector_centrality(hartford_mc) 37
38 Basic network analysis - most central nodes To find the most central nodes we will learn Python s list comprehension technique to do basic data manipulation on our centrality dictionaries. def highest_centrality(cent_dict): """Returns a tuple (node,value) with the node with largest value from Networkx centrality dictionary.""" # Create ordered tuple of centrality data cent_items=[(b,a) for (a,b) in cent_dict.iteritems()] # Sort in descending order cent_items.sort() cent_items.reverse() return tuple(reversed(cent_items[0])) 38
39 Basic network analysis - plotting results Recall Python s scientific computing trinity: NumPy, SciPy and matplotlib. While NumPy and SciPy do most of the behind the scenes work, you will interact with matplotlib frequently when doing network analysis. We will need to create a function that takes two centrality dict and generates this plot: 1. Create a matplotlib figure 2. Plot each node label as a point 3. Add a linear best-fit trend 4. Add axis and title labels 5. Save figure on a file 39
40 Basic network analysis - plotting results def centrality_scatter(dict1,dict2,path="", ylab="",xlab="",title="",line=false): # Create figure and drawing axis fig = plt.figure(figsize=(7,7)) ax1 = fig.add_subplot(111) # Create items and extract centralities items1 = sorted(dict1.items()) items2 = sorted(dict2.items()) xdata=[b for a,b in items1] ydata=[b for a,b in items2] # Add each actor to the plot by ID for p in xrange(len(items1)): ax1.text(x=xdata[p], y=ydata[p],s=str(items1[p][0]), color="b") 40
41 Basic network analysis - plotting results...continuing... if line: # use NumPy to calculate the best fit slope, yint = plt.polyfit(xdata,ydata,1) xline = plt.xticks()[0] yline = map(lambda x: slope*x+yint,xline) ax1.plot(xline,yline,ls='--',color='b') # Set new x- and y-axis limits plt.xlim((0.0,max(xdata)+(.15*max(xdata)))) plt.ylim((0.0,max(ydata)+(.15*max(ydata)))) # Add labels and save ax1.set_title(title) ax1.set_xlabel(xlab) ax1.set_ylabel(ylab) plt.savefig(path) 41
42 Basic network analysis - export results Even though NetworkX and the complementing scientific computing packages in Python are powerful, it may often be useful or necessary to output your data for additional analysis because: suite of tools lacks your specific need you require alternative visualisation you want to store results for later analysis In most cases this will entail either exporting the raw network data, or metrics from some network analysis 1. NetworkX can write out network data in as many formats as it can read them, and the process is equally straightforward 2. When you want to export metrics we can also use Python s built-in XML and CSV libraries, or simply write to a text file. 42
43 Basic network analysis - write results to file Let s export a CSV file with node IDs and the related centrality values on each line: this can be then used to plot without computing again all centrality measures. results = [(k,bet_cen[k],clo_cen[k],eig_cen[k]) for k in hartford_mc] f = open('hartford_results.txt','w') for item in results: f.write(','.join(map(str,item))) f.write('\n') f.close() 43
44 4. Writing your own code. 44
45 Write your own code - BFS With Python and NetworkX it s easy to write any graph-based algorithm from collections import deque def breadth_first_search(g, source): queue = deque([(none, source)]) enqueued = set([source]) while queue: parent,n = queue.popleft() yield parent,n new = set(g[n]) enqueued enqueued = new queue.extend([(n, child) for child in new]) 45
46 Write your own code - network triads Extract all unique triangles in a graph with integer node IDs def get_triangles(g): for n1 in g.nodes: neighbors1 = set(g[n1]) for n2 in filter(lambda x: x>n1, nodes): neighbors2 = set(g[n2]) common = neighbors1 & neighbors2 for n3 in filter(lambda x: x>n2, common): yield n1,n2,n3 46
47 Write your own code - average neighbours degree Compute the average degree of each node s neighbours (long and one-liner version). def avg_neigh_degree(g): data = {} for n in g.nodes(): if g.degree(n): data[n] = float(sum(g.degree(i) for i in g[n]))/ g.degree(n) return data def avg_neigh_degree(g): return dict((n,float(sum(g.degree(i) for i in g[n]))/ g.degree(n)) for n in g.nodes() if g.degree(n)) 47
48 5.You are ready for your own analysis! 48
49 What you have learnt today about NetworkX How to create graphs from scratch, with generators and by loading local data How to compute basic network measures, how they are stored in NetworkX and how to manipulate them with list comprehension Getting data out of NetworkX as raw network data or analytics How to use matplotlib to visualize and plot results (useful for final report!) How to use and include NetworkX features to design your own algorithms/ analysis 49
50 Useful links Code&data used in this lecture: stna-examples.tar.gz NodeXL: a graphical front-end that integrates network analysis into Microsoft Office and Excel. ( Pajek: a program for network analysis for Windows ( Gephi: an interactive visualization and exploration platform ( Power-law Distributions in Empirical Data: tools for fitting heavy-tailed distributions to data ( GraphViz: graph visualization software ( Matplotlib: full documentation for the plotting library ( 50
51 Questions? Salvatore Scellato Web: 51 Flickr: sean dreilinger
NetworkX: Network Analysis with Python
NetworkX: Network Analysis with Python Salvatore Scellato Full tutorial presented at the XXX SunBelt Conference NetworkX introduction: Hacking social networks using the Python programming language by Aric
NetworkX: Network Analysis with Python
NetworkX: Network Analysis with Python Petko Georgiev (special thanks to Anastasios Noulas and Salvatore Scellato) Computer Laboratory, University of Cambridge February 2014 Outline 1. Introduction to
Graphs, Networks and Python: The Power of Interconnection. Lachlan Blackhall - [email protected]
Graphs, Networks and Python: The Power of Interconnection Lachlan Blackhall - [email protected] A little about me Graphs Graph, G = (V, E) V = Vertices / Nodes E = Edges NetworkX Native graph
A comparative study of social network analysis tools
Membre de Membre de A comparative study of social network analysis tools David Combe, Christine Largeron, Előd Egyed-Zsigmond and Mathias Géry International Workshop on Web Intelligence and Virtual Enterprises
An Introduction to APGL
An Introduction to APGL Charanpal Dhanjal February 2012 Abstract Another Python Graph Library (APGL) is a graph library written using pure Python, NumPy and SciPy. Users new to the library can gain an
Intro to scientific programming (with Python) Pietro Berkes, Brandeis University
Intro to scientific programming (with Python) Pietro Berkes, Brandeis University Next 4 lessons: Outline Scientific programming: best practices Classical learning (Hoepfield network) Probabilistic learning
Social Media Mining. Graph Essentials
Graph Essentials Graph Basics Measures Graph and Essentials Metrics 2 2 Nodes and Edges A network is a graph nodes, actors, or vertices (plural of vertex) Connections, edges or ties Edge Node Measures
Software tools for Complex Networks Analysis. Fabrice Huet, University of Nice Sophia- Antipolis SCALE (ex-oasis) Team
Software tools for Complex Networks Analysis Fabrice Huet, University of Nice Sophia- Antipolis SCALE (ex-oasis) Team MOTIVATION Why do we need tools? Source : nature.com Visualization Properties extraction
CRASH COURSE PYTHON. Het begint met een idee
CRASH COURSE PYTHON nr. Het begint met een idee This talk Not a programming course For data analysts, who want to learn Python For optimizers, who are fed up with Matlab 2 Python Scripting language expensive
Programming Languages & Tools
4 Programming Languages & Tools Almost any programming language one is familiar with can be used for computational work (despite the fact that some people believe strongly that their own favorite programming
6.170 Tutorial 3 - Ruby Basics
6.170 Tutorial 3 - Ruby Basics Prerequisites 1. Have Ruby installed on your computer a. If you use Mac/Linux, Ruby should already be preinstalled on your machine. b. If you have a Windows Machine, you
Distance Degree Sequences for Network Analysis
Universität Konstanz Computer & Information Science Algorithmics Group 15 Mar 2005 based on Palmer, Gibbons, and Faloutsos: ANF A Fast and Scalable Tool for Data Mining in Massive Graphs, SIGKDD 02. Motivation
Introduction to Python
1 Daniel Lucio March 2016 Creator of Python https://en.wikipedia.org/wiki/guido_van_rossum 2 Python Timeline Implementation Started v1.0 v1.6 v2.1 v2.3 v2.5 v3.0 v3.1 v3.2 v3.4 1980 1991 1997 2004 2010
Option 1: empirical network analysis. Task: find data, analyze data (and visualize it), then interpret.
Programming project Task Option 1: empirical network analysis. Task: find data, analyze data (and visualize it), then interpret. Obtaining data This project focuses upon cocktail ingredients. Data was
An Empirical Study of Two MIS Algorithms
An Empirical Study of Two MIS Algorithms Email: Tushar Bisht and Kishore Kothapalli International Institute of Information Technology, Hyderabad Hyderabad, Andhra Pradesh, India 32. [email protected],
Dynamic Network Analyzer Building a Framework for the Graph-theoretic Analysis of Dynamic Networks
Dynamic Network Analyzer Building a Framework for the Graph-theoretic Analysis of Dynamic Networks Benjamin Schiller and Thorsten Strufe P2P Networks - TU Darmstadt [schiller, strufe][at]cs.tu-darmstadt.de
A Performance Evaluation of Open Source Graph Databases. Robert McColl David Ediger Jason Poovey Dan Campbell David A. Bader
A Performance Evaluation of Open Source Graph Databases Robert McColl David Ediger Jason Poovey Dan Campbell David A. Bader Overview Motivation Options Evaluation Results Lessons Learned Moving Forward
Tools and Techniques for Social Network Analysis
Tools and Techniques for Social Network Analysis Pajek Program for Analysis and Visualization of Large Networks Pajek: What is it Pajek is a program, for Windows and Linux (via Wine) Developers: Vladimir
Numerical Analysis. Professor Donna Calhoun. Fall 2013 Math 465/565. Office : MG241A Office Hours : Wednesday 10:00-12:00 and 1:00-3:00
Numerical Analysis Professor Donna Calhoun Office : MG241A Office Hours : Wednesday 10:00-12:00 and 1:00-3:00 Fall 2013 Math 465/565 http://math.boisestate.edu/~calhoun/teaching/math565_fall2013 What is
Assignment 2: Option Pricing and the Black-Scholes formula The University of British Columbia Science One CS 2015-2016 Instructor: Michael Gelbart
Assignment 2: Option Pricing and the Black-Scholes formula The University of British Columbia Science One CS 2015-2016 Instructor: Michael Gelbart Overview Due Thursday, November 12th at 11:59pm Last updated
InfiniteGraph: The Distributed Graph Database
A Performance and Distributed Performance Benchmark of InfiniteGraph and a Leading Open Source Graph Database Using Synthetic Data Objectivity, Inc. 640 West California Ave. Suite 240 Sunnyvale, CA 94086
Gephi Tutorial Quick Start
Gephi Tutorial Welcome to this introduction tutorial. It will guide you to the basic steps of network visualization and manipulation in Gephi. Gephi version 0.7alpha2 was used to do this tutorial. Get
Exercise 0. Although Python(x,y) comes already with a great variety of scientic Python packages, we might have to install additional dependencies:
Exercise 0 Deadline: None Computer Setup Windows Download Python(x,y) via http://code.google.com/p/pythonxy/wiki/downloads and install it. Make sure that before installation the installer does not complain
ANSA and μeta as a CAE Software Development Platform
ANSA and μeta as a CAE Software Development Platform Michael Giannakidis, Yianni Kolokythas BETA CAE Systems SA, Thessaloniki, Greece Overview What have we have done so far Current state Future direction
Fall 2012 Q530. Programming for Cognitive Science
Fall 2012 Q530 Programming for Cognitive Science Aimed at little or no programming experience. Improve your confidence and skills at: Writing code. Reading code. Understand the abilities and limitations
Practical Graph Mining with R. 5. Link Analysis
Practical Graph Mining with R 5. Link Analysis Outline Link Analysis Concepts Metrics for Analyzing Networks PageRank HITS Link Prediction 2 Link Analysis Concepts Link A relationship between two entities
Scientific Programming, Analysis, and Visualization with Python. Mteor 227 Fall 2015
Scientific Programming, Analysis, and Visualization with Python Mteor 227 Fall 2015 Python The Big Picture Interpreted General purpose, high-level Dynamically type Multi-paradigm Object-oriented Functional
Unlocking the True Value of Hadoop with Open Data Science
Unlocking the True Value of Hadoop with Open Data Science Kristopher Overholt Solution Architect Big Data Tech 2016 MinneAnalytics June 7, 2016 Overview Overview of Open Data Science Python and the Big
Network-Based Tools for the Visualization and Analysis of Domain Models
Network-Based Tools for the Visualization and Analysis of Domain Models Paper presented as the annual meeting of the American Educational Research Association, Philadelphia, PA Hua Wei April 2014 Visualizing
Welcome to the second half ofour orientation on Spotfire Administration.
Welcome to the second half ofour orientation on Spotfire Administration. In this presentation, I ll give a quick overview of the products that can be used to enhance a Spotfire environment: TIBCO Metrics,
Monitis Project Proposals for AUA. September 2014, Yerevan, Armenia
Monitis Project Proposals for AUA September 2014, Yerevan, Armenia Distributed Log Collecting and Analysing Platform Project Specifications Category: Big Data and NoSQL Software Requirements: Apache Hadoop
SGL: Stata graph library for network analysis
SGL: Stata graph library for network analysis Hirotaka Miura Federal Reserve Bank of San Francisco Stata Conference Chicago 2011 The views presented here are my own and do not necessarily represent the
HIGH PERFORMANCE BIG DATA ANALYTICS
HIGH PERFORMANCE BIG DATA ANALYTICS Kunle Olukotun Electrical Engineering and Computer Science Stanford University June 2, 2014 Explosion of Data Sources Sensors DoD is swimming in sensors and drowning
Scientific Programming in Python
UCSD March 9, 2009 What is Python? Python in a very high level (scripting) language which has gained widespread popularity in recent years. It is: What is Python? Python in a very high level (scripting)
SAP InfiniteInsight 7.0 SP1
End User Documentation Document Version: 1.0-2014-11 Getting Started with Social Table of Contents 1 About this Document... 3 1.1 Who Should Read this Document... 3 1.2 Prerequisites for the Use of this
CIS 192: Lecture 13 Scientific Computing and Unit Testing
CIS 192: Lecture 13 Scientific Computing and Unit Testing Lili Dworkin University of Pennsylvania Scientific Computing I Python is really popular in the scientific and statistical computing world I Why?
Big Data Paradigms in Python
Big Data Paradigms in Python San Diego Data Science and R Users Group January 2014 Kevin Davenport! http://kldavenport.com [email protected] @KevinLDavenport Thank you to our sponsors: Setting up
MACHINE LEARNING IN HIGH ENERGY PHYSICS
MACHINE LEARNING IN HIGH ENERGY PHYSICS LECTURE #1 Alex Rogozhnikov, 2015 INTRO NOTES 4 days two lectures, two practice seminars every day this is introductory track to machine learning kaggle competition!
Graph/Network Visualization
Graph/Network Visualization Data model: graph structures (relations, knowledge) and networks. Applications: Telecommunication systems, Internet and WWW, Retailers distribution networks knowledge representation
Network Metrics, Planar Graphs, and Software Tools. Based on materials by Lala Adamic, UMichigan
Network Metrics, Planar Graphs, and Software Tools Based on materials by Lala Adamic, UMichigan Network Metrics: Bowtie Model of the Web n The Web is a directed graph: n webpages link to other webpages
Bachelor of Games and Virtual Worlds (Programming) Subject and Course Summaries
First Semester Development 1A On completion of this subject students will be able to apply basic programming and problem solving skills in a 3 rd generation object-oriented programming language (such as
Part VI. Scientific Computing in Python
Part VI Scientific Computing in Python Compact Course @ GRS, June 03-07, 2013 80 More on Maths Module math Constants pi and e Functions that operate on int and float All return values float ceil (x) floor
Hadoop and Map-reduce computing
Hadoop and Map-reduce computing 1 Introduction This activity contains a great deal of background information and detailed instructions so that you can refer to it later for further activities and homework.
Analysis of Algorithms, I
Analysis of Algorithms, I CSOR W4231.002 Eleni Drinea Computer Science Department Columbia University Thursday, February 26, 2015 Outline 1 Recap 2 Representing graphs 3 Breadth-first search (BFS) 4 Applications
Big Data and Big Analytics
Big Data and Big Analytics Introducing SciDB Open source, massively parallel DBMS and analytic platform Array data model (rather than SQL, Unstructured, XML, or triple-store) Extensible micro-kernel architecture
APPM4720/5720: Fast algorithms for big data. Gunnar Martinsson The University of Colorado at Boulder
APPM4720/5720: Fast algorithms for big data Gunnar Martinsson The University of Colorado at Boulder Course objectives: The purpose of this course is to teach efficient algorithms for processing very large
Social Media Mining. Network Measures
Klout Measures and Metrics 22 Why Do We Need Measures? Who are the central figures (influential individuals) in the network? What interaction patterns are common in friends? Who are the like-minded users
HPC Wales Skills Academy Course Catalogue 2015
HPC Wales Skills Academy Course Catalogue 2015 Overview The HPC Wales Skills Academy provides a variety of courses and workshops aimed at building skills in High Performance Computing (HPC). Our courses
Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors. Content of the Precalculus Subpackage
Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft This article provides a systematic exposition
Tutorial for the TI-89 Titanium Calculator
SI Physics Tutorial for the TI-89 Titanium Calculator Using Scientific Notation on a TI-89 Titanium calculator From Home, press the Mode button, then scroll down to Exponential Format. Select Scientific.
LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW
LabVIEW Day 1 Basics Vern Lindberg LabVIEW first shipped in 1986, with very basic objects in place. As it has grown (currently to Version 10.0) higher level objects such as Express VIs have entered, additional
Python for Scientific Computing. http://bender.astro.sunysb.edu/classes/python-science
http://bender.astro.sunysb.edu/classes/python-science Course Goals Simply: to learn how to use python to do Numerical analysis Data analysis Plotting and visualizations Symbol mathematics Write applications...
Link Prediction in Social Networks
CS378 Data Mining Final Project Report Dustin Ho : dsh544 Eric Shrewsberry : eas2389 Link Prediction in Social Networks 1. Introduction Social networks are becoming increasingly more prevalent in the daily
An Introduction to High Performance Computing in the Department
An Introduction to High Performance Computing in the Department Ashley Ford & Chris Jewell Department of Statistics University of Warwick October 30, 2012 1 Some Background 2 How is Buster used? 3 Software
Computer Science. 232 Computer Science. Degrees and Certificates Awarded. A.S. Degree Requirements. Program Student Outcomes. Department Offices
232 Computer Science Computer Science (See Computer Information Systems section for additional computer courses.) We are in the Computer Age. Virtually every occupation in the world today has an interface
[1] Learned how to set up our computer for scripting with python et al. [3] Solved a simple data logistics problem using natural language/pseudocode.
Last time we... [1] Learned how to set up our computer for scripting with python et al. [2] Thought about breaking down a scripting problem into its constituent steps. [3] Solved a simple data logistics
Apache Flink Next-gen data analysis. Kostas Tzoumas [email protected] @kostas_tzoumas
Apache Flink Next-gen data analysis Kostas Tzoumas [email protected] @kostas_tzoumas What is Flink Project undergoing incubation in the Apache Software Foundation Originating from the Stratosphere research
Introduction to MATLAB Gergely Somlay Application Engineer [email protected]
Introduction to MATLAB Gergely Somlay Application Engineer [email protected] 2012 The MathWorks, Inc. 1 What is MATLAB? High-level language Interactive development environment Used for: Numerical
Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis
Graph Theory and Complex Networks: An Introduction Maarten van Steen VU Amsterdam, Dept. Computer Science Room R4.0, [email protected] Chapter 06: Network analysis Version: April 8, 04 / 3 Contents Chapter
MapReduce. MapReduce and SQL Injections. CS 3200 Final Lecture. Introduction. MapReduce. Programming Model. Example
MapReduce MapReduce and SQL Injections CS 3200 Final Lecture Jeffrey Dean and Sanjay Ghemawat. MapReduce: Simplified Data Processing on Large Clusters. OSDI'04: Sixth Symposium on Operating System Design
Session 85 IF, Predictive Analytics for Actuaries: Free Tools for Life and Health Care Analytics--R and Python: A New Paradigm!
Session 85 IF, Predictive Analytics for Actuaries: Free Tools for Life and Health Care Analytics--R and Python: A New Paradigm! Moderator: David L. Snell, ASA, MAAA Presenters: Brian D. Holland, FSA, MAAA
Part 2: Community Detection
Chapter 8: Graph Data Part 2: Community Detection Based on Leskovec, Rajaraman, Ullman 2014: Mining of Massive Datasets Big Data Management and Analytics Outline Community Detection - Social networks -
DATA ANALYSIS II. Matrix Algorithms
DATA ANALYSIS II Matrix Algorithms Similarity Matrix Given a dataset D = {x i }, i=1,..,n consisting of n points in R d, let A denote the n n symmetric similarity matrix between the points, given as where
National Frozen Foods Case Study
National Frozen Foods Case Study Leading global frozen food company uses Altova MapForce to bring their EDI implementation in-house, reducing costs and turn-around time, while increasing overall efficiency
Cloud Computing. Lectures 10 and 11 Map Reduce: System Perspective 2014-2015
Cloud Computing Lectures 10 and 11 Map Reduce: System Perspective 2014-2015 1 MapReduce in More Detail 2 Master (i) Execution is controlled by the master process: Input data are split into 64MB blocks.
MapReduce in MPI for Large-scale Graph Algorithms
MapReduce in MPI for Large-scale Graph Algorithms Steven J. Plimpton and Karen D. Devine Sandia National Laboratories Albuquerque, NM [email protected] Keywords: MapReduce, message-passing, MPI, graph
The Clean programming language. Group 25, Jingui Li, Daren Tuzi
The Clean programming language Group 25, Jingui Li, Daren Tuzi The Clean programming language Overview The Clean programming language first appeared in 1987 and is still being further developed. It was
The Flink Big Data Analytics Platform. Marton Balassi, Gyula Fora" {mbalassi, gyfora}@apache.org
The Flink Big Data Analytics Platform Marton Balassi, Gyula Fora" {mbalassi, gyfora}@apache.org What is Apache Flink? Open Source Started in 2009 by the Berlin-based database research groups In the Apache
Matrix Multiplication
Matrix Multiplication CPS343 Parallel and High Performance Computing Spring 2016 CPS343 (Parallel and HPC) Matrix Multiplication Spring 2016 1 / 32 Outline 1 Matrix operations Importance Dense and sparse
Business Intelligence and Process Modelling
Business Intelligence and Process Modelling F.W. Takes Universiteit Leiden Lecture 7: Network Analytics & Process Modelling Introduction BIPM Lecture 7: Network Analytics & Process Modelling Introduction
CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) 3 4 4 7 5 9 6 16 7 8 8 4 9 8 10 4 Total 92.
Name: Email ID: CSE 326, Data Structures Section: Sample Final Exam Instructions: The exam is closed book, closed notes. Unless otherwise stated, N denotes the number of elements in the data structure
Analysis Programs DPDAK and DAWN
Analysis Programs DPDAK and DAWN An Overview Gero Flucke FS-EC PNI-HDRI Spring Meeting April 13-14, 2015 Outline Introduction Overview of Analysis Programs: DPDAK DAWN Summary Gero Flucke (DESY) Analysis
What you can do:...3 Data Entry:...3 Drillhole Sample Data:...5 Cross Sections and Level Plans...8 3D Visualization...11
What you can do:...3 Data Entry:...3 Drillhole Sample Data:...5 Cross Sections and Level Plans...8 3D Visualization...11 W elcome to North Face Software s software. With this software, you can accomplish
Introduction to Python
Introduction to Python Sophia Bethany Coban Problem Solving By Computer March 26, 2014 Introduction to Python Python is a general-purpose, high-level programming language. It offers readable codes, and
ESPResSo Summer School 2012
ESPResSo Summer School 2012 Introduction to Tcl Pedro A. Sánchez Institute for Computational Physics Allmandring 3 D-70569 Stuttgart Germany http://www.icp.uni-stuttgart.de 2/26 Outline History, Characteristics,
Scientific Programming with Python. Randy M. Wadkins, Ph.D. Asst. Prof. of Chemistry & Biochem.
Scientific Programming with Python Randy M. Wadkins, Ph.D. Asst. Prof. of Chemistry & Biochem. What is Python? Python for computers is: a scripting language a programming language interpreted, so it
Data Analytics at NERSC. Joaquin Correa [email protected] NERSC Data and Analytics Services
Data Analytics at NERSC Joaquin Correa [email protected] NERSC Data and Analytics Services NERSC User Meeting August, 2015 Data analytics at NERSC Science Applications Climate, Cosmology, Kbase, Materials,
Core Curriculum to the Course:
Core Curriculum to the Course: Environmental Science Law Economy for Engineering Accounting for Engineering Production System Planning and Analysis Electric Circuits Logic Circuits Methods for Electric
Architectures for massive data management
Architectures for massive data management Apache Spark Albert Bifet [email protected] October 20, 2015 Spark Motivation Apache Spark Figure: IBM and Apache Spark What is Apache Spark Apache
Data Analysis with MATLAB. 2013 The MathWorks, Inc. 1
Data Analysis with MATLAB 2013 The MathWorks, Inc. 1 Agenda Introduction Data analysis with MATLAB and Excel Break Developing applications with MATLAB Solving larger problems Summary 2 Modeling the Solar
Graph Theory and Complex Networks: An Introduction. Chapter 06: Network analysis. Contents. Introduction. Maarten van Steen. Version: April 28, 2014
Graph Theory and Complex Networks: An Introduction Maarten van Steen VU Amsterdam, Dept. Computer Science Room R.0, [email protected] Chapter 0: Version: April 8, 0 / Contents Chapter Description 0: Introduction
Data Intensive Computing Handout 6 Hadoop
Data Intensive Computing Handout 6 Hadoop Hadoop 1.2.1 is installed in /HADOOP directory. The JobTracker web interface is available at http://dlrc:50030, the NameNode web interface is available at http://dlrc:50070.
dedupe Documentation Release 1.0.0 Forest Gregg, Derek Eder, and contributors
dedupe Documentation Release 1.0.0 Forest Gregg, Derek Eder, and contributors January 04, 2016 Contents 1 Important links 3 2 Contents 5 2.1 API Documentation...........................................
VWF. Virtual Wafer Fab
VWF Virtual Wafer Fab VWF is software used for performing Design of Experiments (DOE) and Optimization Experiments. Split-lots can be used in various pre-defined analysis methods. Split parameters can
Big Data Technology Motivating NoSQL Databases: Computing Page Importance Metrics at Crawl Time
Big Data Technology Motivating NoSQL Databases: Computing Page Importance Metrics at Crawl Time Edward Bortnikov & Ronny Lempel Yahoo! Labs, Haifa Class Outline Link-based page importance measures Why
Data-Intensive Applications on HPC Using Hadoop, Spark and RADICAL-Cybertools
Data-Intensive Applications on HPC Using Hadoop, Spark and RADICAL-Cybertools Shantenu Jha, Andre Luckow, Ioannis Paraskevakos RADICAL, Rutgers, http://radical.rutgers.edu Agenda 1. Motivation and Background
SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH NATIONAL UNIVERSITY OF SINGAPORE
SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH NATIONAL UNIVERSITY OF SINGAPORE 2012 SPANNING CACTI FOR STRUCTURALLY CONTROLLABLE NETWORKS NGO THI TU ANH (M.Sc., SFU, Russia) A THESIS
Postprocessing with Python
Postprocessing with Python Boris Dintrans (CNRS & University of Toulouse) [email protected] Collaborator: Thomas Gastine (PhD) Outline Outline Introduction - what s Python and why using it? - Installation
Search Heuristics for Load Balancing in IP-networks
Search Heuristics for Load Balancing in IP-networks Mattias Söderqvist Swedish Institute of Computer Science [email protected] 3rd March 25 SICS Technical Report T25:4 ISSN 11-3154 ISRN:SICS-T--25/4-SE Abstract
A Tutorial on dynamic networks. By Clement Levallois, Erasmus University Rotterdam
A Tutorial on dynamic networks By, Erasmus University Rotterdam V 1.0-2013 Bio notes Education in economics, management, history of science (Ph.D.) Since 2008, turned to digital methods for research. data
THE CERN/SL XDATAVIEWER: AN INTERACTIVE GRAPHICAL TOOL FOR DATA VISUALIZATION AND EDITING
THE CERN/SL XDATAVIEWER: AN INTERACTIVE GRAPHICAL TOOL FOR DATA VISUALIZATION AND EDITING Abstract G. Morpurgo, CERN As a result of many years of successive refinements, the CERN/SL Xdataviewer tool has
2! Multimedia Programming with! Python and SDL
2 Multimedia Programming with Python and SDL 2.1 Introduction to Python 2.2 SDL/Pygame: Multimedia/Game Frameworks for Python Literature: G. van Rossum and F. L. Drake, Jr., An Introduction to Python -
Big Data Technology Map-Reduce Motivation: Indexing in Search Engines
Big Data Technology Map-Reduce Motivation: Indexing in Search Engines Edward Bortnikov & Ronny Lempel Yahoo Labs, Haifa Indexing in Search Engines Information Retrieval s two main stages: Indexing process
Parallel Ray Tracing using MPI: A Dynamic Load-balancing Approach
Parallel Ray Tracing using MPI: A Dynamic Load-balancing Approach S. M. Ashraful Kadir 1 and Tazrian Khan 2 1 Scientific Computing, Royal Institute of Technology (KTH), Stockholm, Sweden [email protected],
Exercise 1: Python Language Basics
Exercise 1: Python Language Basics In this exercise we will cover the basic principles of the Python language. All languages have a standard set of functionality including the ability to comment code,
Big Data Analytics. Lucas Rego Drumond
Big Data Analytics Big Data Analytics Lucas Rego Drumond Information Systems and Machine Learning Lab (ISMLL) Institute of Computer Science University of Hildesheim, Germany Apache Spark Apache Spark 1
5. Binary objects labeling
Image Processing - Laboratory 5: Binary objects labeling 1 5. Binary objects labeling 5.1. Introduction In this laboratory an object labeling algorithm which allows you to label distinct objects from a
