Author: Debasis Das

Implementing KMeans Clustering in Python

Created By: Debasis Das(23-Feb-2021) In this post we will see how KMeans clustering works by using sklearn KMeans Cluster and by manually writing the KMeans Clustering logic and comparing the results. The manual approach code is a sample to demonstrate

Posted in Data Mining, Data Science, Python Tagged with: , ,

Pandas DataFrame – Pivot, Groupby, Filter, Query

Created By: Debasis Das (18-Feb-2021) http://www.knowstack.com/notebooks/DataFrame_Pivot_GroupBy_Filter.html In this post we will explore the following DataFrame functions pivot_table groupby filter query import pandas as pd import numpy as np df = pd.read_csv(“SalesData.csv”,low_memory=False) df The working DataFrame is as below and we

Posted in Data Mining, Python Tagged with: , , ,

Pandas DataFrame – Different ways to Create and Edit

By Debasis Das (17-Feb-2021) In this post we will see Different ways of creating a pandas DataFrame and editing it Lets first import the Python Pandas and numpy module import pandas as pd import numpy as np import random pd.set_option(‘display.width’,

Posted in Data Mining, Data Science, Python Tagged with: , ,

KMeans Clustering

By: Debasis Das (17-Feb-2021) KMeans Clustering using SKLearn Plotting the cluster centroid with the cluster points import pandas as pd import numpy as np from sklearn.cluster import KMeans from sklearn.decomposition import PCA import matplotlib.pyplot as plt A = [ [10,10],

Posted in Data Mining, Data Science Tagged with: ,

SSE Calculation for a Clustering

By Debasis Das: (17-Feb-2021) How to manually calculate the SSE for a Clustering. Clustering such as KMeans has a inertia_ function that gives the total SSE for the clustering, however clustering such as DBScan lacks an inertia_ function and in

Posted in Data Mining, Data Science Tagged with: , , ,

DBScan Clustering Sample

Written By: Debasis Das  In this post we will generate a DBScan cluster using SKLearn DBSCAN module and will generate the following List of noise/outlier points (not readily available in DBSCAN model output) Index of noise/outlier points View the clusters

Posted in Data Mining, Data Science Tagged with: , , ,

Swift CAReplicatorLayer Sample Code

Created By: Debasis Das (29-May-2017) In this post we will see how CAReplicatorLayer works and create a couple of sample code to play around with CAReplicatorLayer CAReplicatorLayer is essentially a layer that creates a specified number of copies of its

Posted in Swift, Swift 3.1 Tagged with: , ,

Swift Mac OS Animation using Animator Proxy – Part 2

In continuation to the Swift Mac OS Animation Part 1 we will work with Animator Proxy to achieve animation in Mac OS Applications. Animator Proxy Some simple Mac OSX Animation can be achieved through the usage of Animator Proxy. Animator

Posted in Swift, Swift 3.1 Tagged with: , ,

Swift Mac OS Animation using Core Animation- Part 1

Created By: Debasis Das (27-May-2017) Swift Mac OS Animation Animation in Mac OSX has a long history and there are more than one option for achieving an animated behavior in a Mac Application. We can achieve animation in a Mac

Posted in Swift, Swift 3.1 Tagged with: , , , , ,

Swift 3.1 URLSession, URLSessionDataTask Sample Code

In this tutorial we will create a simple application that demonstrates the use of URLSession and URLSessionDataTask in Swift 3.1 Note: As this article focusses primarily on the above stated aspects we will leave some UI functionality like showing a

Posted in Swift, Swift 3.1 Tagged with: , ,

Hit Counter provided by technology news