Algebra Flashcards

(5 cards)

1
Q

How do you get e as a limit?

A

Compound interest at 100% per year per periods

(1+100%/n)^n

n-> infinity, this thing goes to e

2.71818

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does log_e 67 mean?

A

e^x = 67, find x

e is the base

ln, from french, log naturale

(maybe)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Cython?

A

Cython is a superset of Python

Instead of passing to Python interp, it translates to C and then compiles that.

%load_ext Cython

%%cython
def fib3(int n):
 cdef int b = 1 # \<-- this is the best trick to make it run faster; use C types
 cdef int a = 0
 cdef int t = 0
 while b \< n:
 t = a
 a = b
 b = t + b
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is RF like KNN?

A

RF is like nearest neighbors in tree space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly