Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 argparse | |
from pathlib import Path | |
import duckdb | |
# Create the parser | |
parser = argparse.ArgumentParser('`init_database.py` creates a DuckDB database ' | |
'from the eICU dataset.') | |
# Add the arguments |
This file contains 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
# EditorConfig is awesome: https://EditorConfig.org | |
# Top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true |
This file contains 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
-- Description: This file contains the SQL statements to create the tables to store two geosocial datasets into a MySQL/MariaDB database | |
-- The datasets are available at http://snap.stanford.edu/data/loc-gowalla.html | |
-- and http://snap.stanford.edu/data/loc-brightkite.html | |
-- Create database and tables to store the Gowalla and Brightkite datasets | |
DROP DATABASE IF EXISTS geosocial_db; -- Drop the database if it exists (comment this line if you want to keep the old database | |
CREATE DATABASE geosocial_db; -- Create the geosocial_db database (comment this line if you want to keep the old database | |
-- Switch the geosocial_db database | |
USE geosocial_db; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
// dataset = ds | |
// Deleting all the nodes | |
MATCH (n) | |
DETACH DELETE n; | |
// Deleteing all the edges | |
MATCH ()-[r]->() | |
DELETE r; |
This file contains 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
# Download the 'train_embeddings.pkl' from https://files.fm/f/76h5d4229 | |
# Run the code in the folder where 'train_embeddings.pkl' is located. | |
import io | |
import compress_pickle as pickle | |
import numpy as np | |
import tensorflow as tf | |
from keras import Sequential | |
from keras.callbacks import ModelCheckpoint, ReduceLROnPlateau, EarlyStopping |
This file contains 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
\RequirePackage{tikz} | |
\documentclass[varwidth]{standalone} | |
\usepackage{import} | |
\usepackage{pgfplots} | |
\usepgfplotslibrary{groupplots} | |
\pgfplotsset{compat=newest} |