Categorydata science

Create and distribute your python package

C

This is a quick guide for create and generate distribution package of your python project so that others can install, import and use in their projects. Prerequisites: You will need the following tools installed in your computer: Python (2.x/3.x)PipAPI key for uploading your package to distribution platform, such as test.pypi.org. After install python, you can install pip by using: curl -o get-pip...

Fast uniform negative sampling for rating matrix

F

Sometimes, we want to reduce the training time by using a subset of a very large dataset while the negative samples outnumbers the positive ones, e.g. word embedding. Another situation when we deal with implicit data. In this case, we may need to populate new data for negative values. This post demonstrates how to generate data for training using uniform negative sampling. The data Originally...

Metrics for regression and classification – quick note

M

In this article, we review some common metrics and their uses for two main ML problems, i.e. regression and classification. Regression Metrics Most of the blogs have focussed on classification metrics like precision, recall, AUC etc. For a change, I wanted to explore all kinds of metrics including those used in regression as well. MAE and RMSE are the two most popular metrics for continuous...

Prevent colab from disconnecting with console js

P

This quick note is one solution (may not optimal) to prevent Colab from disconnecting during training your deep learning model. disconnect Problem Recently, my Google Colab notebook often gets disconnected after a while, and the data is lost. I searched and found a solution. So reshare this here. SOLUTION So to prevent this, we add a JS code to the console. Its purpose is to keep on clicking the...

Predict coronavirus deaths by days

P

As the pandemic is going on with an increasing number of deaths daily, let create a simple model to predict the deaths caused by 2019-nCoV (Wuhan Coronavirus). The 2019-nCoV death data I grab the death toll data from World Meters website. DateDaily DeathsFeb. 889Feb. 786……Jan. 2416Jan. 238 Plot the data Firstly, we transform the table into a Pandas data frame. death_toll =...

PetaMinds focuses on developing the coolest topics in data science, A.I, and programming, and make them so digestible for everyone to learn and create amazing applications in a short time.

Categories