Artificial Intelligence and Machine Learning Flashcards

1
Q

What is a transformer models role in generative ai

A

Able to process a sentence as a whole instead of word by word.
Faster and more efficient text processing
Relative importance given to specific words in a sentence
Generate human like text

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

What is deep learning ?

A

Uses neurons and synapses to train a model.
Process more complex patterns in the data that traditional ML
Deep Learning is made up of multiple input, hidden and output layers
Examples are computer vision, NLP.
Requires larger amounts of data and GPU processors

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

What are neural networks ?

A

Nodes are organised in layers and as data is pushed into the model then new connections are made between these nodes and sometimes some node connections are removed. Nodes talk to each other forming new connections. Neural networks may have billions of nodes.

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

What are hyper parameters ?

A

A hyperparameter are the settings that define the model structure and learning algorithm and process. These are set before training begins.

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

Give some examples of hyper parameters

A

Learning Rate
Batch Size
Number of Epochs - Number of iterations
Regularisation -

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

What are the two types of inferencing ?

A

Real Time and Batch

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

What is batch inferencing ?

A

Large amounts of data that is analysed all at once. Often used for data analysis. Speed of the results is usually not a concern but accuracy is

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

What is real time inferencing ?

A

This is where computers have to make decisions quickly as data arrives. Speed is preferred over accuracy. An example is that of chatbots.

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

What are the two models for inferencing on edge

A

SLM on edge device or LLM accessed via api

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

If I wanted low latency, low impact inferencing at the edge what model would I choose ?

A

SLM

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

What metrics should I use on a binary classification.

A

Confusion Matrix

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

What are the four metrics for a confusion matrix

A

Precision - Best when false positives are costly
Recall - Best when false negatives are costly
F1 - Best when you want a balance between precision and recall especially in imbalanced datasets
Accuracy - Best for balanced data sets

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

Name the regression metrics ?

A

Mean Absolute Error
Mean Absolute Percentage Error
Root Mean Squared
R2

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

What is the difference between R2 and the other regression metrics

A

R2 is for variance the others are accuracy metrics

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

What is the Area under the curve metric

A

AUC-ROC shows what the curve for true positive compared to false positive looks like at various thresholds with multiple confusion matrixes. A value nearer to 1 is better

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

What is GPT

A

generate human text or code based on input prompts

17
Q

What is Bert ?

A

similar to GPT but reads text in two directions

18
Q

What is RNN ?

A

meant for sequential data such as timer series or text useful in speech recognition or time series data

19
Q

What is Wave Net ?

A

Model to generate raw audio waveform used in speech synthesis

20
Q

What are the four layers of AI

A

Data Layer - collection of vast amounts of data
ML Framework and Algorithm Layer - data scientists and engineers work together to understand use cases, requirements and frameworks
Model Layer - Implementation of a model and train it.
Application Layer - How to serve the model and its capabilities for your users.