Prévia do material em texto
Explanation: The F1 Score is the harmonic mean of precision and recall, making it a suitable metric for evaluating models on imbalanced datasets where you want to balance false positives and false negatives. 15) In the context of decision tree algorithms, which of the following criteria is commonly used to determine the best feature for splitting the data at each node, and how does it influence the resulting tree structure? A) Mean Squared Error B) Information Gain C) Cross-Entropy D) R-Squared E) Variance Correct option: B) Explanation: Information gain measures the reduction in entropy achieved by splitting the dataset based on a feature, guiding the construction of the decision tree by selecting features that provide the most informative splits, ultimately influencing the tree's depth and complexity. 16) In the context of unsupervised learning, what is the primary advantage of using a hierarchical clustering algorithm compared to traditional clustering methods like K- Means, particularly in terms of the information it provides about the data structure? A) It requires less computational power. B) It provides a dendrogram that visualizes the data structure and relationships between clusters. C) It can only handle binary data. D) It does not require distance metrics. E) It is faster to converge. Correct option: B) Explanation: Hierarchical clustering produces a dendrogram, a tree-like structure that illustrates the arrangement of clusters and their relationships, offering more insight into the data's structure compared to traditional methods like K-Means. 17) In the realm of ensemble learning, which technique combines multiple weak learners to create a strong learner, often resulting in improved accuracy and robustness of predictions, and how does it accomplish this? A) Bagging B) Boosting C) Stacking D) Voting E) Blending Correct option: B) Explanation: Boosting is an ensemble technique that sequentially trains weak learners, each focusing on the errors made by previous ones, thereby combining their predictions to create a stronger overall model that improves accuracy and reduces bias. 18) What role does the activation function play in a neural network, particularly in determining the behavior of the output layer, and how does it impact the learning process? A) It initializes the weights of the model. B) It influences the convergence speed of the optimization algorithm. C) It introduces non-linearity to the model, allowing it to learn complex patterns. D) It normalizes the input data. E) It provides the final output format. Correct option: C) Explanation: Activation functions introduce non-linearity into the model, enabling neural networks to learn and represent complex relationships in the data, which is crucial for effective learning and generalization. 19) In the context of time series forecasting, which machine learning model is particularly well-suited for capturing temporal dependencies and trends, especially when dealing with sequential data? A) Linear Regression B) Random Forest C) Recurrent Neural Networks (RNN) D) K-Nearest Neighbors E) Support Vector Machines Correct option: C) Explanation: Recurrent Neural Networks (RNNs) are designed to handle sequential data, making them ideal for time series forecasting as they can capture temporal dependencies by maintaining hidden states across time steps. 20) When implementing gradient descent, what is the significance of using mini-batch gradient descent over standard stochastic or batch gradient descent, particularly in terms of convergence and computational efficiency? A) It reduces the number of epochs required for training. B) It provides a balance between convergence speed and computational efficiency by using a subset of data. C) It eliminates the need for a validation set. D) It simplifies the model architecture. E) It is primarily used for data augmentation. Correct option: B) Explanation: Mini-batch gradient descent strikes a balance between the noisy updates of stochastic gradient descent and the stability of batch gradient descent, allowing for faster convergence and more efficient computation by updating the model based on a random subset of training data. 21) In the context of feature selection, which technique is commonly employed to identify and retain only the most relevant features while discarding the less significant ones, thus improving model performance and interpretability? A) Principal Component Analysis B) Recursive Feature Elimination C) Data Normalization D) K-Means Clustering E) Dimensionality Expansion Correct option: B) Explanation: Recursive Feature Elimination (RFE) systematically removes less significant features and builds models iteratively to identify the most important features, enhancing model performance and interpretability by focusing on relevant data. 22) In the domain of natural language processing, which model architecture is particularly known for its ability to handle long-range dependencies in text and has significantly improved performance in tasks such as machine translation and text summarization? A) Convolutional Neural Networks B) Recurrent Neural Networks C) Transformer Networks D) Decision Trees