Our friends of Neueda have been doing more and more work with Neo4j. One of the artefacts of that work (see their github repo for more info) has been an unbelievably wonderful page called Awesome Neo4j. This is a webpage with links and other resources that can be useful for people doing Neo4j projects - whether you are looking for tips and tricks, developer resources, language bindings, frameworks, visualization solutions, graph algorithm components, etc… all kinds of links are on this page… Truly great work of all the Contributors. And inspiring at that.
Last week, we got another great and widely publicised case of Graph Databases' usefullness throw our way. The ICIJ published their FinCEN Files research, and on top of allowing you to explore the data on their website they also published an anonymised subset of the data as a series of CSV/JSON files. My friends and colleagues Michael Hunger, Will Lyon and the rest of the team, helped with the process of making this subset available as a Neo4j database (see this github repo), and there's even a super easy FinCEN Files Neo4j Sandbox that you can spin up in no time for some investigation fun.
So of course I had to take this data for a spin myself - it seems real
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################## | |
| # check if installation is already done in user's dir | |
| USER_DIR=/home/scratch/$USER/anaconda3 | |
| if [ -d $USER_DIR ] ; then | |
| echo You already have a directory called $USER_DIR | |
| echo You have either already installed it, or you can remove this | |
| echo directory and rerun this script if you are trying to reinstall. | |
| exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import subprocess | |
| import optparse | |
| import platform | |
| #---------------------------------------Globals---------------------------------------------------- | |
| install = [] | |
| PLATFORM = platform.system() | |
| ARCHITECTURE = platform.architecture()[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| import seaborn | |
| from sklearn.cluster import KMeans | |
| import numpy as np | |
| from scipy.spatial.distance import cdist, pdist | |
| def eblow(df, n): | |
| kMeansVar = [KMeans(n_clusters=k).fit(df.values) for k in range(1, n)] | |
| centroids = [X.cluster_centers_ for X in kMeansVar] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % Matlab code to produce PCA animations shown here: | |
| % http://stats.stackexchange.com/questions/2691 | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| % Static image | |
| clear all | |
| rng(42) |
- type : git clone --recursive https://github.com/dmlc/xgboost.git
- type : cd xgboost
- type : make
- type : cd python-package
- type : python setup.py install --user
NewerOlder