TCS
Intellias Interview Questions and Answers
Q1. What is the model metrics used for classification and regression
Classification metrics assess categorical outcomes, while regression metrics evaluate continuous predictions.
Classification metrics include accuracy, precision, recall, F1-score, and ROC-AUC.
Example: Accuracy = (True Positives + True Negatives) / Total Samples.
Regression metrics include Mean Absolute Error (MAE), Mean Squared Error (MSE), and R-squared.
Example: MSE = (1/n) * Σ(actual - predicted)².
Q2. What is text embeddings
Text embeddings are numerical representations of text data that capture semantic meaning.
Text embeddings convert words or sentences into numerical vectors.
They are used in natural language processing tasks like sentiment analysis, text classification, and machine translation.
Popular techniques for generating text embeddings include Word2Vec, GloVe, and BERT.
Q3. What is cosine similarity
Cosine similarity is a measure of similarity between two non-zero vectors of an inner product space.
It measures the cosine of the angle between two vectors.
Values range from -1 (completely opposite) to 1 (identical), with 0 indicating orthogonality.
Commonly used in text mining for document similarity and recommendation systems.
Q4. How do you generate embeddings
Embeddings are generated by converting words or entities into numerical vectors in a high-dimensional space.
Use pre-trained word embeddings like Word2Vec, GloVe, or FastText
Train your own embeddings using algorithms like Word2Vec, GloVe, or FastText on a large corpus of text data
Fine-tune pre-trained embeddings on domain-specific data to improve performance
Q5. Handling imbalanced training data
Handling imbalanced training data is crucial for model performance and accuracy.
Use techniques like oversampling, undersampling, or SMOTE to balance the dataset
Utilize algorithms that are robust to imbalanced data, such as Random Forest or XGBoost
Consider using ensemble methods or cost-sensitive learning to address class imbalance
Q6. Explain architecture of GAN network
GANs consist of two neural networks, a generator and a discriminator, competing to create realistic data.
GANs stand for Generative Adversarial Networks.
The architecture includes two main components: the Generator and the Discriminator.
The Generator creates fake data from random noise, aiming to mimic real data.
The Discriminator evaluates data, distinguishing between real and generated samples.
Both networks are trained simultaneously in a zero-sum game, improving each other's ...read more
Q7. What is F Score
F Score is a measure of a test's accuracy that considers both the precision and recall of the test.
F Score is calculated using the formula: 2 * (precision * recall) / (precision + recall)
It is used in binary classification tasks to balance precision and recall.
A high F Score indicates a model with both high precision and high recall.
Q8. What is TFIDF in NLP
TFIDF stands for Term Frequency-Inverse Document Frequency, a numerical statistic that reflects how important a word is to a document in a collection or corpus.
TFIDF is used in natural language processing to evaluate the importance of a word in a document relative to a collection of documents.
It combines two metrics: term frequency (TF) and inverse document frequency (IDF).
TFIDF helps in identifying the significance of a word in a document by considering how frequently it app...read more
Q9. Handling null values
Handling null values is crucial for data integrity and analysis.
Identify null values in the dataset using functions like isnull() or isna()
Decide on the best strategy to handle null values - imputation, deletion, or flagging
Impute missing values using mean, median, mode, or predictive modeling techniques
Delete rows or columns with a high percentage of missing values if they cannot be imputed
Flag null values to distinguish them from actual data points
More about working at TCS
Interview Process at Intellias
Top Senior Data Scientist Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month