Let’s learn the different ways we can normalize a column from a pandas dataframe in python. Pandas: Pandas is an open source python library built on top of numpy. It is used in machine learning and data science for its various data structures and easy to use functions to manipulate data in dataframes. Pandas is […]
Sklearn Support Vector Machine
A popular supervised classification algorithm used within scikit-learn is Support Vector Machine (SVM) SVM works by finding a hyperplane (a decision boundary) that separates data points from different classes. It does this by maximizing the distance (margin) between the hyperplane and the nearest data points from each class, which are called support vectors If you […]
Scikit-learn Pipelines
import pandas as pd import numpy as np import joblib from sklearn.model_selection import train_test_split from sklearn.impute import SimpleImputer from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier from sklearn.pipeline import make_pipeline, Pipeline from sklearn.preprocessing import StandardScaler, OneHotEncoder from sklearn.compose import ColumnTransformer d1 = {‘Social_media_followers’:[1000000, np.nan, 2000000, 1310000, 1700000, np.nan, 4100000, 1600000, 2200000, 1000000], ‘Sold_out’:[1,0,0,1,0,0,0,1,0,1]} df1 = […]
Tree of Thought Prompting
In the ever-evolving field of artificial intelligence, reasoning and problem-solving capabilities have seen remarkable advancements. One such innovation that stands out is the use of Tree of Thoughts (TOT) in AI reasoning, particularly in the realms of mathematical reasoning and writing TOT excels in guiding the progression of thoughts, making the problem-solving process more comprehensive […]
Chain of Thought Prompting
Chain of Thought Prompting also known as COT is a way to enhance the reasoning and problem-solving abilities of Large Language Models (LLM). It helps guide the LLM through a step-by-step process to arrive at a final result. It’s like showing your work on a math problem. This is done by breaking down the prompt […]
Langchain Agents
Welcome to our latest article on Langchain agents! In this guide, we’ll dive into the innovative approach to building agents introduced in Langchain update 0.1. By leveraging agents, you can significantly enhance the capabilities of the OpenAI API and seamlessly integrate external tools. Interested in discussing a Data or AI project? Feel free to reach […]