This file contains hidden or 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 hashlib as hasher | |
import datetime as date | |
# Define what a Snakecoin block is | |
class Block: | |
def __init__(self, index, timestamp, data, previous_hash): | |
self.index = index | |
self.timestamp = timestamp | |
self.data = data | |
self.previous_hash = previous_hash |
This file contains hidden or 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 | |
import os, sys, json | |
import numpy as np | |
import matplotlib.pylab as plt | |
from scikits.timeseries.lib.interpolate import * | |
import scikits.statsmodels.sandbox.stats.diagnostic as diag | |
from scikits.statsmodels.tsa.filters import hpfilter | |
import scikits.statsmodels.api as sm | |
def make_reliable(target_ts, reli_ts=None): |