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
2
Q
What does log_e 67 mean?
A
e^x = 67, find x
e is the base
ln, from french, log naturale
(maybe)
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
4
Q
How is RF like KNN?
A
RF is like nearest neighbors in tree space
5
Q
A