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
| [{"rank":1,"region":"EU","points":1078.3145346143147,"name":"G2","roster":[{"name":"NiKo","country":"Bosnia and Herzegovina","countryIso":"ba"},{"name":"huNter-","country":"Bosnia and Herzegovina","countryIso":"ba"},{"name":"jks","country":"Australia","countryIso":"au"},{"name":"HooXi","country":"Denmark","countryIso":"dk"},{"name":"m0NESY","country":"Russia","countryIso":"ru"}]},{"rank":2,"region":"EU","points":964.8764710157909,"name":"Heroic","roster":[{"name":"cadiaN","country":"Denmark","countryIso":"dk"},{"name":"stavn","country":"Denmark","countryIso":"dk"},{"name":"TeSeS","country":"Denmark","countryIso":"dk"},{"name":"sjuush","country":"Denmark","countryIso":"dk"},{"name":"jabbi","country":"Denmark","countryIso":"dk"}]},{"rank":3,"region":"EU","points":952.9201875832356,"name":"FaZe","roster":[{"name":"karrigan","country":"Denmark","countryIso":"dk"},{"name":"rain","country":"Norway","countryIso":"no"},{"name":"Twistzz","country":"Canada","countryIso":"ca"},{"name":"ropz","country":"Estonia","country |
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
| def weight_proc(matrix, name, k, diag=0, checks=False): | |
| if checks: | |
| if not all(matrix[i][j] == matrix[j][i] for i, neighbors in matrix.neighbors.items() for j in neighbors): | |
| print("Matrix is not symmetric!") | |
| full_matrix, ids = matrix.full() | |
| np.fill_diagonal(full_matrix, diag) | |
| # Convert to a sparse matrix |
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 pickle | |
| import time | |
| import pandas as pd | |
| import geopandas as gpd | |
| from libpysal.weights import Kernel | |
| from shapely.geometry import Point | |
| from splot import esda as esdaplot | |
| from pysal.explore import esda | |
| from esda.moran import Moran | |
| import os |
NewerOlder