ML AI Flashcards

(42 cards)

1
Q

what is machine learning?

A

the use and development of computer systems with ability to learn and discover patterns in data

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

wha is broadcasting?

A

numpy feature that enables mathematical operations to be applied to arrays of different sizes

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

what is classification?

A

one of two classes of methods in supervised learning, where the label is a categorical value

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

what are the two types of classification?

A

binary and multi-class

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

what is a dataframe?

A

a data table or spreadsheet with row and column headers

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

what are features?

A

input variables which are predictive data elements

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

what is generalization?

A

a model’s ability to adapt to new, previously unseen data

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

what are heuristics?

A

a way of solving problems where the objective is to produce a solution within a reasonable time frame

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

what is a label?

A

in supervised learning, the “answer”

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

what is regression?

A

another method of supervised learning, where the label is any real valued number

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

what is unsupervised learning?

A

a class of machine learning problems in which labeled data are not available

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

what is artificial intelligence?

A

a broad, all encompassing term that captures the research and implementation of systems that are capable of performing tasks intelligently.

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

what is deep learning?

A

a subset of machine learning that uses a special type of ml model, neural networks, as its underlying algorithm

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

what is a data matrix?

A

consists of a collection of examples that are either labeled or unlabeled.

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

what does regression predict?

A

continuous numbers

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

what does classification predict?

A

predicts categorical values

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

what does supervised learning attempt to discover?

A

the relationship between features and an associated label for prediction

18
Q

what does unsupervised learning attempt to discover?

A

patterns in data without the use of training data containing labeled examples

19
Q

what is clustering?

A

an unsupervised learning technique that groups subsets of data that are collectively similar to one another based on the similarity of their feature values

20
Q

what is a binary classification problem?

A

when the label we are trying to predict belongs to only two possible distinct values

21
Q

what is a multi-class classification problem?

A

when the label we are trying to predict belongs to multiple distinct values

22
Q

what is a regression problem?

A

when the label we are trying to predict belongs to a real number

23
Q

what is cd?

A

change directory command

24
Q

what is pwd?

A

present working directory

25
what is ls?
lists filed and directories
26
what is mkdir?
make directory command
27
what are the ml python packages?
numpy, pandas, matplotlib, seaborn, and sci-kit learn
28
how do i define a python list?
listed = [1,2,3]
29
how do i define a range?
range = range(0, 6, 2)
30
how do i define a numpy range?
range = np.arange(0, 6, 2)
31
how do i define a list comprehension to square the numbers in a list?
list = [1, 2, 3 , 4] squared = [x**2 for x in list]
32
what does np.shape() return?
the dimensions of a numpy array
33
how would i create a two dimensional numpy array?
np.array([1, 2, 3], [4, 5, 6])
34
how do i create an identity array?
np.eye(5)
35
how would i create a matrix with 13 rows and 3 columns containing random numbers?
random = np.round(np.random.rand(13, 3), 2)
36
what do we use np.any() for?
to determine if there is any element in a numpy array that is true
37
how would i create a dataframe using a dictionary?
df = pd.DataFrame({'country': ['+1', '+2'], 'phone': ['amy', 'brian']})
38
how do i create a new column in a dataframe?
create a list of your values and then setting it like we would a dictionary: df['values'] = [1, 2, 3, 4]
39
what does df.sort_values() do?
sorts a DataFrame by the specified column
40
what does pd.concat do? ex: pd.concat([df2, df])
it will append one dataframe to another
41
how do we rename a column?
df2.rename(columns = {'country': 'country_code'})
42