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 | |
| #-*- coding: utf-8 -*- | |
| # Supporting Python 3 | |
| import sys, os, re | |
| try: bibtexdb = open(sys.argv[1]).read() | |
| except: print("Error: specify the file to be processed!") | |
| if not os.path.isfile('journalList.txt'): |
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
| model = Sequential() | |
| model.add(Dense( l[1], input_shape=(l[0],))) | |
| for n_w_l in l[2:]: | |
| model.add(Activation('relu')) | |
| model.add(Dense( n_w_l, W_regularizer = l2(.01))) | |
| return model |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| init = tf.initialize_all_variables() | |
| a = tf.random_normal([2, 2, 2, 2]) | |
| with tf.Session() as sess: | |
| sess.run(init) | |
| x = sess.run(a) | |
| x |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # This code is for extension of DataFrames. | |
| # By the extension, fingerprint can be loaded via string. | |
| # Each fingerprint is a set of the binary integers in python. | |
| # However, it can be not be loaded directly in Julia, which directly | |
| # trainslate a binary integer string to big interger. It is automatic even if | |
| # quoto mark is aded. Hence, "Julia" is added on a binary string as a prefix. | |
| # By doing that, Julia can read them as a character string rather than a big integer value. | |
| # bs2ba() transform binary string to binary array. |
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
| tolerence = 1e-10 | |
| M = rand(2, 2) | |
| #w0 = [1., 1] | |
| #w = copy( w0) | |
| w_org = [1, 1] / norm( [1, 1]) | |
| w_full = rand(2, 1) | |
| w = w_full / norm( w_full) |
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
| """ | |
| 파이썬3로 얼마 만큼 한글 코딩이 가능한지 알아본다. | |
| """ | |
| import random | |
| 무작위정수 = random.randint | |
| 쓰다 = print | |
| 범위 = range | |
| 지역변수들 = locals |