1. Pandas: Pandas is a high-level data manipulation tool developed by Wes McKinney. It is built on the Numpy package and its key data structure is called the DataFrame. DataFrames allow you to store and manipulate tabular data in rows of observations and columns of variables. 2.Numpy NumPy is the fundamental package for scientific computing… Continue reading Basic Libraries Required for Python programming:
Tag: Programming code
Implementing the Naive-Bayes Machine learning Model
It is a classification technique based on Bayes’ theorem with an assumption of independence between predictors. A Naive Bayes classifier assumes that the presence of a particular feature in a class is unrelated to the presence of any other feature. Naive Bayesian model is easy to build and particularly useful for very large data sets.… Continue reading Implementing the Naive-Bayes Machine learning Model
Python code to insert CSV data fields to a local Database table using Django
We can use this code to insert the data in a CSV file to a local database table. Just change the table name, database name, and data fields with your respective field name and others.
Stemming: Implementation using Python code
A normalizing method in Python JIRA CODE: JJ-134 Stemming:The idea of stemming is a sort of normalizing method. Many variations of words carry the same meaning, other than when tense is involved.There are mainly two errors in stemming – Over stemming and Under stemming. Over stemming occur when two words are stemmed to same root… Continue reading Stemming: Implementation using Python code
Lemmatization: implementation using Python
For Reducing morphological variations and grouping words to one common root JIRA CODE – JJ-134 It 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… Continue reading Lemmatization: implementation using Python
K-Nearest Neighbor Algorithm(K-NN Algorithm) in Python
Implementation code of K-NN Algorithm using Python language JIRA CODE – JJ – 134 This algorithm is used to solve the classification model problems. K-nearest neighbor or K-NN algorithm basically creates an imaginary boundary to classify the data. When new data points come in, the algorithm will try to predict that to the nearest of… Continue reading K-Nearest Neighbor Algorithm(K-NN Algorithm) in Python
Naive Bayes Algorithm in Python
Bayes’ Theorem provides a way that we can calculate the probability of a piece of data belonging to a given class. Bayes’ Theorem is stated as: P(class|data) = (P(data|class) * P(class)) / P(data) Where P(class|data) is the probability of class given the provided data. Naive Bayes is a classification algorithm for binary (two-class) and multiclass… Continue reading Naive Bayes Algorithm in Python
Web scraping: implementation using Python
Web scraping is used to collect large information from websites.JIRA CODE – JJ – 134 Web scraping is an automated method used to extract large amounts of data from websites. The data on the websites are unstructured. Web scraping helps collect these unstructured data and store it in a structured form. Steps of Web Scrapping:… Continue reading Web scraping: implementation using Python