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
Category: Products
All articles / code related to the products we develop in this company
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.
Cron job in django
SET UP installation: using the following command pip install django-crontab add it to installed apps in django settings.py: INSTALLED_APPS = ( ‘django_crontab’, … ) now create a new method that should be executed by cron every 5 minutes, f.e. in myapp/cron.py: now add this to your settings.py: CRONJOBS = (‘*/5 * * * *’, ‘myapp.cron.cron’)
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
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
PLP Image Resize
Jira Code: WF-3: Increase picture size on product category pages Increase the picture size of product photos so they are larger Extended the facet item child view, Facet Browse view Override the grid, table, list view templates
PLP Image Hover: Show Secondary Image Extenstion
Jira Code: Wf-7: Add alternative photo to pictures on product category so a second picture shows when user scrolls over picture Create an alternative photo on product list page to show when the mouse hovers over the image. Create a custom field in the item record and use that field for displaying as the hover… Continue reading PLP Image Hover: Show Secondary Image Extenstion