fbpx

텐서플로 개발자 인증서

0
0
5 개월 ago

기초

import keras
import numpy as np
model = keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
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, epochs=500)

print(model.predict([10,0]))

1.질문 1

The diagram for traditional programming had Rules and Data In, but what came out?

Binary ( X ), Machine Learning (x) Answer

2.질문 2

The diagram for Machine Learning had Answers and Data In, but what came out?

Models ( X ) Bugs ( X ) Binary ( X) Rules

3.질문 3

When I tell a computer what the data represents (i.e. this data is for walking, this data is for running), what is that process called?

Learning Data ( X ) Programming the Data ( X ) Categorizing the data ( X ) Labelling the Data

4.질문 4

What is a Dense?

A layer of disconnected neurons ( X ) A layer of connected neurons

5.질문 5

What does a Loss function do?

Decides to stop training a neural network ( X ) Generates a guess ( X ) Measures how good the current ‘guess’ is

6.질문 6

What does the optimizer do?

Generates a new and improved guess

7.질문 7

What is Convergence?

The process of getting very close to the correct answer

8.질문 8

What does model.fit do?

It makes a model fit available memory ( X ) It trains the neural network to fit one set of values to another



질문 1

What’s the name of the dataset of Fashion images used in this week’s code?

Fashion MINST

질문 2

What do the above mentioned Images look like?

28×28 Greyscale

3.질문 3

How many images are in the Fashion MNIST dataset?

70,000

4.질문 4

Why are there 10 output neurons?

There are 10 different labels

5.질문 5

What does Relu do?

For a value x, it returns 1/x ( X ) It only returns x if x is greater than zero

6.질문 6

Why do you split data into training and test sets?

To train a network with previously unseen data ( X ) To make training quicker ( X ) To test a network with previously unseen data

7.질문 7

What method gets called when an epoch finishes?

on_epoch_finished ( X ) On_training_complete ( X ) on_epoch_end

8.질문 8

What parameter to you set in your fit function to tell it to use callbacks?

callbacks=

 

 

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다