Skip to content

Instantly share code, notes, and snippets.

@vishalbelsare
vishalbelsare / code.R
Created March 27, 2018 18:30 — forked from alexchinco/code.R
Illustrative Example: Why Bayesian Variable Selection Doesn't Scale
## ##########################################################################################################################
## ##########################################################################################################################
## @section: Prep workspace
## ##########################################################################################################################
## ##########################################################################################################################
options(width=200, digits=6, digits.secs=6)
rm(list=ls())
@vishalbelsare
vishalbelsare / talk.md
Created April 26, 2018 11:40 — forked from phizaz/talk.md
BKKMLMEETUP: Q-Learning for Trading

Q-Learning for algorithm trading

Q-Learning background

by Konpat

Q-Learninng is a reinforcement learning algorithm, Q-Learning does not require the model and the full understanding of the nature of its environment, in which it will learn by trail and errors, after which it will be better over time. And thus proved to be asymtotically optimal.

  • you need first to understand the Markov Decision Process, which is a graph consisting of (states, actions, rewards) denoting {S}, {A}, {R}
  • State (S)
@vishalbelsare
vishalbelsare / README.md
Created September 10, 2018 21:44 — forked from lvm/README.md
[WIP] hackish emacs mode for FoxDot

Installation

  1. put foxdot-cli.py in the same directory as the FoxDot installaton (in case you're using virtualenv, otherwise comment from lines 5 to 7)
  2. copy foxdot-mode.el to ~/.emacs.d/lisp
  3. add (defvar foxdot-cli-path "/path/to/foxdot-cli/") in your ~/.emacs file
  4. in Emacs M-x load-library and complete with foxdot-mode
  5. Type C-c C-f or M-x foxdot-start to start
  6. Type C-c C-e or M-x foxdot-execute to evaluate a line or a block of code
@vishalbelsare
vishalbelsare / multiple_ssh_setting.md
Created November 28, 2018 17:17 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@vishalbelsare
vishalbelsare / python-settings.el
Created November 30, 2018 12:10 — forked from dmitry-saritasa/python-settings.el
python-settings.el
;;; package --- Python Programming ;;;
;;; Commentary:
;;; Code:
; don't show the startup screen
(setq inhibit-startup-screen t)
; don't show the menu bar
(menu-bar-mode nil)

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@vishalbelsare
vishalbelsare / keybase.md
Last active May 31, 2019 11:46
keybase.md

Keybase proof

I hereby claim:

  • I am vishalbelsare on github.
  • I am vishalbelsare (https://keybase.io/vishalbelsare) on keybase.
  • I have a public key ASDEg5L-Eo5m8SpYQqeE1YUQ6ZJSw0ecVCNOD1dKKKtqLAo
@vishalbelsare
vishalbelsare / org-style.css
Created August 26, 2019 19:37 — forked from mowen/org-style.css
A stylesheet for the Emacs Org Mode HTML export
/**
* This stylesheet will work pretty well with a regular Org Mode HTML export.
* However, you do have to turn off all of the defaults:
*
* (setq org-export-html-style-include-scripts nil
* org-export-html-style-include-default nil)
*
* and insert a call to the stylesheet:
*
* (setq org-export-html-style
@vishalbelsare
vishalbelsare / factor_analysis.py
Created September 22, 2019 13:12 — forked from schalekamp/factor_analysis.py
simple factor analysis using python/pandas
# basic factor analysis
# http://blog.alphaarchitect.com/2015/05/28/basic-factor-analysis-simple-tools-to-understand-what-drives-performance/
import pandas as pd
import pandas.io.data as web
import datetime, re, copy
import numpy as np
import statsmodels.formula.api as sm
start = datetime.date(2000,1,1)
@vishalbelsare
vishalbelsare / factor_analysis.py
Created September 22, 2019 13:19 — forked from analyticd/factor_analysis.py
simple factor analysis using python/pandas
# basic factor analysis
# http://blog.alphaarchitect.com/2015/05/28/basic-factor-analysis-simple-tools-to-understand-what-drives-performance/
import pandas as pd
import pandas.io.data as web
import datetime, re, copy
import numpy as np
import statsmodels.formula.api as sm
start = datetime.date(2000,1,1)