Untitled 출처¶http://jorditorres.org/first-contact-with-tensorflow/#cap4 (First Contact with tensorflow)https://tensorflow.rstudio.com/ (TensorFlow™ for R)http://motioninsocial.com/tufte/ (Tufte in R) 단일 신경망 Single Layer Neural Network (ver.R)¶ The MNIST data-set¶숫자 손글씨(hand-written digits)에 관한 엄청 유명한 데이터 셋.training set으로 6만 개 이상, test set으로 1만 개이다.흑백사진으로 이루어져있고, anti-aliasing 돼있다. 전 처리가 다 돼있기 때문에..
Untitled 출처¶http://jorditorres.org/first-contact-with-tensorflow/#cap4 (First Contact with tensorflow) 단일신경망 Single Layer Neural Network (ver. python)¶ The MNIST data-set¶숫자 손글씨(hand-written digits)에 관한 엄청 유명한 데이터 셋.training set으로 6만개 이상, test set으로 1만개이다.흑백사진으로 이루어져있고, anti-aliasing 돼있다. 전 처리가 다 돼있기 때문에, 패턴인식을 시작하는 사람들에게 이상적이라고 한다.supervised learning의 한 예이다. In [1]: import tensorflow as tf from..
Clustering+ver_Python 출처¶http://jorditorres.org/first-contact-with-tensorflow/#cap3 (First contact with tensorflow) k-means 군집화 (ver. 파이썬)¶k-means Clustering (ver. Python)¶ 1. 좌표값 생성¶ In [1]: import numpy as np num_puntos = 2000 conjunto_puntos = [] for i in range(num_puntos): if np.random.random()
출처 http://jorditorres.org/first-contact-with-tensorflow/#cap3 (First Contact with tensorflow)https://tensorflow.rstudio.com/ (TensorFlow™ for R)http://motioninsocial.com/tufte/ (Tufte in R) k-means 군집화 (ver. R) k-means Clustering (ver. Python) 1. 좌표값 생성 num_puntos
출처 http://jorditorres.org/first-contact-with-tensorflow/#cap2 (First contact with tensorflow)https://tensorflow.rstudio.com/ (Tensorflow™ for R)https://github.com/rstudio/tensorflow (GitHub - rstudio/tensorflow)http://motioninsocial.com/tufte/ (Tufte in R)http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2) (Cookbook for R) 좌표 값 생성 num_points
출처¶ http://jorditorres.org/first-contact-with-tensorflow/#cap2 (First contact with tensorflow) 선형 회귀분석 (ver. 파이썬)¶ linear regression (ver. Python)¶ 1. 좌표값 생성¶ numpy 모듈 임포트 In [1]: import numpy as np 좌표값 생성 In [2]: num_points = 1000 vectors_set = [] for i in range(num_points): x1 = np.random.normal(0.0, 0.55) y1 = x1 * 0.1 + 0.3 + np.random.normal(0.0, 0.03) vectors_set.append([x1, y1]) x_dat..
기본 자료 구조 : 텐서 출처 http://jorditorres.org/first-contact-with-tensorflow/#cap3 (First contact with tensorflow)https://tensorflow.rstudio.com/basic_usage.html#tensors (TensorFlow™ for R)https://www.tensorflow.org/programmers_guide/dims_types (TensorFlow™) 텐서플로와 파이썬 자료형 Data_type Python_type Description DT_FLOAT tf.float32 32비트 실수 DT_DOUBLE tf.float64 64비트 실수 DT_INT8 tf.int8 8비트 정수 DT_INT16 tf.int16 ..
Tensorflow for R 설치 install.packages("tensorflow") require(tensorflow) install_tensorflow()를 하면 설치가 잘 되다가 에러가 뜬다. Error: Required package curl not found. Please run: install.packages('curl') 그래서 curl을 설치해주고 다시 install_tensorflow()를 했다.install.packages("curl") install_tensorflow()생각보다 금방 설치한다. 실행 예제 1 (Hello, TensorFlow!)sess = tf$Session() hello