{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Let's implement CCS from scratch.\n", "This will deliberately be a simple (but less efficient) implementation to make everything as clear as possible." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/accounts/projects/jsteinhardt/uid1693600/.local/lib/python3.7/site-packages/pandas/compat/_optional.py:138: UserWarning: Pandas requires version '2.7.0' or newer of 'numexpr' (version '2.6.9' currently installed).\n", " warnings.warn(msg, UserWarning)\n", "W1206 14:15:47.056510 140146004121408 builder.py:641] Reusing dataset amazon_polarity (/scratch/users/uid1693600/huggingface-cache/amazon_polarity/amazon_polarity/3.0.0/a27b32b7e7b88eb274a8fa8ba0f654f1fe998a87c22547557317793b5d2772dc)\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "0e5b9e737f6e415aa43cb2e7234b149f", "version_major": 2, "version_minor": 0 }, "text/plain": [ " 0%| | 0/2 [00:00