Python Concepts
AI technicals
AI fundamentals
AI code
100

What will the output be?

favSport = "Golf"
favSubject = "Math"

print(favSport)

Output will be Golf

100

Increasing the size of what will improve the performance of our Machine learning model.

The size of the dataset.

100
What is the most common language to code machine learning models?

Python

100

What library is used to create plots in Python?

Matplotlib

200

True or False is what kind of variable?

Boolean

200

How is ML different from Traditional Programming?

In Traditional Programming the rules are written by us humans, but in ML we train a model to write the rules for us.

200

Name an advantage ML has over Traditional Programming.

1. More Accurate

2. Easier to Maintain/Shorter

3. Time saving

or anything along those lines

200

How do you display the first 5 rows of a dataframe?

dataframe.head()

300

John wants to import a library "matplotlib.pyplot" as plt. What is the correct syntax?

A. import matplotlib as plt
B. import matplotlib.pyplot as plt
C. import matplotlib.pyplot

The correct answer is B

300

What is a common filetype to import data into your AI code?

.csv

300

What are the ideal steps to take when creating a ML model?

1. Collect Data
2. Train the model
3. Tweak the model
4. Automate the process

300

What is the function we use to load a csv in a Jupyter Notebook?

import pandas as pd

pd.read_csv()

400

array = [[0, 9], [1, 5], [3, 8]]

What is the index of [1, 5]?

Index is 1

400

What is the process of making an ML model learn from data called?

Model Training

400

What is pandas?

A Python library that allows for manipulating and analyzing data for your ML model. 
400

How do you add a colour bar to the plot?

cbar = plt.colorbar()

500

What is the difference between for loops and while loops?

For loops are used to iterate through a list, and can perform actions on the items

While loops will continue to run as long as the condition is True. If not then it won't run again. 

500

The process of converting textual features to numbers so that Computers can understand them


Ex. Replacing "Ontario" with 0, and "Quebec" with 1.

Encoding

500

What is machine learning?

A way computers can recognize patterns, make predictions and automate decision-making. All are based on data that has been given to the machine learning model. 

500

How do you encode the data? 

(HINT: use lambda function)

.apply(lambda x:1 if x == "Ontario" else 0)