Skip to content

Instantly share code, notes, and snippets.

View janduplessis883's full-sized avatar
🎯
Focusing

Jan du Plessis janduplessis883

🎯
Focusing
  • London
  • 12:29 (UTC +01:00)
View GitHub Profile
@janduplessis883
janduplessis883 / Association Rule Mining in Python Tutorial.ipynb
Last active May 8, 2024 14:26
Association Rule Mining in Python Tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janduplessis883
janduplessis883 / DataPreprocessingTool.py
Created May 6, 2024 21:16 — forked from Cdaprod/DataPreprocessingTool.py
Langchain tool for preprocessing text data. Version one million nine-hundred and fifty two 😂 jk version 1
import spacy
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from langchain.tools import BaseTool
from typing import Optional, Union, List
from langchain.callbacks.manager import CallbackManagerForToolRun, AsyncCallbackManagerForToolRun
class DataPreprocessingTool(BaseTool):
name = "DataPreprocessingTool"
description = "A tool for preprocessing and structuring unstructured data."
@janduplessis883
janduplessis883 / README.txt
Last active May 2, 2024 02:51
Pinecone Preprocessing Data for Vector Database
In this walkthrough we will see how to use Pinecone for semantic search.
@janduplessis883
janduplessis883 / 01_Embedding_Data_From_A_Pandas_DataFrame_Chroma_LangChain_Ollama.py
Last active April 30, 2024 01:14
Embedding Data from a Pandas DataFrame into a Chroma Vector Database using LangChain and Ollama
import pandas as pd
from langchain.schema import Document
from langchain_community.embeddings import OllamaEmbeddings
from langchain_community.vectorstores import Chroma
from tqdm import tqdm
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janduplessis883
janduplessis883 / jupyter_notebook_theme.css
Created December 14, 2023 17:20
Custom Jupyter Notebook Theme based on Pop Lite
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
.CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal {
font-family: 'Inter';
font-size: 12pt;
}
body {
font-family: 'Inter', sans-serif !important;
color: #263333; /* change to the color you want */
}
h1 {
@janduplessis883
janduplessis883 / custom.css
Created June 30, 2023 22:58
POP Light Theme for Jupyter Notebook
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
.CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal {
font-family: 'Inter';
font-size: 12pt;
}
body {
font-family: 'Inter', sans-serif !important;
color: #263333; /* change to the color you want */
}
h1 {
@janduplessis883
janduplessis883 / Linear Regression with Neural Network.ipynb
Created May 20, 2023 23:50
Linear Regression with Neural Network
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janduplessis883
janduplessis883 / Data Viz Notebook.ipynb
Created May 11, 2023 18:15
Data Visulisation Lecture Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.