[ML] 머신러닝 공부 20241203
첫 모델 만들기 import numpy as npfrom tensorflow.keras.models import Sequentialfrom tensorflow.keras.layers import Dense, InputLayerdense = Dense(units=1)model = Sequential([ InputLayer(shape=[1]), dense])model.compile(optimizer="sgd", loss="mean_squared_error")xs = np.array([-1.0, 0.0, 1.0, 2.0, 3.0, 4.0], dtype=float)ys = np.array([-3.0, -1.0, 1.0, 3.0, 5.0, 7.0], dtype=float)model.fit(xs, ys,..
2024. 12. 3.