Skip to content총 18개의 글이 있습니다.
python
import numpy as np
import tensorflow as tf
x = np.array([[0,0], [1,0], [1,1], [0,0], [0,0], [0,1]]) 바퀴, 날개
y = np.array([
[1,0,0], 배
[0,1,0], 자동차
[0,0,1], 비행기
[1,0,0],
[1,0,0],
[0,0,1]
])
model = tf.keras.Sequential()
model.add(tf.keras.layers.Dense(input_dim=2, units=10, activation='relu')) input_dim : 입력값 갯수
model.add(tf.keras.layers.Dense(units=5, activation='relu'