Prévia do material em texto
E) Decision trees that classify text based on predefined categories without taking into account the meaning of individual words. Correct option: C) Explanation: Word embeddings like Word2Vec and GloVe enhance the contextual understanding of words by placing them in a continuous vector space that reflects semantic relationships, making them suitable for various NLP tasks. 3) In the realm of reinforcement learning, which of the following best describes the role of the reward function and how it influences the agent's learning process within an environment? A) The reward function is used exclusively to initialize the learning process and has no impact on the agent's decision-making during training. B) The reward function determines the optimal path for the agent by providing a constant score for every action taken, thereby simplifying the learning process. C) The reward function provides feedback to the agent based on its actions, guiding it to maximize cumulative rewards over time, thus significantly influencing the agent's learning strategy. D) The reward function serves as a constraint that limits the agent's actions, ensuring that it only chooses safe and predictable paths during learning. E) The reward function is irrelevant in reinforcement learning as the agent learns solely through exploration without any feedback mechanism. Correct option: C) Explanation: The reward function is essential in reinforcement learning as it gives feedback to the agent based on its actions, guiding the learning process towards maximizing cumulative rewards over time. 4) When developing a deep learning model, which of the following techniques is commonly employed to prevent vanishing gradients during the training of deep neural networks, particularly in the context of recurrent neural networks (RNNs)? A) Using traditional activation functions like sigmoid and tanh which can exacerbate the issue of vanishing gradients. B) Implementing dropout regularization to reduce overfitting without addressing the gradient problem. C) Adopting architectures like Long Short-Term Memory (LSTM) or Gated Recurrent Units (GRUs) that are specifically designed to maintain gradients across many time steps. D) Utilizing a shallow network architecture that inherently avoids the vanishing gradient phenomenon. E) Training the network with a high learning rate that can destabilize the training process but helps in gradient propagation. Correct option: C) Explanation: Long Short-Term Memory (LSTM) and Gated Recurrent Units (GRUs) are specialized architectures designed to mitigate the vanishing gradient problem in RNNs, allowing them to maintain gradients across long sequences. 5) In the context of supervised learning, which of the following methods is primarily utilized to evaluate the performance of a classification model, and what metrics are considered most crucial for this evaluation? A) Visualization of training data to assess model performance without quantitative metrics. B) Use of training accuracy alone, as it reflects the model's ability to fit the training data perfectly. C) Employing metrics such as precision, recall, and F1 score, particularly in cases of imbalanced datasets, to provide a comprehensive evaluation of the model's effectiveness. D) Analysis of the confusion matrix solely, without considering any other performance metrics. E) Usage of mean squared error, which is more relevant for regression tasks than classification problems. Correct option: C) Explanation: In supervised learning, especially for classification tasks, metrics like precision, recall, and F1 score are crucial for evaluating model performance, particularly in imbalanced datasets, providing a more nuanced assessment than accuracy alone. 6) In the field of computer vision, what is the primary purpose of using convolutional layers in a convolutional neural network (CNN), and how do they contribute to the model's ability to recognize patterns in visual data? A) Convolutional layers are used to flatten the input images into one-dimensional arrays, facilitating easier processing by the model. B) Convolutional layers apply filters to the input images, allowing the network to detect local patterns and features, such as edges and textures, which are critical for image recognition tasks. C) Convolutional layers serve to reduce the dimensionality of the input data without preserving any spatial information. D) Convolutional layers are primarily used to introduce non-linearity into the model through activation functions, with no direct impact on feature extraction. E) Convolutional layers function to normalize the input data, ensuring consistent scaling across different images. Correct option: B) Explanation: Convolutional layers in CNNs apply filters to input images, enabling the network to detect local patterns and features essential for recognizing and classifying visual data effectively. 7) In the domain of unsupervised learning, which of the following algorithms is primarily utilized for clustering data into distinct groups based on their similarities, and what are the key characteristics that define its approach? A) Linear regression, which is designed to predict continuous outcomes based on input features rather than clustering. B) K-means clustering, which partitions the dataset into K distinct groups by minimizing the variance within each cluster and is sensitive to the initial placement of centroids. C) Decision trees, which create a flowchart-like structure to classify data rather than grouping similar observations. D) Support Vector Machines (SVM), which are mainly used for classification tasks by finding hyperplanes that separate different classes. E) Principal Component Analysis (PCA), which focuses on dimensionality reduction rather than clustering. Correct option: B) Explanation: K-means clustering is an unsupervised learning algorithm that partitions data into K distinct groups by minimizing variance within clusters, relying on the initial placement of centroids to guide the grouping process. 8) In the context of generative models, which of the following statements accurately reflects the purpose and functionality of Generative Adversarial Networks (GANs), and how do they differ from traditional discriminative models? A) GANs are designed to classify data into predefined categories, whereas discriminative models generate new data samples. B) GANs consist of two neural networks, a generator and a discriminator, that compete against each other, allowing the generator to create new data samples that resemble a training dataset while discriminative models focus on distinguishing between classes. C) GANs operate on a single neural network architecture, while discriminative models require multiple networks to function effectively. D) GANs utilize supervised learning techniques, while discriminative models rely entirely on unsupervised learning principles.