Skip to main content

Posts

Showing posts from June, 2022
Seven Short Money Lessons That Can Unlock (Realistic) Financial Freedom Your $4 latte addiction isn’t what’s stopping you from reaching financial freedom. This short story is sure to punch you in the face…then inspire you. A young man in 2012 sat down at a Portland cafe. An elderly gentleman walked past him and sat at the table next to him. He was working on his Macbook like the cool digital nomad he thought he was. The old man says “Do you like Apple?” The young man instantly becomes dismissive of him. Ohh great, why’d I have to sit next to this old geezer, he thinks to himself. “I don’t like Apple because of what their iPad did to society. People just use them to consume, whereas a real computer can help you create,” the old man proclaimed. He went on … “Too many people never try to do things that have never been done before. It’s sad. But if they give a few things a crack, they soon learn they too can do things that have never been done.” The old man quietly does a half-smil...

Machine Learning — Logistic Regression with Python

# Importing packages import pandas as pd # data processing import numpy as np # working with arrays import itertools import matplotlib.pyplot as plt # visualizations from matplotlib import rcParams # plot size customization from termcolor import colored as cl # text customization from sklearn.model_selection import train_test_split # splitting the data from sklearn.linear_model import LogisticRegression # model algorithm from sklearn.preprocessing import StandardScaler # data normalization from sklearn.metrics import jaccard_similarity_score as jss # evaluation metric from sklearn.metrics import precision_score # evaluation metric from sklearn.metrics import classification_report # evaluation metric from sklearn.metrics import confusion_matrix # evaluation metric from sklearn.metrics import log_loss # evaluation metric rcParams['figure.figsize'] = (20, 10) # Importing the data and EDA df = pd.read_csv('tele_customer_data.csv') df.drop(['Unnamed: 0', 'l...