woneuy01 / Intro_keras

0 stars 0 forks source link

lesson 1 #1

Open woneuy01 opened 4 years ago

woneuy01 commented 4 years ago

1

2

woneuy01 commented 4 years ago

Intor_keras.pdf

ppt

woneuy01 commented 4 years ago

1

woneuy01 commented 4 years ago

1

woneuy01 commented 4 years ago

image

woneuy01 commented 4 years ago

Instantiate a Sequential model. Add a Dense layer of 50 neurons with an input shape of 1 neuron. Add two Dense layers of 50 neurons each and 'relu' activation. End your model with a Dense layer with a single neuron and no activation.

Instantiate a Sequential model

model = Sequential()

Add a Dense layer with 50 neurons and an input of 1 neuron

model.add(Dense(50, input_shape=(1,), activation='relu'))

Add two Dense layers with 50 neurons and relu activation

model.add(Dense(50,input_shape=(50,), activation='relu')) model.add(Dense(50,input_shape=(50,), activation='relu'))

End your model with a Dense layer and no activation

model.add(Dense(1))

woneuy01 commented 4 years ago

1

2

woneuy01 commented 4 years ago

1

2

woneuy01 commented 4 years ago

1

2

woneuy01 commented 4 years ago

1

2

3

woneuy01 commented 4 years ago

1

2

3

woneuy01 commented 4 years ago

1

2