
1 Write the main method
2 . Write the 3 parts needed to read an integer called numberl
from the keyboard
5 Wnte the code to declare a CONSTANT called
RATE at .03
4. Write the code to create a class.
'
'
= Concepts =
=
=
What are the 3 elements of class
Hw #2: MidTerm Review
= Syntax
Write the main method
1. Write
,
Public static void main(String[] args)cfw_
the
Irom
!
number
called
integer
an
2. Write the 4 parts needed to prompt and read
keyboard
Import.Java. util.
Public static void main(String [] arg
Name the 4 parts of code needed to input the integer length from the keyboard.
1 polymorphism
2 Inheritance
3 Encapsulation dataH. Dins 7/4=1 or 7.0141.75
Name the 4 programming constructs found in all languages
1 Syntax
2 Logic
3 SemanticReal time.
Th
B555  Machine Learning  Homework 3
Enrique Areyan
April 13, 2015
Problem 1: Consider a logistic regression problem where X = Rk and Y = cfw_1, +1.
Derive the weight update rule that maximizes the likelihood.
Solution: By definition, for this logistic re
B555  Machine Learning  Homework 4
Enrique Areyan
April 28, 2015
Problem 1: Give decision trees to represent the following Boolean functions
a) A B
b) A [B C]
c) A B
d) [A B] [C D]
B
e) [A B] [C D]
where A is a negation of A and is an exclusive OR oper
B555  Machine Learning  Homework 2
Enrique Areyan
March 05, 2015
Problem 1: Suppose that the number of accidents occurring daily in a certain plant has a Poisson distribution with an
unknown mean . Based on previous experience in similar industrial plan
B555  Machine Learning  Homework 1
Enrique Areyan
February 07, 2015
Problem 1: Let (, F, P ) be a probability space. Using only the set operations and axioms of probability, show that for
any two sets, not necessarily disjoint, A and B
P (A B) = P (A)