Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Lecture 2 - Linear Algebra, probability and information theory, optimization

Puntuación
-
Vendido
-
Páginas
3
Subido en
26-09-2024
Escrito en
2024/2025

Lecture 2 - Linear Algebra, probability and information theory, optimization What are the two main types of array in python and what are their differences ? - correct answers 1. Lists: A list is a built-in Python data structure that can hold elements of any data type, including other lists. Lists are dynamic, which means they can grow or shrink in size as elements are added or removed. However, because lists are not stored in contiguous memory locations, they can be slower than arrays when accessing individual elements. 2. NumPy arrays: NumPy is a powerful library for numerical computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a range of mathematical functions to operate on these arrays. NumPy arrays are stored in contiguous memory locations, making them faster than lists when accessing individual elements. Both lists and NumPy arrays have their own advantages and disadvantages, and the choice of which one to use depends on the specific use case. In general, if you need to perform numerical computations, you may want to use NumPy arrays, while if you need to store elements of different data types or change the size of the container frequently, you may want to use lists. How do we create a 2x2 matrice of all zeros ? - correct answers a = ((2,2)) how do we create a line vector of all ones ? - correct answers b = ((1,2)) how to create a 2x2 matrix of full 7 ? - correct answers c = ((2,2),7) How to create a 2x2 identity matrix ? - correct answers d = (2) how to create a matrix filled with random values ? - correct answers e = m((2,2)) How to create a 3x3 matrix when we are given 3 (1,3) vectors ? - correct answers v1 = ([1,2,3]) v2 = ([4,5,6]) v3 = ([7,8,9]) M = k ([v1, v2, v3]) print(M) Ho to transpose a matrix M ? - correct answers print(M.T) how to print the inverse of a matrix M ? - correct answers print((M)) how to print the determinant of a matrix ? - correct answers print (M) how to print eigenvalues and eigenvectors ? - correct answers eigvals, eigvecs = (M) print (eigenvals)

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

Lecture 2 - Linear Algebra, probability
and information theory, optimization

How to deal with high dimensions ? - correct answers Generic term approach:

Exploit invariances and symmetries

Induced by knowledge about the economics problem.



Discover and exploit (non)-linear manifolds over which the response exhibits maximal variability.



Here, we focus on:

HD input (already satisfying symmetries).

Discoverand exploit linear

manifold of maximal variability.

what are the pillars of machine learning ? - correct answers 1. Regression

2. Dimensionality Reduction

3. Density Estimation

4. Classification

Why does linear algebra provide ? - correct answers Linear algebra provides a way of compactly
representing and operating on sets of linear equations.

What is the package in python for matrices and vectors ? - correct answers The package for matrices
and vectors is NumPy.

What is np.array in python ? - correct answers In Python, np.array refers to a function provided by the
NumPy library, which creates a new array object.



The np.array function takes a sequence (such as a list or tuple) and returns a new NumPy array object.
The resulting array can have any number of dimensions and any shape.



Once you have created an array with np.array, you can perform a wide range of operations on it, such as
mathematical operations, slicing, indexing, and more.

Escuela, estudio y materia

Grado

Información del documento

Subido en
26 de septiembre de 2024
Número de páginas
3
Escrito en
2024/2025
Tipo
Examen
Contiene
Desconocido

Temas

$25.99
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor
Seller avatar
SmartMedResources

Conoce al vendedor

Seller avatar
SmartMedResources Teachme2-tutor
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
2 año
Número de seguidores
1
Documentos
399
Última venta
1 mes hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes