a function that’s defined on the fly, typically to lighten syntax or return a function within a function. In python, they’re defined with the lambda keyword.
when the are equally or close to equally well represented
BeautifulSoup
a python library used to assist in web scraping, it pulls data from html and xml files that can be parsed in a variety of different ways using different methods.
a logical control to do something, conditioned on something else, for example if, elif, else
confusion matrix
counts the number of samples of each actual category that were *predicted$ to be in each category for every pair of categories. For a two class(binary) problem, the table has 4 outcomes: true positive, false positive, false negative and true negative
a data structure provided by pandas for tabular data in python.
data leakage
data from the test set is used in training and then falsely improves the test performance
dictionary
(data type) a mapping array that matches keys to values. doc
(in NLP) all of the possible tokens a model knows
discriminative model
a model that describes the decision rule for labeling a sample as one class or another
display
in jupyter notebooks, an HTML rendering of the output of a cell
document
unit of text for analysis (one sample). Could be one sentence, one paragraph, or an article, depending on the goal
error bars
typically vertical, but sometimes also horizontal lines on a point in a line graph or bar in bar chart that indicate the spread of the samples used to create that point or bar height
false negative
items in the positive class that were predicted in the negative class
items incorrectly predicted as members of the negative class
false negative rate
the percentage of actual positive items that were incorrectly classified
items in the negative class that were predicted in the postive class
items incorrectly predicted as members of the positive class
feature
an input variable in a prediction algorithm
an independent variable
generalize
to describe previously unseen data, solving related, but not in the training data problems
generative model
a model that describes the data and therefore can also be used to generate new data that looks like the training data.
gh
GitHub’s command line tools
git
a version control tool; it’s a fully open source and always free tool, that can be hosted by anyone or used without a host, locally only.
GitHub
a hosting service for git repositories
hyperparameter
parameters of the learning algorithm that are set by the user and possibly optimized over in an outer loop; in sklearn these are set when instantiating the estimator object
index
(verb) to index into a data structure means to pick out specified items, for example index into a list or a index into a data frame. Indexing usually invovlees square brackets []
(noun) the index of a dataframe is like a column, but it can be used to refer to the rows. It’s the list of names for the rows.
interpreter
the translator from human readable python code to something the computer can run. An interpreted language means you can work with python interactively
iterate
To do the same thing to each item in an iterable data structure, typically, an iterable type. Iterating is usually described as iterate over some data structure and typically uses the for keyword
iterable
any object in python that can return its members one at a time. The most common example is a list, but there are others.
a project folder with tracking information in it in the form of a .git file
scale parameter
a parameter of a distribution that controls its width. e.g. variance in a Guassian
schema
(formal)a description of how a database is set up
(informal) a description of what different columns in a data set mean
Series
a data structure provided by pandas for single columnar data with an index. Subsetting a Dataframe or applying a function to one will often produce a Series
a paradigm for splitting data into groups using a column, applying some function(aggregation, transformation, or filtration) to each piece and combinging in the individual pieces back together to a single table
Words that do not convey important meaning, we don’t need them (like a, the, an,). Note that this is context dependent. These words are removed when transforming text to numerical representation
suffix
additional part of the name that gets added to end of a name in a merge operation
supervised learning
a type of machine learning that requires both features and target variables at time of training
machine learning with labeled examples
target
the output of a prediction algorithm
also called the dependent variable or label
test accuracy
percentage of predictions that the model predict correctly, based on held-out (previously unseen) test data
test data
data that was not used in training that is instead used to evaluate the perforance of a model
Tidy Data Format
Tidy data is a database format that ensures data is easy to manipulate, model and visualize. The specific rules of Tidy Data are as follows: Each variable is a column, each row is an observation, and each observable unit is a table.
a sequence of characters in some particular document that are grouped together as a useful semantic unit for processing (typically a word, but more gneeral)
TraceBack
an error message in python that traces back from the line of code that had caused the exception back through all of the functions that called other functions to reach that line. This is sometimes call tracing back through the stack
training accuracy
percentage of predictions that the model predict correctly, based on the training data