Posts

Understanding Titanic Survival Predictions with Decision Trees

Image
  Decision Tree: Supervised learning Algorithm Can do both Regression and Classification capabilities Inverted tree like structure with bunch of if-else statements The Titanic dataset is one of the most famous case studies in data science. It captures passenger details such as age, sex, class, fare, and family aboard, along with whether they survived or not. In this post, we’ll walk through how a decision tree model uses these features to predict survival, and what the visualization reveals. How the Decision Tree Works Note: These features are based on the importance table at the right side Root node: “Was the passenger male?” If female , survival chances are much higher. The tree then considers passenger class and fare to refine predictions. If male , survival chances drop significantly, but age and family aboard (siblings/spouses) still play a role. Each node in the tree shows: Gini impurity: How mixed the group is (lower / purer). Samples: Number of passengers in that group. ...

Jupyter Lab Configurations

Image
To list all installed kernels in your JupyterLab system, open a terminal or command prompt and run bash jupyter kernelspec list ----------------------------------------------------------------------------------------------------------------------------- Creating new Kernel for specific purpose 1. Create and Activate a Virtual Environment bash python -m venv .venv source .venv/bin/activate # On macOS/Linux .venv \ Scripts \ activate # On Windows 2. Install IPython Kernel in the Environment bash pip install ipykernel 3. Register the Kernel bash python -m ipykernel install --user --name myenv --display-name "Python (myenv)" --name is the internal name used by Jupyter. --display-name is what you'll see in JupyterLab's kernel list. 4. Remove: jupyter kernelspec uninstall myenv ----------------------------------------------------------------------------------------------------------------------------- Changing default settings of Linewrap and LineNum...

Databricks Fundamentals

Image
+ Databricks is an integrated platform for data and AI that enables large-scale development, deployment, and management of data, analytics, and AI-driven solutions. + Founded in 2013 at  University of California, Berkeley + Mission: democratize data and AI + 2020- Introduced Lakehouse + 2023- Rise of GenAI (Data +AI)  Some Basic Terms: Data Warehouse:  Storage of Structured data for BI & reporting Data Lakes:  Storage of structured, semi & unstructured data used for almost all type of data suitable                               for DS,ML we can't use both by connecting each other i.e; as both storage systems with same data to be ingested. People are copying the data to use for each application as for each  system the data governance and security rules are different Data Lakehouse:  (Data Warehouse + Data Lake) one platform to unify all data, analytics and AI wo...

TCP Handshake Process with Wireshark Packet Capture

Image
  The TCP (Transmission Control Protocol- connection oriented) handshake is a three-step process used to establish a connection between a client and a server in a TCP/IP network. Three- Way Handshake Process: SYN (Synchronize): The client initiates the connection with the server by sending SYN Packet SYN-ACK (Synchronize-Acknowledge):  The server responds with a ACK packet and sends it's own SYN packet to client ACK (Acknowledge): The client responds with ACK packet to server, resulting the connection is established Fig: TCP 3-way Handshake Process  Here I opened the browser and searched www.google.com, the respective TCP connection is highlighted here SYN Packet Analysis: Packet from Client to Server. Covering major fields to be checked here. Note: All the fields here related to Client Machine Fig: SYN packet analysis Destination port: Client requesting https (443) services from the server TCP Segment Length: Payload of the packet. In the all 3 -way handshake proces...

Unable to access the PaloAlto VM image via HTTPS

Image
Recently, I encountered an Issue of "Unable to access the PaloAlto VM image via HTTPS". Here's how I applied troubleshooting steps to resolve it: Configuration Changes done before: Configured static management IP & default gateway and rebooted the PA VM, then faced the issue. Observed: Unable to access the PaloAlto VM image via HTTPS. Unable to ping to the default Gateway from the PA and viceversa. Error- getting Destination Host Unreachable in both cases. Analyzed: + Checked the Management IP address and netmask, both are same as bridged network (physical) + Checked the default route "show routing route" - no route configured + While pinging from the base machine to PA and vice versa getting error as "Destination is Unreachable". Hypothesized: + As per the Error message, primarily issue is Network related, that the PA VM is unable to reach physical NIC IP. Tested: + Tried with changing the management IP address within the same subnet (as physic...