stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
AI Flashcards | StudBud
Explore
/
AI
AI
13 terms
·
StudBud Administration
·
21 plays
Imported from external platform
Flashcards
13 cards
F
Practice quiz
P
Host live
L
Questions
13
Answers
1
What does .shape do in pandas?
Removes empty rows from the table
Shows the number of rows and columns in a table
Sorts the data in the table
Changes the size of the table
2
What does the .fit() method do (in machine learning)
It teaches the AI using the data
It cuts the data into two parts
Makes predictions using the trained model
It checks if the AI is correct
3
what does import 'pandas as pd' do?
It only imports the pd module from pandas, not the entire library
used for Data Manipulation
It creates a new pandas DataFrame named pd
It installs the pandas library in the current environment
4
What is the purpose of numpy in AI?
To visualize data
To perform mathematical and array operations
To handle natural language processing
To create AI models
5
What does the following line of code output?
[0. , 0.6, 1.2, 1.8, 2.4, 3. ]
Error
[0. 0.6 1.2 1.8 2.4 3. ]
[0, 3]
6
What does train_size=0.8 do?
Trains the model on 80% of the data
Allocates 80% of the data for validation
Uses 80% of the data for testing, and 20% for training
7
who is the best Ai engineer
Hamad
Alwaaled
Mrs. Samah
Fares NMR
8
np.array([1, 2, 3]) + 10 , whats the output?
[10, 10, 10]
[1, 2, 3, 10]
Error
[11, 12, 13]
9
np.arange(0, 10, 2) , whats the output?
([0. , 5.])
([0, 2, 4, 6, 8])
array([0, 2, 4, 6, 8])
array([0. , 5. ])
10
What is the primary purpose of OpenAI’s GPT models?
Speech recognition
Video processing
Text generation and understanding
Image generation
11
What does model.predict() do in machine learning?
It trains the model
It makes predictions based on new input data
It evaluates the model
it makes predictions based on all of the data
12
What will happen if you run this line of code?
A new Linear Regression model will be created
The dataset will be split into training and testing sets
The LinearRegression class will be imported, but no model is created
Scikit-learn will train a linear regression model instantly
13
does the library 'Seaborn' used for Data Visualization?
True
False