{ "cells": [ { "cell_type": "code", "execution_count": 58, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "df_input = pd.read_csv('sampled_data.csv')\n", "df_inferenced = pd.read_csv('inference_output.csv')" ] }, { "cell_type": "code", "execution_count": 59, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1000\n", "1000\n" ] } ], "source": [ "print(len(df_input))\n", "print(len(df_inferenced))" ] }, { "cell_type": "code", "execution_count": 60, "metadata": {}, "outputs": [], "source": [ "df_combined = pd.concat([df_input, df_inferenced], axis=1)" ] }, { "cell_type": "code", "execution_count": 61, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | title | \n", "text | \n", "label | \n", "Output | \n", "Tokens Used | \n", "Finish Reason | \n", "
---|---|---|---|---|---|---|
0 | \n", "Live at Truthdig: Robert Scheer and Thomas Fra... | \n", "Live at Truthdig: Robert Scheer and Thomas Fra... | \n", "0 | \n", "Real | \n", "265 | \n", "stop | \n", "
1 | \n", "The Mirage of a Return to Manufacturing Greatn... | \n", "Half a century ago, harvesting California’s 2.... | \n", "1 | \n", "Real | \n", "1627 | \n", "stop | \n", "
2 | \n", "British PM expected to offer to fill post-Brex... | \n", "(Reuters) - The British government has told Ge... | \n", "1 | \n", "fake | \n", "200 | \n", "stop | \n", "
3 | \n", "Checkmating Obama | \n", "Originally published by the Jerusalem Post . \\... | \n", "0 | \n", "fake | \n", "2166 | \n", "stop | \n", "
4 | \n", "Thirty-eight injured in police charges in Cata... | \n", "MADRID (Reuters) - Emergency services have att... | \n", "1 | \n", "Real | \n", "176 | \n", "stop | \n", "