전체 글 (147) 썸네일형 리스트형 활성화함수 시그모이드 함수 : Logistic 함수라고 불리기도 하며, x의 값에 따라 0~1의 값을 출력하는 S자형 함수 model.compile(loss = 'binary_crossentropy', # 오차: 이진분류 > binary_crossentropy optimizer = 'SGD', # 최적화방법 (경사하강법) metrics = ['accuracy']) # 평가방법 (분류: 정확도/accuracy) #3. 모델 학습 h1 = model.fit(X_train, y_train, validation_split = 0.2, epochs=100) #모델에 대한 전체적인 내부구조 확인 model.summary() binary crossentropy 분류 손실함수 중 하나로 이진 분류 모델에 사용 True / Fal.. 신경망 구조설계 라이브러리 불러오기 import numpy as np import pandas as pd import matplotlib.pyplot as plt 데이터 불러오기 data = pd.read_csv('data/student-mat.csv', delimiter = ';') 테이블 정보확인 data.info() train, test 분리 from sklearn.model_selection import train_test_split X_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.2,random_state=0) JDBC구현하기 그냥 경로만 잡아주면 에레가 뜨게된다. 그래서 db연결을 설정 해줘야 한다. 이전 1 2 3 4 ··· 49 다음