Skip to content

Instantly share code, notes, and snippets.

View sadatnfs's full-sized avatar

Nafis Sadat sadatnfs

  • Microsoft
  • Seattle, WA
View GitHub Profile
@sadatnfs
sadatnfs / Makefile
Last active June 19, 2018 15:54
INLA Travis-CI test
## Makefile for downloading the source code and building
## a binary package of R-INLA
##
## Run 'make' with no arguments for usage instructions
##
## This Makefile has been tested under Ubuntu 17.10
##
## Requirements:
## mercurial
## A full gcc/g++/gfortran installation
@sadatnfs
sadatnfs / simulating_random_walks.ipynb
Created June 23, 2018 19:24
Simulating IID and Correlated Random Walks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sadatnfs
sadatnfs / SuiteSparse_config.mk
Last active July 18, 2018 16:38
Custom SuiteSparse config file for TMB builds
#===============================================================================
# SuiteSparse_config.mk: common configuration file for the SuiteSparse
#===============================================================================
# This file contains all configuration settings for all packages authored or
# co-authored by Tim Davis:
#
# Package Version Description
# ------- ------- -----------
# AMD 1.2 or later approximate minimum degree ordering
@sadatnfs
sadatnfs / cholmod_super_numeric.c
Last active July 10, 2018 17:22
cholmod_super_numeric file with higher malloc thresh
/* ========================================================================== */
/* === Supernodal/cholmod_super_numeric ===================================== */
/* ========================================================================== */
/* -----------------------------------------------------------------------------
* CHOLMOD/Supernodal Module. Copyright (C) 2005-2006, Timothy A. Davis
* The CHOLMOD/Supernodal Module is licensed under Version 2.0 of the GNU
* General Public License. See gpl.txt for a text of the license.
* CHOLMOD is also available under other licenses; contact authors for details.
* http://www.suitesparse.com
@sadatnfs
sadatnfs / cholmod_super_symbolic.c
Last active July 10, 2018 17:23
cholmod_super_symbolic.c
/* ========================================================================== */
/* === Supernodal/cholmod_super_symbolic ==================================== */
/* ========================================================================== */
/* -----------------------------------------------------------------------------
* CHOLMOD/Supernodal Module. Copyright (C) 2005-2006, Timothy A. Davis
* The CHOLMOD/Supernodal Module is licensed under Version 2.0 of the GNU
* General Public License. See gpl.txt for a text of the license.
* CHOLMOD is also available under other licenses; contact authors for details.
* http://www.suitesparse.com
@sadatnfs
sadatnfs / SS_breaker.r
Created July 10, 2018 01:06
SuiteSparse limit breaker
## this script can be used to run really large models easily in order to test limits in SuiteSparse, Matrix, TMB, and INLA
## it loads simulated data created over all africa and all years
#############################################
## setup the environment for singularity R ##
#############################################
## Set core_repo location and tmb_repo loc
core_repo <- sprintf('/share/code/geospatial/lbd_core/')
tmb_repo <- sprintf('/home/j/temp/azimmer/suitesparse_overloader')
@sadatnfs
sadatnfs / m1_bayesian_reg_tfp.ipynb
Last active August 28, 2018 21:25
Fitting a simple random intercept model on GDP data using TFP (following the radon example on TFP page)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sadatnfs
sadatnfs / m2_bayesian_reg_pyro.ipynb
Created August 28, 2018 21:21
Simple Bayesian Regression example using Pyro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sadatnfs
sadatnfs / m3_gdp_linear_model_TFP.ipynb
Last active August 28, 2018 21:26
Fitting a simple random intercept model on GDP data using TFP (following the LME example on TFP page), using both iterations and convergence
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sadatnfs
sadatnfs / tfp_linear_model_testing_Fixed.ipynb
Created September 12, 2018 17:48
Fitting model in TFP with fixed effect coefficient
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.