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 re | |
| import numpy, theano, sys, math | |
| from theano import tensor as T | |
| from theano import shared | |
| from theano.tensor.signal import downsample | |
| from theano.tensor.nnet import conv | |
| from theano.tensor.shared_randomstreams import RandomStreams | |
| from collections import OrderedDict | |
| BATCH_SIZE=200 |
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 re | |
| import numpy, theano, sys, math | |
| from theano import tensor as T | |
| from theano import shared | |
| from theano.tensor.signal import downsample | |
| from theano.tensor.nnet import conv | |
| from theano.tensor.shared_randomstreams import RandomStreams | |
| from collections import OrderedDict | |
| BATCH_SIZE=200 |
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
| from string import translate,maketrans,punctuation | |
| from itertools import chain | |
| from nltk import PunktSentenceTokenizer | |
| import datetime | |
| import re | |
| def log(msg): | |
| print("{} {}".format(str(datetime.datetime.now()), msg)) | |
| def removeNonAscii(s): | |
| return "".join(filter(lambda x: ord(x)<128, s)) |
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 time | |
| from selenium import webdriver | |
| from selenium.webdriver.support.wait import WebDriverWait | |
| from selenium.webdriver.common.action_chains import ActionChains | |
| import random | |
| import csv | |
| import pandas as pd | |
| import pickle | |
| import random |
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 time | |
| from selenium import webdriver | |
| from selenium.webdriver.support.wait import WebDriverWait | |
| from selenium.webdriver.common.action_chains import ActionChains | |
| from selenium.webdriver.common.keys import Keys | |
| import random | |
| import csv | |
| import pandas as pd |
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 time | |
| import random | |
| import csv | |
| import pandas as pd | |
| import pickle | |
| import random | |
| import datetime | |
| import os | |
| import re | |
| from itertools import izip_longest |
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 mechanize | |
| import cookielib | |
| import urlparse | |
| import re | |
| import time | |
| import random | |
| import csv | |
| import pandas as pd | |
| import pickle | |
| import random |
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 multiprocessing | |
| from StringIO import StringIO | |
| import gzip | |
| import csv | |
| from random import shuffle | |
| import numpy as np | |
| import json | |
| from time import sleep | |
| import pymongo | |
| import datetime |
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 pymc as pm | |
| import numpy as np | |
| import math | |
| site_id = 911 | |
| def MCMC_switch_point_finder(count_data): | |
| n_count_data = len(count_data) | |
| alpha = 1.0 / count_data.mean() # Recall count_data is the | |
| # variable that holds our txt counts |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import pprint | |
| import datetime | |
| from py2neo.neo4j import Index | |
| from wikitools import wiki | |
| from wikitools import api | |
| from wikitools import category | |
| import wikitools |
OlderNewer