This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A code snippet to generate and save in SVG format a heatmap of model vs. dataset metrics. | |
""" | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A demo script utilizing async `langchain` capabilities to interact with OpenAI's model. | |
https://python.langchain.com/v0.1/docs/expression_language/interface/ | |
""" | |
import asyncio | |
import json | |
import time | |
from langchain_openai import ChatOpenAI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A simple JSON renderer for Jupyter Notebooks | |
Source: https://stackoverflow.com/a/37124230 | |
""" | |
import json | |
from IPython.display import display_javascript, display_html | |