Sign in

Tech writer | Software Developer

A practical explanatory guide for the classification of Iris flowers

In this article, I am going to give you a step-by-step guide on how to use PySpark for the classification of Iris flowers with Random Forest Classifier.

I have used the popular Iris dataset and I have provided the link to the dataset at the end of the article. I used Google Colab for coding and I have also provided Colab notebook in Resources.

Pyspark is a Python API for Apache Spark and pip is a package manager for Python packages.

!pip install pyspark

With the above command, pyspark can be installed using pip.

from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('ml-iris').getOrCreate()
df…


A practical guide on how to predict whether a client will subscribe to a term deposit or not using a bank marketing dataset

In this article, I am going to describe how to build a support vector machine with kernels to predict whether a client will subscribe to a term deposit or not. The dataset I am using is a Bank Marketing dataset. The dataset can be downloaded here.

1. What is Support Vector Machine?

Support vector machine is a supervised machine learning algorithm that can be used for both classification or regression challenges. But, it is mostly used in classification problems.

Support vectors simply mean the coordinates of individual observations. Classification in SVM is done by segregating classes with a hyper-plane or a line.

SVM performs well with…


A practical step-by-step guide to building a Linear Regression Model to predict Apparent Temperature from Weather History Data

This article focuses on finding the relationships between particular features and making predictions with a weather history dataset after going through all the necessary steps,

  • Data Cleansing
  • Data Transformations
  • Feature Coding
  • Feature Scaling
  • Feature Discretization
  • Dimensionality Reduction
  • Linear Regression Model
  • Model Evaluation

Here the goal is to find, is there a relationship between humidity and temperature, and is there a relationship between humidity and apparent temperature? And also to find whether the apparent temperature can be predicted with the given humidity.

The dataset used here is the weather history dataset from Kaggle. You can find it by clicking here.

First…


Kaggle is a great place for those who are trying to improve their data science/analytics skills. It has a huge number of public datasets you can download and use. You can use these Kaggle datasets without downloading them to your PC but by importing them to Google Colaboratory. Colab is a free Jupyter notebook environment and it runs entirely in the cloud. It allows you to write and execute Python code through the browser.

So, let’s see how you can easily import a Kaggle dataset to Colab and I will also provide some useful Python code to analyze the dataset…


Let’s see how JSON is capable of improving the interactivity on the web.

What is JSON?

JSON stands for JavaScript Object Notation. It is a lightweight text-based format used for interchanging data. It is very commonly used in web applications. It resembles JavaScript object literal syntax, but many other programming environments other than JavaScript possess the ability to work with JSON which makes it programming language independent. With ‘work’, it means to generate and read JSON data.

JSON is built on 2 structures; a collection of name/value pairs and an ordered list of values such as an array, list, etc. We can include objects, strings, numbers, booleans, arrays, and null inside JSON.

Let’s get a JSON…


How to use useState(), useEffect() and useContext()

Hooks are special functions that allow us to do various things without writing a class. Before hooks come into play, we could use state and life cycle methods only inside class components. But with React hooks, now we can use functional components for almost everything from rendering UI to handling state and logic in a pretty neat way.

We should also keep in mind that hooks are not to be used inside loops, conditions, or nested functions. Hooks should be used at the top-level inside your functional components.

In this blog post, I am going to guide you through how…


Let’s learn how to transform one array into another array.

The Array map() function in JavaScript is used to create a new array with a given array, by executing a function for all the elements in the given array. Consider the below illustration.


Let’s look into Reactive Programming with RxJS

In this blog post I am going to give you a basic understanding of RxJS observables and how to use them in Angular.

First, let me mitigate the confusion by simplifying the terms in the topic of the article.

What’s Reactive Programming?

Reactive programming means programming with asynchronous data streams. A stream is a sequence of data ordered in time. Data streams can be created with anything like variables, changes on a variable, properties, user inputs, data structures, click events, HTTP requests, etc. …


Make a connection with the outside world with your java application.

Hello there, in this blog post I’m gonna explain how can a java program in your machine can reach out and touch a program running on another machine.

To get you through this I’m gonna develop simple client and server programs. And I will make them talk to each other. For all these client-server connections I need sockets. So that’s a quick overview to give you a brief idea. Let’s get started.

First let’s consider clients. There are 3 things we have to do with client programs.

  1. How to establish the initial connection between the client and the server.
  2. How…


A practical guide with Java

Encapsulation is one of the four pillars of object-oriented programming. It describes the idea of wrapping of data (variables) and code acting on the data (methods) together as one single unit.

Consider a program like this.

Manusha Priyanjalee

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store