Skip to content

Instantly share code, notes, and snippets.

View stefanjwojcik's full-sized avatar
Merging the parallel universes of social science and computing

Stefan Wojcik stefanjwojcik

Merging the parallel universes of social science and computing
View GitHub Profile
@stefanjwojcik
stefanjwojcik / setup_juliacall.md
Created February 21, 2021 17:53
Setting up JuliaCall without Segfaults

To get a working copy of JuliaCall in R

#Problem I was solving:

  • I was getting a SegFault Error when trying to load JuliaCall from R.
  • I was also getting package not found errors from certain pkgs prescribed by my startup.jl file

Versions

R version: R version 4.0.3 (2020-10-10) Julia: I let JuliaCall install a new version of julia at this location: /Users/swojcik/Library/Application\ Support/JuliaCall/julia/v1.5.0/bin/julia

@stefanjwojcik
stefanjwojcik / Trading_Play.jl
Created December 31, 2020 15:04
Playing around with forecasting gains in SP 500 time series data with XGBoost classifiers
using AlphaVantage
using DataFrames
using StatPlots
using Dates
using TimeSeries
using Statistics
using MLJ
using LossFunctions
# Julia and R on Amazon EC2
#### This is basically forked from: https://github.com/magerton/ec2-for-R-and-julia
## Purpose
This guide explains how to set up a simple Amazon Linux 2 instance on EC2 for use with Julia + GPU.
The guide assumes basic familiarity with a UNIX-like systems (e.g., navigating the file structure, copying, moving, ssh, etc). Note that Windows 10 now includes the "Windows Subsytem for Linux" (WSL), which provides a very nice terminal environment ([MSDN setup guide](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide)). The Git Bash terminal is also a good choice for Windows. macOS users may make use of the built-in macOS terminal.
@stefanjwojcik
stefanjwojcik / run_julia_aws.md
Created April 28, 2019 18:23
Run Julia on AWS
  • start an AWS linux 2 instance
  • ssh into instance
  • follow these steps to build julia https://github.com/magerton/ec2-for-R-and-julia
  • create symbolic link to Julia sudo ln -s /home/ubuntu/JuliaPro-0.6.3.1/julia /usr/local/bin/julia
  • build julia