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
I Early stop triggered as (for last 4 steps) validation loss: 43.402323 with standard deviation: 0.395598 and mean: 43.838659 | |
I FINISHED optimization in 3:21:50.517237 | |
WARNING:tensorflow:From /home/trainer/ds-train/lib/python3.6/site-packages/tensorflow_core/contrib/rnn/python/ops/lstm_ops.py:597: Layer.add_variable (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version. | |
Instructions for updating: | |
Please use `layer.add_weight` method instead. | |
W0213 14:28:47.242244 140350741464896 deprecation.py:323] From /home/trainer/ds-train/lib/python3.6/site-packages/tensorflow_core/contrib/rnn/python/ops/lstm_ops.py:597: Layer.add_variable (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version. | |
Instructions for updating: | |
Please use `layer.add_weight` method instead. | |
INFO:tensorflow:Restoring parameters from /mnt/checkpoints/best_dev-8914 | |
I0213 14:28:47.313651 140350741464896 saver.py:1284] Restoring parameters from /mnt/checkp |
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 os | |
import logging | |
import subprocess | |
import sys | |
import m3 | |
import m3.lib.ws | |
from m3.lib.model import media_table | |
from m3.natlang.blockly import register_custom_toolbox | |
from pgaccess import pgsql |
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 os | |
import logging | |
import subprocess | |
import sys | |
import m3 | |
import m3.lib.ws | |
from m3.lib.model import media_table | |
from m3.natlang.blockly import register_custom_toolbox | |
from pgaccess import pgsql |
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 numpy as np | |
import FuncDesigner as fd | |
from openopt import NLP | |
from sklearn.metrics.pairwise import rbf_kernel, polynomial_kernel | |
def theta(x): | |
return 0.5 * (fd.sign(x) + 1.) |
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/env python | |
# tornadoweb_stormed.py | |
import logging | |
import sys | |
import stormed | |
import tornado.ioloop | |
import tornado.web |
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: utf8 -*- | |
import sys | |
import unicodedata | |
import re | |
def compress_whitespace(string): | |
elements = string.split() | |
return " ".join(elements) | |
pseudo_accents = (u'\N{apostrophe}', |
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 os | |
import sys | |
from cherrypy import wsgiserver | |
from paste.translogger import TransLogger | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'meteoweb.settings' | |
import django.core.handlers.wsgi | |
application = django.core.handlers.wsgi.WSGIHandler() |
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
// compile with $scalac -P:continuations:enable test_exception.scala | |
// execute with $scala Test | |
import scala.util.continuations._ | |
object Test { | |
type WithExc[A] = Either[Exception, A] | |
def main(args: Array[String]) { | |
bar(); |
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
class TestConnectionHandshake(testing.AsyncTestCase): | |
def test_handshake(self): | |
conn = Connection('localhost', io_loop=self.io_loop) | |
def on_connect(): | |
self.assertEquals(conn.status, status.CONNECTED) | |
conn.close(self.stop) | |
conn.connect(on_connect) | |
self.wait() |
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
class TestConnectionHandshake(testing.AsyncTestCase): | |
def test_handshake(self): | |
conn = Connection('localhost', io_loop=self.io_loop) | |
def on_connect(): | |
self.assertEquals(conn.status, status.CONNECTED) | |
conn.close(self.stop) | |
conn.connect(on_connect) | |
self.wait() |