COEN 140 Machine Learning and Data Mining (Solution)

$ 20.99
Category:

Description

Lab Assignment #2: Linear Algebra

Guideline: Submit to Camino a pdf report with answers to the following questions. Also submit all the source code needed to generate these answers as a separate zip file to Camino.
Note: matrix and vector operations can be found in lecture slides COEN140_02_LinearAlgebraReview.pdf.

1. Create a 2ร—5 matrix ๐€ with elements as random float numbers from 0 to 1. Print the rank of ๐€.

Let ๐ = ๐€๐€๐‘‡, find the shape and rank of ๐

Let ๐‚ = ๐€๐‘‡๐€, find the shape and rank of ๐‚

2. Create a 3ร—5 matrix ๐— with elements as random integers from 0 to 10, and find the dimension (shape) of ๐€ = ๐—๐—๐‘‡ by coding;

Create a 3ร—1 column vector ๐ฐ with elements as random integers from 0 to 10, and find the dimension of ๐€๐ฐ by coding;

Find the dimension of ๐ฐ๐‘‡๐€ by coding;

Find the dimension of ๐ฐ๐‘‡๐€๐ฐ by coding.

Find a way (by coding) to verify that ๐—๐—๐‘‡ is symmetric.

Calculate ๐€โˆ’1. Print ๐€โˆ’1๐€ and ๐€๐€โˆ’1.

3. Create a 5ร—1 column vector ๐ฑ with elements as random float numbers from 0 to 1. Calculate ๐ฑ๐ฑ๐‘‡ by coding. What do you think is the rank of ๐ฑ๐ฑ๐‘‡?

4. Create a 5ร—5 identity matrix ๐ˆ and print it.

Reviews

There are no reviews yet.

Be the first to review “COEN 140 Machine Learning and Data Mining (Solution)”

Your email address will not be published. Required fields are marked *