Grid Search practically Grid Search¶Grid search is a technique used in machine learning to systematically search for the best combination of hyperparameters for a given model. Hyperparameters are settings that are not learned from the data but are set by the user before training the model. In grid search, you …
Read More »Grid Search Theoretical
grid search notes Here’s a simple explanation of Grid Search with steps for finding the best settings (hyperparameters) for a machine learning model: What is Grid Search?¶Grid Search is a process used to automatically test different combinations of hyperparameters to find the best one for your machine learning model. Instead …
Read More »NLP Tokenizer
1. NLP Tokenizer NLP Examples¶Today, Natual process learning technology is widely used technology. Here, are common Application’ of NLP: Information retrieval & Web Search Google, Yahoo, Bing, and other search engines base their machine translation technology on NLP deep learning models. It allows algorithms to read text on a webpage, …
Read More »Stop Words
2 Stop Words In [3]: from nltk.tokenize import word_tokenize, sent_tokenize sample_sentence="Hi I am Learning NLP with Itronix Solutions" a=word_tokenize(sample_sentence) print(a) ['Hi', 'I', 'am', 'Learning', 'NLP', 'with', 'Itronix', 'Solutions'] In [4]: from nltk.corpus import stopwords stop_words=set(stopwords.words("english")) print(stop_words) for word in a: if word not in stop_words: print(word,end=" ") {'she', 'into', 'were', 'more', 'with', …
Read More »F1 Score
F1-Score The F1 Score is a metric used to evaluate the performance of a classification model by combining both precision and recall into a single score. It provides a balance between precision and recall, especially when there is an uneven class distribution or when both false positives and false negatives …
Read More »Corpus Wordnet
3 Corpus Wordnet Synsets, Hypernyms and Hyponyms¶WordNet is the lexical database i.e. dictionary for the English language, specifically designed for natural language processing. Synset is a special kind of a simple interface that is present in NLTK to look up words in WordNet. Synset instances are the groupings of synonymous …
Read More »Lemmatization
6 Lemmatization Lemmatization is the process of grouping together the different inflected forms of a word so they can be analysed as a single item. Lemmatization is similar to stemming but it brings context to the words. So it links words with similar meaning to one word. In [3]: from nltk.stem …
Read More »Precision Score
Precision Score Precision Score is a metric used in classification tasks to measure how many of the positive predictions made by a model are actually correct. In simpler terms, it answers the question: Out of all the instances the model predicted as positive, how many were truly positive? The formula …
Read More »Recall Score
Recall Score The Recall Score (also known as Sensitivity or True Positive Rate) measures the ability of a classification model to correctly identify all relevant (positive) instances. In other words, it answers the question: Out of all the actual positive cases, how many did the model correctly predict? The formula …
Read More »Accuracy, Precision, Recall, and F1-Score
Accuracy, Precision, Recall, and F1-Score Accuracy, precision, recall, and F1-score are commonly used performance metrics to evaluate the effectiveness of a classification model. These metrics provide insights into different aspects of the model’s performance in predicting class labels. Here’s a brief explanation of each metric: 1. Accuracy: Accuracy measures the …
Read More »
Machine Learning Tutorials, Courses and Certifications