Domain 6: Deep Learning & NLP with SAS
SAS AI and Machine Learning · 52 questions
- A data scientist uses SAS DLPy to build an image classification model. Which deep learning architecture is most appropriate for classifying images of product defects?
- In PROC TEXTMINE, which step in the text mining pipeline transforms raw text documents into a term-by-document matrix?
- A data scientist uses SAS DLPy to define a recurrent neural network for time series forecasting. Which SAS DLPy layer type should be added to capture sequential dependencies?
- In SAS PROC TEXTMINE, what is the purpose of the SVDINIT statement?
- A data scientist trains a text sentiment classifier using SAS and wants to use pre-trained word embeddings. Which SAS capability best supports loading and using pre-trained word vectors such as Word2Vec or GloVe?
- In SAS DLPy, which function is used to instantiate a pre-built convolutional neural network architecture like ResNet-50?
- A data scientist uses SAS DLPy to train a CNN on an image dataset stored in CAS. After training, they want to apply the model to score new images. Which method is used in SAS DLPy to score new data?
- When using PROC TEXTMINE for topic modeling with LDA (Latent Dirichlet Allocation) in SAS, which statement controls the number of topics to discover?
- A data scientist uses SAS DLPy to build a text classification model using a recurrent neural network. Which sequence of steps correctly sets up the model?
- In PROC TEXTMINE, after running the PARSE step, the resulting term-document frequency matrix is stored in output tables. Which output table contains the frequency of each term in each document?
- SAS DLPy provides the TextClassification class for NLP tasks. When fine-tuning a pre-trained BERT model for sentiment analysis using SAS DLPy, which pre-processing step is required before feeding text to BERT?
- A data scientist uses PROC TEXTMINE to perform sentiment analysis on customer reviews. Which statement or option enables the built-in SAS sentiment analysis capability?
- In SAS DLPy, a data scientist trains a CNN model and wants to visualize which regions of an input image most influenced the model's prediction. Which technique is commonly applied for this purpose?
- A data scientist applies PROC TEXTMINE to a corpus of 50,000 customer emails. After parsing, the term-document matrix has 200,000 unique terms. Most terms appear in only 1-2 documents. Which PARSE statement option most effectively removes these rare terms?
- A data scientist implements a convolutional neural network in SAS DLPy for image classification. After adding Conv2D and pooling layers, they add a Flatten layer. What is the purpose of the Flatten layer?
- In SAS DLPy, a data scientist trains an image classifier and wants to augment the training data to improve generalization. Which DLPy class is used to specify image augmentation transformations?
- In PROC TEXTMINE, after SVD is applied using SVDINIT, what are the resulting SVD dimensions used for in subsequent analysis steps?
- A data scientist uses SAS PROC TEXTMINE to analyze customer support tickets and identify common themes. Which output from PROC TEXTMINE best represents the dominant themes across documents?
- A SAS NLP pipeline applies PROC TEXTMINE to e-commerce product reviews to predict star ratings (1-5). After text parsing and SVD, the data scientist wants to train a gradient boosting classifier on the SVD features. What is the correct workflow?
- In SAS DLPy, a data scientist trains a deep learning model and uses the model.getfeaturemaps() method. What does this method return?
- In SAS Viya, a data scientist uses the textParsing CAS action for natural language processing. Which of the following capabilities does the textParsing action provide that PROC TEXTMINE's PARSE statement does not?
- In SAS Viya, a data scientist wants to perform distributed text analytics on 2 million documents. Which architecture advantage does running PROC TEXTMINE in SAS Viya CAS provide over traditional SAS 9.4?
- A data scientist uses SAS DLPy to apply transfer learning by loading a pre-trained VGG16 model and fine-tuning only the final fully connected layers. Which method call freezes the convolutional base layers during fine-tuning?
- In SAS DLPy, which Python package provides the CAS connection object used when initializing deep learning models?
- A data scientist uses PROC TEXTMINE with the NOPARSE option. What effect does this have on text processing?
- Which DLPy parameter enables early stopping during model.fit() training?
- In SAS Viya Visual Text Analytics, what is the primary role of concept extraction?
- Which SAS DLPy architecture is most appropriate for detecting and localizing multiple objects within a single image?
- Which NLP technique maps each word to a dense vector where semantically similar words are geometrically close in the vector space?
- After training a SAS DLPy model, which method exports it as a SAS ASTORE item for deployment via SAS Model Manager?
- In a PROC TEXTMINE followed by PROC DMDB and PROC NEURAL pipeline, what role does PROC DMDB play?
- In SVD decomposition of a term-document matrix (A = UΣVᵀ), what do the singular values in Σ represent?
- In SAS DLPy, the Functional API is used to build a model with two separate input branches. One branch processes images via Conv2d layers, the other processes tabular data via Dense layers. These two branches are merged before a final output layer. Which DLPy class merges (concatenates) the two branch outputs?
- A SAS DLPy image classification model achieves high training accuracy but poor validation accuracy. A practitioner adds Dropout layers after the dense layers. What role do Dropout layers play during training?
- PROC TEXTMINE is run with the MINCOUNT=5 option in the PARSE statement. What effect does MINCOUNT=5 have on the resulting term-document matrix?
- A SAS Visual Text Analytics pipeline uses topic modeling to discover latent themes in customer feedback. Which algorithm is used by SAS Viya's Text Topic action for probabilistic topic discovery?
- Phonetic matching algorithms like Soundex are used in SAS text processing to group spelling variants. Which scenario best illustrates when Soundex would be more appropriate than edit distance (Levenshtein)?
- In SAS DLPy transfer learning, a ResNet-50 pre-trained on ImageNet is adapted for a 10-class medical image classification task. Which layers should initially be frozen during fine-tuning?
- A SAS NLP pipeline produces a named entity recognition (NER) output table where each row is an entity mention. A data engineer needs to aggregate this to the document level to count how many PERSON entities appear per document. Which SAS step accomplishes this most directly?
- A document processing team uses DLPy object detection to identify and localize table regions in scanned financial report images, requiring bounding box coordinates. Which architecture is most appropriate?
- A SAS text analyst needs to score new documents into an existing latent semantic space created by PROC TEXTMINE's SVD. Which SAS procedure is used for this scoring step?
- A SAS DLPy model is trained using the Functional API with two input branches: one Conv2d branch for image features and one Dense branch for tabular metadata. How are the two separate input layers declared in DLPy's Functional API?
- A DLPy sequential model is saved using model.savetoastore(path='models/', name='frauddlpyv1'). What is the purpose of saving to ASTORE format?
- SAS DLPy's EarlyStopping object monitors validation loss with patience=5. A training run progresses through 25 epochs. What does patience=5 specifically mean?
- PROC TEXTMINE is run with WEIGHT=IDFLOG in the PARSE statement. What weighting scheme does IDFLOG apply to terms in the term-document matrix?
- In SAS Viya Text Analytics, sentiment analysis produces sentence-level sentiment scores. A product review contains 5 sentences: 3 positive, 1 neutral, 1 negative. What does the document-level sentiment score represent?
- A DLPy LSTM model is built for time series anomaly detection. The Recurrent() layer is created with rnntype='LSTM' and outputtype='ENCODING'. What does outputtype='ENCODING' return?
- A SAS analyst uses PROC TEXTMINE to analyze 50,000 product reviews. After parsing, the term-document matrix has 25,000 unique terms. The analyst wants to reduce dimensionality using SVD. Which PROC TEXTMINE option controls the number of SVD dimensions (latent topics) retained?
- A data scientist uses DLPy to fine-tune ResNet-50 for medical image classification. The model.fit() call uses the ImageTable class. What SAS infrastructure must be available for DLPy image model training?
- In SAS Viya's deep learning pipeline, the DLPy ImageTable.loadimages() method loads images from a local directory into a CAS in-memory table. What additional CAS action is typically needed to convert raw loaded images to model input format?
- PROC TEXTMINE processes a collection of legal contracts. The RULES statement is included in the PROC TEXTMINE call. What does the RULES statement enable?
- A SAS DLPy model uses Batch Normalization (BN) layers between Conv2d layers. How do Batch Normalization layers behave differently during inference (scoring) compared to during training?