Page 504 - AI Ver 3.0 class 10_Flipbook
P. 504
27. What are the various types of plots that can be created using Matplotlib?
Ans. Matplotlib allows creating line plots, bar plots, histograms, scatter plots, pie charts, and more.
28. How do you create a basic line plot using Matplotlib?
Ans. A basic line plot in Matplotlib can be created using plt.plot(x, y) followed by plt.show().
29. How do you read and display an image using OpenCV?
Ans. OpenCV reads and displays an image using cv2.imread() to read and cv2.imshow() to display the image.
30. How can you perform aggregation or grouping of data in Pandas?
Ans. Aggregation or grouping in Pandas can be done using groupby() followed by an aggregation function like sum() or
mean().
31. How do you read data from a CSV file into a Pandas DataFrame?
Ans. Data from a CSV file can be read into a Pandas DataFrame using pd.read_csv('filename.csv').
32. How would you solve a simple linear equation or system of equations using SciPy?
Ans. To solve a linear equation, use scipy.linalg.solve() or scipy.optimize.fsolve() for systems of equations.
33. What are the main steps involved in text preprocessing for NLP tasks?
Ans. Text preprocessing for NLP typically involves tokenization, stopword removal, lowercasing, and lemmatization.
34. What is tokenization in NLP, and why is it an essential step in text preprocessing?
Ans. Tokenization splits text into smaller units like words or subwords, which is essential for analyzing text and building
models.
35. What file formats can you use to load data into Orange?
Ans. Orange supports data formats like CSV, Excel, and SQL databases for loading data.
502 Touchpad Artificial Intelligence (Ver. 3.0)-X

