Libraries for Data Mining

This quiz is designed to assess your understanding of various libraries used for data mining tasks. It covers popular libraries such as scikit-learn, pandas, and NumPy, as well as their applications in data preprocessing, feature engineering, model training, and evaluation.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which Python library is commonly used for data preprocessing and manipulation?

  1. scikit-learn
  2. pandas
  3. NumPy
  4. TensorFlow
Question 2 Multiple Choice (Single Answer)

What is the primary function of the scikit-learn library?

  1. Data visualization
  2. Model training and evaluation
  3. Data preprocessing
  4. Deep learning
Question 3 Multiple Choice (Single Answer)

Which NumPy function is used to calculate the mean of a given array?

  1. np.mean()
  2. np.average()
  3. np.median()
  4. np.sum()
Question 4 Multiple Choice (Single Answer)

What is the purpose of the 'KNeighborsClassifier' class in scikit-learn?

  1. Linear regression
  2. Decision tree classification
  3. Support vector machines
  4. K-nearest neighbors classification
Question 5 Multiple Choice (Single Answer)

Which pandas function is used to group data by a specific column?

  1. pd.groupby()
  2. pd.merge()
  3. pd.concat()
  4. pd.pivot_table()
Question 6 Multiple Choice (Single Answer)

What is the role of the 'RandomForestClassifier' class in scikit-learn?

  1. Neural network classification
  2. Linear discriminant analysis
  3. Random forest classification
  4. Naive Bayes classification
Question 7 Multiple Choice (Single Answer)

Which NumPy function is used to calculate the standard deviation of an array?

  1. np.std()
  2. np.var()
  3. np.mean()
  4. np.median()
Question 8 Multiple Choice (Single Answer)

What is the purpose of the 'cross_val_score()' function in scikit-learn?

  1. Data normalization
  2. Model hyperparameter tuning
  3. Feature selection
  4. Cross-validation
Question 9 Multiple Choice (Single Answer)

Which pandas function is used to merge two dataframes based on a common column?

  1. pd.groupby()
  2. pd.merge()
  3. pd.concat()
  4. pd.pivot_table()
Question 10 Multiple Choice (Single Answer)

What is the role of the 'LinearRegression' class in scikit-learn?

  1. Support vector regression
  2. Decision tree regression
  3. Random forest regression
  4. Linear regression
Question 11 Multiple Choice (Single Answer)

Which NumPy function is used to calculate the covariance between two arrays?

  1. np.cov()
  2. np.corrcoef()
  3. np.std()
  4. np.var()
Question 12 Multiple Choice (Single Answer)

What is the purpose of the 'GridSearchCV' class in scikit-learn?

  1. Data preprocessing
  2. Model training and evaluation
  3. Feature engineering
  4. Hyperparameter tuning
Question 13 Multiple Choice (Single Answer)

Which pandas function is used to create a pivot table from a dataframe?

  1. pd.groupby()
  2. pd.merge()
  3. pd.concat()
  4. pd.pivot_table()
Question 14 Multiple Choice (Single Answer)

What is the role of the 'DecisionTreeClassifier' class in scikit-learn?

  1. Neural network classification
  2. Linear discriminant analysis
  3. Random forest classification
  4. Decision tree classification
Question 15 Multiple Choice (Single Answer)

Which NumPy function is used to calculate the eigenvalues and eigenvectors of a matrix?

  1. np.linalg.eig()
  2. np.linalg.svd()
  3. np.linalg.det()
  4. np.linalg.inv()