본문 바로가기

Dev23

06-1. Tensor Flow 로 3종류 이상 Classfication (Soft max Classifier) 06-1. Softmax Classification 출처 : 모두를위한 머신러닝 (http://hunkim.github.io/ml/) 이론 Multinomial Classification¶3종류 이상의 classification Softmax function¶ In [2]: import tensorflow as tf x_data = [[1, 2, 1, 1], [2, 1, 3, 2], [3, 1, 3, 4], [4, 1, 5, 5], [1, 7, 5, 5], [1, 2, 5, 6], [1, 6, 6, 6], [1, 7, 7, 7]] # one hot incoding.. 한가지만 1 나머진0 # C C C B B B A A y_data = [[0, 0, 1], [0, 0, 1], [0, 0, 1], [0, .. 2018. 8. 20.
CentOS 에서 부팅시 서비스 자동실행 (아파치 등) 현재 서비스의 자동실행 유무 확인 [root@localhost ~]# chkconfig --list NetworkManager 0:off1:off2:on3:on4:on5:on6:off abrt-ccpp 0:off1:off2:off3:on4:off5:on6:off abrtd 0:off1:off2:off3:on4:off5:on6:off acpid 0:off1:off2:on3:on4:on5:on6:off atd 0:off1:off2:off3:on4:on5:on6:off auditd 0:off1:off2:on3:on4:on5:on6:off autofs 0:off1:off2:off3:on4:on5:on6:off blk-availability0:off1:on2:on3:on4:on5:on6:off bluetooth .. 2018. 8. 19.
CentOS에서 Flask 환경구축 (Anaconda, Apache, mod_wsgi) 순서 1. Apache (httpd) 설치 - 내 웹서버를 전세계에 뿌려줄 모듈2. Flask 설치3. mod_wsgi 설치 - Apache와 Flask를 연결시켜줄 모듈4. 연결작업5. 확인 1. Apache 설치 CentOS 를 설치하면 Apache는 기본적으로 설치되어있는 경우가 많다. [root@localhost ~]# httpd -v Server version: Apache/2.2.15 (Unix) Server built: Jun 19 2018 15:47:03 APache eXtenSion (apxs) 도 설치되어있는지 확인한다. 설치되어있지 않은경우 yum install httpd httpd-devel 2. Flask 설치 독립적인 python 환경을 위해 anaconda 혹은 virtuale.. 2018. 8. 18.
CentOS에 MySQL 설치 및 기본명령어, 백업방법 순서 1. 설치2. 기본명령어3. 백업방법 1. MySQL 설치 설치 유무확인[user@localhost ~]# rpm -qa | grep ^mysql-server만약 설치가 안되어 있는경우 아무것도 출력되지 않음 설치 [user@localhost ~]# yum install mysql-server MySQL 실행[user@localhost ~]# service mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right pla.. 2018. 8. 18.