1/69
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Nominal
categories, no order.
Ordinal
categories with order.
Interval
meaningful differences but no true zero.
Ratio
true zero and meaningful ratios.
Categorical
qualitative.
Numerical
quantitative.
Discrete
countable values.
Continuous
real-number measurements.
Binary is a
special type of discrete attribute.
Asymmetric
presence matters more than absence.
Dimensionality
number of attributes.
Higher similarity
more alike.
Lower dissimilarity/distance
more alike.
Proximity can refer to
similarity or dissimilarity.
Nominal same values ā
similarity 1, distance 0.
Nominal different values ā
similarity 0, distance 1.
Euclidean
L2 = straight-line distance.
Euclidean:
subtract ā square ā add ā square root.
Standardize when
attribute scales differ.
Distance from a point to itself
0.
Manhattan
L1 = city-block distance.
Manhattan uses
absolute differences.
f01
x0/y1.
f10
x1/y0.
f00
both 0.
f11
both 1.
SMC counts
0-0 matches.
Jaccard ignores
0-0 matches.
Jaccard similarity
shared positive overlap.
Jaccard distance
1 ā similarity.
Identical sets ā
Jaccard distance 0.
No overlap ā
Jaccard distance 1.
Intersection
shared items.
Union
all unique items.
Cosine
direction, not magnitude.
Cosine 1
same direction.
Cosine 0
orthogonal.
Cosine ā1
opposite direction.
Correlation range
ā1 to +1.
+1
perfect positive correlation.
0
no linear correlation.
ā1
perfect negative correlation.
Correlation
does not prove causation.
A confounding variable
may affect both variables.
#
starts a Python comment.
Python indentation/whitespace
matters.
def
defines a function.
return
returns function output.
"\t"
has length 1.
r"\t"
has length 2.
[ ]
list.
( )
tuple.
dict
mapping/key-value pairs.
.split(",")
splits at commas.
Values returned by .split()
are still strings.
float()
converts to floating point.
.append()
adds to a list.
Iteration
repeatedly visiting items.
Iterable
can be iterated through.
A list comprehension
has the general form [expr for value in collection if condition].
Regex
pattern matching/searching text.
.
any character.
\d
digit.
\w
word character.
+
one or more.
*
zero or more.
[ ]
listed/ranged characters.
^
start of string.
$
end of string.
[a-z]+
one or more lowercase letters.