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.
Questions
Which Python library is commonly used for data preprocessing and manipulation?
- scikit-learn
- pandas
- NumPy
- TensorFlow
What is the primary function of the scikit-learn library?
- Data visualization
- Model training and evaluation
- Data preprocessing
- Deep learning
Which NumPy function is used to calculate the mean of a given array?
- np.mean()
- np.average()
- np.median()
- np.sum()
What is the purpose of the 'KNeighborsClassifier' class in scikit-learn?
- Linear regression
- Decision tree classification
- Support vector machines
- K-nearest neighbors classification
Which pandas function is used to group data by a specific column?
- pd.groupby()
- pd.merge()
- pd.concat()
- pd.pivot_table()
What is the role of the 'RandomForestClassifier' class in scikit-learn?
- Neural network classification
- Linear discriminant analysis
- Random forest classification
- Naive Bayes classification
Which NumPy function is used to calculate the standard deviation of an array?
- np.std()
- np.var()
- np.mean()
- np.median()
What is the purpose of the 'cross_val_score()' function in scikit-learn?
- Data normalization
- Model hyperparameter tuning
- Feature selection
- Cross-validation
Which pandas function is used to merge two dataframes based on a common column?
- pd.groupby()
- pd.merge()
- pd.concat()
- pd.pivot_table()
What is the role of the 'LinearRegression' class in scikit-learn?
- Support vector regression
- Decision tree regression
- Random forest regression
- Linear regression
Which NumPy function is used to calculate the covariance between two arrays?
- np.cov()
- np.corrcoef()
- np.std()
- np.var()
What is the purpose of the 'GridSearchCV' class in scikit-learn?
- Data preprocessing
- Model training and evaluation
- Feature engineering
- Hyperparameter tuning
Which pandas function is used to create a pivot table from a dataframe?
- pd.groupby()
- pd.merge()
- pd.concat()
- pd.pivot_table()
What is the role of the 'DecisionTreeClassifier' class in scikit-learn?
- Neural network classification
- Linear discriminant analysis
- Random forest classification
- Decision tree classification
Which NumPy function is used to calculate the eigenvalues and eigenvectors of a matrix?
- np.linalg.eig()
- np.linalg.svd()
- np.linalg.det()
- np.linalg.inv()