Run in Google Colab
|
View on GitHub
|
Homework 12 - Networks¶
In this homework, create a visualization of a network of your choice. You are free to use any software or library to create a simple network visualization. You don't need to use this notebook or even Python, but you can if you want. The goal is to explore the data and find interesting patterns or clusters visually. If you need references, you can look at our class hands-on materials.
Instructions¶
Project Setup:
- Choose a software or library for network visualization. Some popular options include:
- Python libraries: igraph, NetworkX, Matplotlib
- JavaScript libraries: D3.js, Sigma.js
- Other tools: Gephi, Cytoscape
- Choose a software or library for network visualization. Some popular options include:
Choose a Dataset:
- Choose a network dataset that interests you. Or any of the datasets provided in the
Datasets/Networksfolder in this repository.
- Choose a network dataset that interests you. Or any of the datasets provided in the
Convert to the desired network format if needed:
- If your dataset is not already in a network format (e.g., edge list, adjacency matrix), convert it to the appropriate format. You can use libraries like Pandas to manipulate your data into the required structure. You can also use
igraphorNetworkXto create the network from your data.
- If your dataset is not already in a network format (e.g., edge list, adjacency matrix), convert it to the appropriate format. You can use libraries like Pandas to manipulate your data into the required structure. You can also use
Create at least one visualization of that network:
- You can create a simple visualization using the chosen library or software.
Documentation and Discussion:
- Comment your code and add markdown explanations for each part of your analysis. Discuss the insights you gained from the visualizations. If you do not find any insights, explain the limitations of the dataset or the visualization techniques used.
Submission:
- Ensure your notebook is complete and all cells are executed without errors.
- Save your notebook and export as either PDF or HTML. If the visualizations using altair are not being shown in the html, submit a separated version with altair html. Refer to: https://altair-viz.github.io/getting_started/starting.html#publishing-your-visualization (you can use the
chart.save('chart_file.html')method). - Submit to Canvas.
# YOUR CODE STARTS HERE
Discussion¶
Discuss briefly the results of the dimension reduction methods you applied. What do you observe? Do the reduced dimensions capture any structure of the data? How do the two methods compare? Are there any interesting patterns or clusters in the data that can be observed visually?
YOUR DISCUSSION HERE
Run in Google Colab
View on GitHub