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
import os | |
import pickle | |
import numpy as np | |
import tensorflow as tf | |
from keras.backend.tensorflow_backend import set_session | |
config = tf.ConfigProto() | |
config.gpu_options.per_process_gpu_memory_fraction = 0.4 | |
set_session(tf.Session(config=config)) |
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
import sys | |
import numpy as np | |
from keras.models import Sequential, Model | |
from keras.layers import Dense, SimpleRNN, Input, LSTM | |
from keras.utils import to_categorical | |
VOCABS = None | |
UNITS = 100 | |
TEXT = ['India', 'StackOverflow', 'Keras', 'SimpleRNN', 'Sequential', 'to_categorical'] | |
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
import numpy as np | |
from keras.models import Sequential, Model | |
from keras.layers import Dense, SimpleRNN, Input, LSTM | |
input_text = 'India is a vast South Asian country with diverse terrain – from Himalayan peaks to Indian Ocean coastline – and history reaching back 5 millennia. In the north, Mughal Empire landmarks i | |
nclude Delhi’s Red Fort complex and massive Jama Masjid mosque, plus Agra’s iconic Taj Mahal mausoleum. Pilgrims bathe in the Ganges in Varanasi, and Rishikesh is a yoga centre and base for Himalayan | |
trekking.' | |
UNITS = 100 | |
VOCABS = None |
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
import itertools | |
import numpy as np | |
from diskdict import DiskDict | |
from diskarray import DiskArray | |
from basescript import BaseScript | |
from wordvecspace import WordVecSpaceMem | |
class SiameseSamples(BaseScript): |
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
import itertools | |
import numpy as np | |
from diskdict import DiskDict | |
from diskarray import DiskArray | |
from basescript import BaseScript | |
from wordvecspace import WordVecSpaceMem | |
class TripletLossSamples(BaseScript): |
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
var xhr = null; | |
function ajax_call() { | |
xhr = $.ajax({ | |
type: "GET", | |
url: url1, | |
success: function (html){ | |
// do some thing | |
} | |
}); | |
} |
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
import unittest | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
class ExampleTests(unittest.TestCase): | |
def setUp(self): | |
self.driver = webdriver.Chrome() | |
def test_google_without_send_keys(self): |