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 tensorflow as tf | |
from tensorflow.examples.tutorials.mnist import input_data | |
import random | |
tf.set_random_seed(777) | |
mnist = input_data.read_data_sets("/tmp/data/", one_hot = True) | |
# constants | |
training_epochs = 12 |
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 tensorflow as tf | |
X = tf.placeholder("float") | |
init1 = 100 | |
init = 0 | |
step = 10 | |
K = int(init1/step) - 1 | |
W={} | |
b={} |
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 tensorflow as tf | |
import numpy as np | |
def MinMaxScaler(data): | |
numerator = data - np.min(data, 0) | |
denominator = np.max(data, 0) - np.min(data, 0) | |
# noise term prevents the zero division | |
return numerator / (denominator + 1e-7) | |
data_dim=50 | |
output_dim=3 |
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 pandas as pd | |
from pandas import DataFrame,Series | |
import pandas_datareader.data as web | |
import datetime | |
import numpy as np |
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 tensorflow as tf | |
import numpy as np | |
from tensorflow.contrib import rnn | |
def MinMaxScaler(data): | |
numerator = data - np.min(data, 0) | |
denominator = np.max(data, 0) - np.min(data, 0) | |
# noise term prevents the zero division | |
return numerator / (denominator + 1e-7) |
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 | |
number_of_points=500 #수행횟수 | |
x_point=[] # X랜덤변수 배열 | |
y_point=[] | |
a=0.22 | |
b=0.78 | |
x=-1.5 | |
x_po=[] | |
for i in range(number_of_points): | |
x=x+0.006 |
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 MyWindow(QMainWindow, form_class): | |
def __init__(self): | |
self.calltime=[] | |
self.count=0 | |
... #생략 | |
def timeout(self): | |
... #생략 | |
self.stime = 1000*(current_time.hour() * 3600 + current_time.minute() * 60 + current_time.second())+current_time.msec() | |
self.tcalltime=self.calltime #임시저장 |
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 sys | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import * | |
from PyQt5 import uic | |
from kiwoomd import * | |
import sqlite3 | |
import pandas as pd | |
from pandas import Series,DataFrame | |
import numpy as np | |
from datetime import date,timedelta |
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 sys | |
from PyQt5.QtWidgets import * | |
from PyQt5.QAxContainer import * | |
from PyQt5.QtCore import * | |
import time | |
import pandas as pd | |
import sqlite3 | |