C1 W1
C1 W1
C1 W1
(Expressed in
Code)
calcPE(stock){
price = readPrice();
earnings = readEarnings();
Data return (price/earnings);
}
Answers
(Returned From Code)
if (ball.collide(brick)){
removeBrick();
ball.dx=-1*(ball.dx);
ball.dy=-1*(ball.dy);
}
Rules
Traditional Answers
Data Programming
Rules
Traditional Answers
Data Programming
Answers
Machine Rules
Data Learning
Activity Recognition
if(speed<4){
status=WALKING;
}
Activity Recognition
if(speed<4){ if(speed<4){
status=WALKING; status=WALKING;
} } else {
status=RUNNING;
}
Activity Recognition
Answers
Machine Rules
Data Learning
Activity Recognition
print(model.predict([10.0]))
model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
model.compile(optimizer='sgd', loss='mean_squared_error')
print(model.predict([10.0]))
model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
model.compile(optimizer='sgd', loss='mean_squared_error')
print(model.predict([10.0]))
model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
model.compile(optimizer='sgd', loss='mean_squared_error')
print(model.predict([10.0]))
model = tf.keras.Sequential([keras.layers.Dense(units=1, input_shape=[1])])
model.compile(optimizer='sgd', loss='mean_squared_error')
print(model.predict([10.0]))