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
#!/bin/bash | |
# local.sh - access a remote running jupyter notebooks, for example on a | |
# cluster, locally. These steps can be run from any directory on your local | |
# machine. | |
# Create a tunnel for notebook communication. The user and server credentials | |
# should be the same as you used to log in to the server for the `remote.sh` | |
# script. | |
ssh -N -f -L localhost:8888:localhost:8890 <user>@<server> |
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
# -*- coding: utf-8 -*- | |
"""Confidence Based Support Vector Machine | |
This algorithm implements a confidence based support vector machine, as designed | |
by Debarghya Das (website http://debarghyadas.com/). | |
To clear up any ambiguity with regards to financial terms, my use of the word | |
"Margin" throughout this coderelates to the length of the sequence of data being | |
experimented upon and "Polarity" indicates the direction of within each sequence | |
item. +1 indicates up and -1 indicates down. |