{ "cells": [ { "cell_type": "markdown", "id": "f111ff8f", "metadata": {}, "source": [ "\n", "# Domain-Aware Cost Prediction Experiment\n", "\n", "This notebook is a **separate experiment** from the baseline notebook. It keeps the original baseline work untouched and tests whether adding **facilities domain knowledge** improves cost prediction from work order text.\n", "\n", "## Consistency with the baseline notebook\n", "This notebook follows the same core regression setup used in the baseline:\n", "- load the three Boise State raw CSV exports\n", "- normalize the raw export headers\n", "- build a `reg_df` dataset\n", "- create `total_cost`\n", "- remove zero-cost rows\n", "- trim the top 1% of cost outliers\n", "- predict `log_cost` with a Ridge regression model\n", "\n", "## What this notebook adds\n", "- abbreviation expansion:\n", " - `vfd` -> `variable_frequency_drive`\n", " - `ahu` -> `air_handling_unit`\n", " - `rtu` -> `roof_top_unit`\n", "- domain-aware text augmentation\n", "- structured binary flags\n", "- a fair side-by-side comparison between:\n", " - **Baseline TF-IDF Ridge**\n", " - **Domain-aware TF-IDF + flags Ridge**\n", "\n", "## Outputs\n", "This notebook also exports:\n", "- `baseline_domain_experiment_worst_100.csv`\n", "- `domain_aware_experiment_worst_100.csv`\n", "\n", "Both files contain the worst 100 prediction misses for each model.\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "019a5061", "metadata": {}, "outputs": [], "source": [ "\n", "# ============================================================\n", "# Imports\n", "# ============================================================\n", "\n", "import glob\n", "import os\n", "import re\n", "import warnings\n", "\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import pandas as pd\n", "\n", "from scipy.sparse import csr_matrix, hstack\n", "from sklearn.feature_extraction.text import TfidfVectorizer\n", "from sklearn.linear_model import Ridge\n", "from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score\n", "from sklearn.model_selection import train_test_split\n", "\n", "warnings.filterwarnings(\"ignore\")\n", "pd.set_option(\"display.max_colwidth\", 200)\n" ] }, { "cell_type": "markdown", "id": "87d1b1eb", "metadata": {}, "source": [ "\n", "## Locate the Boise State export files\n", "\n", "This notebook looks for all CSV files whose names start with `NLP Report`. That matches the naming style used in the project root.\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "605ca122", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Files found:\n", "- NLP Report 2002-2009.csv\n", "- NLP Report 2010-2019.csv\n", "- NLP Report.csv\n" ] } ], "source": [ "\n", "# ============================================================\n", "# Locate files\n", "# ============================================================\n", "\n", "files = sorted(glob.glob(\"NLP Report*.csv\"))\n", "\n", "print(\"Files found:\")\n", "for f in files:\n", " print(\"-\", f)\n", "\n", "if len(files) == 0:\n", " raise FileNotFoundError(\n", " \"No files matching 'NLP Report*.csv' were found in this directory.\"\n", " )\n" ] }, { "cell_type": "code", "execution_count": 3, "id": "89b3cff0", "metadata": {}, "outputs": [], "source": [ "\n", "# ============================================================\n", "# Helper: load one raw export correctly\n", "# ============================================================\n", "\n", "def load_workorder_export(path, encoding=\"latin1\"):\n", " \"\"\"\n", " Loads a Boise State maintenance export where:\n", " row 0 = export timestamp\n", " row 1 = report title\n", " row 2 = blank\n", " row 3 = actual header row\n", " row 4+ = data\n", " \"\"\"\n", " raw = pd.read_csv(path, header=None, encoding=encoding, low_memory=False)\n", "\n", " header = raw.iloc[3, :11].tolist()\n", " df = raw.iloc[4:, :11].copy()\n", " df.columns = header\n", " df.reset_index(drop=True, inplace=True)\n", "\n", " return df\n" ] }, { "cell_type": "code", "execution_count": 4, "id": "855ba794", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Combined raw shape: (316979, 12)\n", "\n", "Raw columns:\n", "['Request', 'Building Name', 'Request Date', 'Completion Date', 'Priority Code', 'Priority Description', 'Trade Description', 'Total Hours', 'Total Labor Cost', 'Total Material Cost', 'Total Other Cost', 'source_file']\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
RequestBuilding NameRequest DateCompletion DatePriority CodePriority DescriptionTrade DescriptionTotal HoursTotal Labor CostTotal Material CostTotal Other Costsource_file
0RM 131, 132, 133, 134 TO COLD - Test DB MigrationChrisway Annex10/31/200211/04/2002 07:001RoutineHVAC1.25$56.25$0.00$0.00NLP Report 2002-2009.csv
1Closed per Foreman. - Closed per Foreman. - No electricity on one side of the roomBoulder Hall10/31/200212/16/2017 17:001RoutineElectrician0.5$13.80$0.00$0.00NLP Report 2002-2009.csv
2Reset fire alarm at fire alarm panel, inside of front door. System problem alarm, not fire alarm.\\n\\nConley radioed/mlEngineering (RUCH)10/31/200212/03/2002 11:121RoutineElectrician6.25$172.50$0.00$1,937.30NLP Report 2002-2009.csv
3Freezer is not cold.\\n\\nLA radioed / mlCopper Basin10/31/200211/15/2002 06:481RoutineHVAC0.25$6.63$0.00$0.00NLP Report 2002-2009.csv
4No air flow.\\n\\nLarel radioed / ml\\nFans down per Larel.\\nFans back up - Ed notified by vm / mlRiverfront Hall10/31/200211/18/2002 07:001RoutineHVAC0.25$6.63$0.00$0.00NLP Report 2002-2009.csv
\n", "
" ], "text/plain": [ " Request \\\n", "0 RM 131, 132, 133, 134 TO COLD - Test DB Migration \n", "1 Closed per Foreman. - Closed per Foreman. - No electricity on one side of the room \n", "2 Reset fire alarm at fire alarm panel, inside of front door. System problem alarm, not fire alarm.\\n\\nConley radioed/ml \n", "3 Freezer is not cold.\\n\\nLA radioed / ml \n", "4 No air flow.\\n\\nLarel radioed / ml\\nFans down per Larel.\\nFans back up - Ed notified by vm / ml \n", "\n", " Building Name Request Date Completion Date Priority Code \\\n", "0 Chrisway Annex 10/31/2002 11/04/2002 07:00 1 \n", "1 Boulder Hall 10/31/2002 12/16/2017 17:00 1 \n", "2 Engineering (RUCH) 10/31/2002 12/03/2002 11:12 1 \n", "3 Copper Basin 10/31/2002 11/15/2002 06:48 1 \n", "4 Riverfront Hall 10/31/2002 11/18/2002 07:00 1 \n", "\n", " Priority Description Trade Description Total Hours Total Labor Cost \\\n", "0 Routine HVAC 1.25 $56.25 \n", "1 Routine Electrician 0.5 $13.80 \n", "2 Routine Electrician 6.25 $172.50 \n", "3 Routine HVAC 0.25 $6.63 \n", "4 Routine HVAC 0.25 $6.63 \n", "\n", " Total Material Cost Total Other Cost source_file \n", "0 $0.00 $0.00 NLP Report 2002-2009.csv \n", "1 $0.00 $0.00 NLP Report 2002-2009.csv \n", "2 $0.00 $1,937.30 NLP Report 2002-2009.csv \n", "3 $0.00 $0.00 NLP Report 2002-2009.csv \n", "4 $0.00 $0.00 NLP Report 2002-2009.csv " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "# ============================================================\n", "# Load and combine all files\n", "# ============================================================\n", "\n", "dfs = []\n", "for f in files:\n", " df_part = load_workorder_export(f)\n", " df_part[\"source_file\"] = os.path.basename(f)\n", " dfs.append(df_part)\n", "\n", "data = pd.concat(dfs, ignore_index=True)\n", "\n", "print(\"Combined raw shape:\", data.shape)\n", "print(\"\\nRaw columns:\")\n", "print(data.columns.tolist())\n", "display(data.head())\n" ] }, { "cell_type": "markdown", "id": "13266817", "metadata": {}, "source": [ "\n", "## Normalize columns to match the baseline notebook\n", "\n", "The baseline notebook uses cleaned names like:\n", "- `request_text`\n", "- `building_name`\n", "- `request_date`\n", "- `trade_description`\n", "- `total_labor_cost`\n", "- `total_material_cost`\n", "- `total_other_cost`\n" ] }, { "cell_type": "code", "execution_count": 5, "id": "5aa20a17", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Normalized shape: (316979, 14)\n", "\n", "Normalized columns:\n", "['request_text', 'building_name', 'request_date', 'completion_date', 'priority_code', 'priority_description', 'trade_description', 'total_hours', 'total_labor_cost', 'total_material_cost', 'total_other_cost', 'source_file', 'request_year', 'total_cost']\n", "\n", "Dtypes:\n", "request_text object\n", "building_name object\n", "request_date datetime64[ns]\n", "completion_date datetime64[ns]\n", "priority_code object\n", "priority_description object\n", "trade_description object\n", "total_hours float64\n", "total_labor_cost float64\n", "total_material_cost float64\n", "total_other_cost float64\n", "source_file object\n", "request_year float64\n", "total_cost float64\n", "dtype: object\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
request_textbuilding_namerequest_datecompletion_datepriority_codepriority_descriptiontrade_descriptiontotal_hourstotal_labor_costtotal_material_costtotal_other_costsource_filerequest_yeartotal_cost
0RM 131, 132, 133, 134 TO COLD - Test DB MigrationChrisway Annex2002-10-312002-11-04 07:00:001RoutineHVAC1.2556.250.00.0NLP Report 2002-2009.csv2002.056.25
1Closed per Foreman. - Closed per Foreman. - No electricity on one side of the roomBoulder Hall2002-10-312017-12-16 17:00:001RoutineElectrician0.5013.800.00.0NLP Report 2002-2009.csv2002.013.80
2Reset fire alarm at fire alarm panel, inside of front door. System problem alarm, not fire alarm.\\n\\nConley radioed/mlEngineering (RUCH)2002-10-312002-12-03 11:12:001RoutineElectrician6.25172.500.01937.3NLP Report 2002-2009.csv2002.02109.80
3Freezer is not cold.\\n\\nLA radioed / mlCopper Basin2002-10-312002-11-15 06:48:001RoutineHVAC0.256.630.00.0NLP Report 2002-2009.csv2002.06.63
4No air flow.\\n\\nLarel radioed / ml\\nFans down per Larel.\\nFans back up - Ed notified by vm / mlRiverfront Hall2002-10-312002-11-18 07:00:001RoutineHVAC0.256.630.00.0NLP Report 2002-2009.csv2002.06.63
\n", "
" ], "text/plain": [ " request_text \\\n", "0 RM 131, 132, 133, 134 TO COLD - Test DB Migration \n", "1 Closed per Foreman. - Closed per Foreman. - No electricity on one side of the room \n", "2 Reset fire alarm at fire alarm panel, inside of front door. System problem alarm, not fire alarm.\\n\\nConley radioed/ml \n", "3 Freezer is not cold.\\n\\nLA radioed / ml \n", "4 No air flow.\\n\\nLarel radioed / ml\\nFans down per Larel.\\nFans back up - Ed notified by vm / ml \n", "\n", " building_name request_date completion_date priority_code \\\n", "0 Chrisway Annex 2002-10-31 2002-11-04 07:00:00 1 \n", "1 Boulder Hall 2002-10-31 2017-12-16 17:00:00 1 \n", "2 Engineering (RUCH) 2002-10-31 2002-12-03 11:12:00 1 \n", "3 Copper Basin 2002-10-31 2002-11-15 06:48:00 1 \n", "4 Riverfront Hall 2002-10-31 2002-11-18 07:00:00 1 \n", "\n", " priority_description trade_description total_hours total_labor_cost \\\n", "0 Routine HVAC 1.25 56.25 \n", "1 Routine Electrician 0.50 13.80 \n", "2 Routine Electrician 6.25 172.50 \n", "3 Routine HVAC 0.25 6.63 \n", "4 Routine HVAC 0.25 6.63 \n", "\n", " total_material_cost total_other_cost source_file \\\n", "0 0.0 0.0 NLP Report 2002-2009.csv \n", "1 0.0 0.0 NLP Report 2002-2009.csv \n", "2 0.0 1937.3 NLP Report 2002-2009.csv \n", "3 0.0 0.0 NLP Report 2002-2009.csv \n", "4 0.0 0.0 NLP Report 2002-2009.csv \n", "\n", " request_year total_cost \n", "0 2002.0 56.25 \n", "1 2002.0 13.80 \n", "2 2002.0 2109.80 \n", "3 2002.0 6.63 \n", "4 2002.0 6.63 " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "# ============================================================\n", "# Normalize columns and parse data types\n", "# ============================================================\n", "\n", "data.columns = [str(c).strip() for c in data.columns]\n", "\n", "rename_map = {\n", " \"Request\": \"request_text\",\n", " \"Building Name\": \"building_name\",\n", " \"Request Date\": \"request_date\",\n", " \"Completion Date\": \"completion_date\",\n", " \"Priority Code\": \"priority_code\",\n", " \"Priority Description\": \"priority_description\",\n", " \"Trade Description\": \"trade_description\",\n", " \"Total Hours\": \"total_hours\",\n", " \"Total Labor Cost\": \"total_labor_cost\",\n", " \"Total Material Cost\": \"total_material_cost\",\n", " \"Total Other Cost\": \"total_other_cost\",\n", "}\n", "\n", "data = data.rename(columns=rename_map)\n", "\n", "def parse_money(value):\n", " if pd.isna(value):\n", " return np.nan\n", " text = str(value).strip()\n", " if text == \"\":\n", " return np.nan\n", " text = text.replace(\"$\", \"\").replace(\",\", \"\")\n", " try:\n", " return float(text)\n", " except ValueError:\n", " return np.nan\n", "\n", "for col in [\"total_labor_cost\", \"total_material_cost\", \"total_other_cost\"]:\n", " data[col] = data[col].apply(parse_money)\n", "\n", "data[\"total_hours\"] = pd.to_numeric(data[\"total_hours\"], errors=\"coerce\")\n", "\n", "for col in [\"request_date\", \"completion_date\"]:\n", " data[col] = pd.to_datetime(data[col], errors=\"coerce\")\n", "\n", "data[\"request_text\"] = data[\"request_text\"].fillna(\"\").astype(str)\n", "data[\"building_name\"] = data[\"building_name\"].fillna(\"\").astype(str).str.strip()\n", "data[\"trade_description\"] = data[\"trade_description\"].fillna(\"\").astype(str).str.strip()\n", "data[\"request_year\"] = data[\"request_date\"].dt.year\n", "\n", "data[\"total_cost\"] = (\n", " data[\"total_labor_cost\"].fillna(0)\n", " + data[\"total_material_cost\"].fillna(0)\n", " + data[\"total_other_cost\"].fillna(0)\n", ")\n", "\n", "print(\"Normalized shape:\", data.shape)\n", "print(\"\\nNormalized columns:\")\n", "print(data.columns.tolist())\n", "\n", "print(\"\\nDtypes:\")\n", "print(data.dtypes)\n", "\n", "display(data.head())\n" ] }, { "cell_type": "markdown", "id": "a3fe980b", "metadata": {}, "source": [ "\n", "## Build the regression dataset\n", "\n", "This follows the same style as the baseline notebook:\n", "- keep rows with real cost info\n", "- recompute `total_cost`\n", "- remove zero-cost rows\n", "- trim top 1% outliers\n", "- create `log_cost`\n" ] }, { "cell_type": "code", "execution_count": 6, "id": "8bd3a875", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Regression dataset shape: (256363, 15)\n", "Upper outlier cutoff (99th percentile): 4910.44\n", "\n", "Total cost summary:\n" ] }, { "data": { "text/plain": [ "count 256363.000000\n", "mean 206.659271\n", "std 477.854364\n", "min 0.040000\n", "25% 26.480000\n", "50% 60.600000\n", "75% 150.000000\n", "max 4910.000000\n", "Name: total_cost, dtype: float64" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "# ============================================================\n", "# Build clean regression dataset\n", "# ============================================================\n", "\n", "reg_df = data.copy()\n", "\n", "required_cols = [\n", " \"request_text\",\n", " \"total_labor_cost\",\n", " \"total_material_cost\",\n", " \"total_other_cost\",\n", "]\n", "\n", "missing = [c for c in required_cols if c not in reg_df.columns]\n", "if missing:\n", " print(\"Available columns:\")\n", " print(reg_df.columns.tolist())\n", " raise ValueError(f\"Missing required columns: {missing}\")\n", "\n", "reg_df = reg_df[\n", " reg_df[\"total_labor_cost\"].notna()\n", " | reg_df[\"total_material_cost\"].notna()\n", " | reg_df[\"total_other_cost\"].notna()\n", "].copy()\n", "\n", "reg_df[\"total_cost\"] = (\n", " reg_df[\"total_labor_cost\"].fillna(0)\n", " + reg_df[\"total_material_cost\"].fillna(0)\n", " + reg_df[\"total_other_cost\"].fillna(0)\n", ")\n", "\n", "reg_df = reg_df[reg_df[\"total_cost\"] > 0].copy()\n", "\n", "upper_limit = reg_df[\"total_cost\"].quantile(0.99)\n", "reg_df = reg_df[reg_df[\"total_cost\"] <= upper_limit].copy()\n", "\n", "reg_df[\"log_cost\"] = np.log1p(reg_df[\"total_cost\"])\n", "reg_df[\"request_text\"] = reg_df[\"request_text\"].fillna(\"\").astype(str)\n", "\n", "print(\"Regression dataset shape:\", reg_df.shape)\n", "print(\"Upper outlier cutoff (99th percentile):\", round(upper_limit, 2))\n", "print(\"\\nTotal cost summary:\")\n", "display(reg_df[\"total_cost\"].describe())\n" ] }, { "cell_type": "code", "execution_count": 7, "id": "e9533806", "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAtIAAAGJCAYAAACny9QDAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjgsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvwVt1zgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAQmRJREFUeJzt3Ql8Tmf+//9PIsSe2MMI0qGW0mgtQdEqX1FLa8oUNZqxDg21E7V3dBjGWGob7bQ6M4xlZmjtjLUl9ipRa0vRlmgRS4lEzu/xuf6Pc//vmyA5k8SdO6/n43Hmzjnnus+5cp9JvXPlOp/jZ1mWJQAAAADSxT99zQEAAAAQpAEAAACHGJEGAAAAHCBIAwAAAA4QpAEAAAAHCNIAAACAAwRpAAAAwAGCNAAAAOAAQRoAAABwgCANAJlo69at4ufnZ15zqgULFpjP4MyZM5l+rt/+9rdSoUIF17qeU8/9pz/9SbLCuHHjzPkA5AwEaQA+R4NMWpa0hNs//OEPsmLFCskqX3/9tfzud7+TJ554QvLmzSuFCxeW5557TmbMmCG3bt3K8PP9/PPPJvylNejbvxjYS2BgoJQqVUpeeOEF81ldunTpsfQrK3lz3wBkrYAsPh8AZLq///3v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1y5csnFixc9tut6SEhIqu8JDAw0i7vg4GDJavp/JoK0b+Ba+g6upe/gWvoGrqPvKJwBuedRI9E2HsiSRnny5JFatWrJpk2bPEaYdb1+/frOrhIAAACyLUak00GnaURFRUnt2rVN7Wgtf3fz5k3p2rVr5l0hAAAAeCWCdDp06NBBLl26JGPGjDEPZKlZs6asW7fuvhsQvYVOKxk7dux900uQ/XAtfQfX0ndwLX0D19F3BD6G3EMdaQAAAMAB5kgDAAAADhCkAQAAAAcI0gAAAIADBGkAAADAAYK0D5s9e7ZUqFBB8ubNKxEREbJnz57H3aUcbfv27dKmTRvzpCR9suWKFSvue5KSVoQpXbq05MuXT5o1ayYnT570aKNPxuzcubMpNK8P9+nevbvcuHHDo82hQ4ekUaNG5rrrE54mT56cJd9fTjFx4kSpU6eOFCpUSEqWLClt27aV48ePe7S5ffu2REdHm6eYFixYUNq1a3ffw5zOnj0rrVq1kvz585vjDB06VJKTkz3abN26VZ599llzB3rFihVlwYIFWfI95hRz586Vp59+2vXwBn0mwNq1a137uY7Z16RJk8x/ZwcMGODaxvXMHsaNG2eunftSpUoV772OFnzS4sWLrTx58lgffvihdeTIEatnz55WcHCwdfHixcfdtRxrzZo11siRI63//Oc/lv7oLV++3GP/pEmTrKCgIGvFihXWl19+ab388stWWFiYdevWLVebFi1aWOHh4dauXbuszz77zKpYsaLVqVMn1/6EhASrVKlSVufOna24uDjrn//8p5UvXz7rL3/5S5Z+r74sMjLS+uijj8zne/DgQatly5ZWuXLlrBs3brja9O7d2woNDbU2bdpk7du3z6pXr57VoEED1/7k5GSrevXqVrNmzawvvvjC/H+jePHi1ogRI1xtvvnmGyt//vzWoEGDrK+++sp67733rFy5clnr1q3L8u/ZV3366afW6tWrrRMnTljHjx+33n77bSt37tzm2iquY/a0Z88eq0KFCtbTTz9t9e/f37Wd65k9jB071nrqqaesH374wbVcunTJa68jQdpH1a1b14qOjnat37171ypTpow1ceLEx9ov/H/uDdIpKSlWSEiINWXKFNe2q1evWoGBgSYM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cqPojeDKgPTAEAX0aQBgAAABxgagcAAADgAEEaAAAAcIAgDQAAADhAkAYAAAAcIEgDAAAADhCkAQAAAAcI0gAAAICk3/8DZg9ykkYeAugAAAAASUVORK5CYII=", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAskAAAGJCAYAAAB4ha4cAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjgsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvwVt1zgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAOlJJREFUeJzt3Qd4VGX69/E7lNB7C5EYqvQOxoAgCBIwoqxY6KCUxaXDUuIC0hSERUQpEQvgKyhgAQSkhaYQBEJHw9ICuBJABQKooc173c/1P7OZkwQSTDIzyfdzXbOTc86TM89MWPzx5D738XE4HA4BAAAA4JTtf18CAAAAICQDAAAASWAlGQAAALAhJAMAAAA2hGQAAADAhpAMAAAA2BCSAQAAABtCMgAAAGBDSAYAAABsCMkAgBQbN26c+Pj4ZMgn1qxZM/OwbNmyxbz2559/niGv36NHDylbtmyGvBYAz0NIBpApLFiwwASoPXv2iKfYv3+/dOnSRQICAiRXrlxStGhRadmypcyfP19u376d5q/3888/mxCrr5uaz8x65M6dW/z9/SUkJETeeecduXr1qlvmlZE8eW4A3CuHm18fADKlDz74QPr27SulSpWSrl27SqVKlUzojIiIkJ49e8q5c+fk1VdfTfPAN378eLP6WadOnRR/34QJE6RcuXJy8+ZNiY2NNSu2gwcPlrfeektWrlwptWrVco4dPXq0jBo1KkPmtX79eklvd5vb+++/L3fu3En3OQDwTIRkAEhjO3fuNAE5ODhY1qxZIwUKFHAe0/Cpq92HDx/2mM+9TZs20qBBA+d2WFiYbNq0SZ566il5+umn5ccff5Q8efKYYzly5DCP9PT7779L3rx5xdfXV9wpZ86cbn19AO5FuQWALGXfvn0mFBYsWFDy588vLVq0MKHW7uDBg/LYY4+ZcFimTB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sr18/2blzp2zYsEFu3rwprVq1Mr29gd27d8t7770ntWrV4sPIwi5duiSNGzeWnDlzyjfffCM//PCDTJ8+XYoUKeLuqcFN3nzzTZk7d67MmjVLfvzxR7M9depUeffdd/mZ2NACzkvoyrGuGuofautugAEBATJgwAAZNWqUu6cHD6A9vnVFWcNz06ZN3T0duNG1a9ekXr16MmfOHJk0aZLp+a43R0LWo/992L59u3z77bfungo8xFNPPWXu//Dhhx8697Vv396sKn/yySdunZunYSXZC9y4cUOioqKkZcuWzn3ZsmUz25GRkW6dGzzHlStXzHPRokXdPRW4mf6GITQ01OXvDGRNK1euNHeRff75580/ouvWrSvvv/++u6cFN2rUqJFERETIf/7zH7N94MAB+e6776RNmzb8XGy4454X+OWXX0wNkf3Of7odHR3ttnnBc+hvFrTuVH+tWqNGDXdPB2702WefmZIsLbcATp48aX61ruV6r776qvlzMXDgQPH19ZXu3bvzAWXR3y7ExcVJlSpVJHv27CZfvP7669K5c2d3T83jEJKBTLJyePjwYbMagKzr7NmzMmjQIFOjrhf4AvoPaF1JfuONN8yHoSvJ+ndFeHg4ITmLWrp0qSxatEgWL14s1atXl/3795tFFn9/f/5M2BCSvUDx4sXNv/bOnz/vsl+3/fz83DYveIb+/fvLqlWrZNu2bVKmTBl3TwdupGVZejGv1iNbdJVI/2zo9Qzx8fHm7xJkHaVLl5Zq1aq57Ktatap88cUXbpsT3Gv48OFmNblDhw5mW7udnD592nRM4rcLrqhJ9gL6a7H69eubGqKEqwO6HRwc7Na5wX20XY8G5K+++ko2bdpk2vkga2vRooUcOnTIrAxZD11F1F+j6tcE5KxHS7DsrSG1FjUwMNBtc4J7/f777+a6poT07wbNFXDFSrKX0Hoy/Ree/gfv4YcfNleqa6uvl156yd1TgxtLLPTXZStWrDC9kmNjY83+QoUKmauUkfXonwN7TXq+fPlMf1xq1bOmIUOGmAu1tNzihRdeMP31582bZx7Imtq2bWtqkB988EFTbrFv3z5566235OWXX3b31DwOLeC8iP66dNq0aSYMaUund955x7SGQ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V+/vjz11FMSHBxsuktoKM6ZM6c5rrXA4eHhJiTXrl1b1q5dK0OGDDHt3FJ6keCyZctM9wq9WPDxxx+XXbt2pfj1dZVYLzDUYNy6dWtzod+cOXPMMQ3T48ePl1GjRkmpUqWkf//+6fIZAcD9oLsFAGQxuvIbHR0t3377rbunAgAeK4e7JwAASF///ve/TX9kvZmHllpoezZrNRcAkDRWkgEgk3vhhRdMT+KrV6+ansdap6wX0im9A57eFS8pWr/cuXPnDJ4tAHgGQjIAZGEakK2749lpnXCBAgUyfE4A4AkIyQAAAIAN3S0AAAAAG0IyAAAAYENIBgAAAGwIyQAAAIANIRkAAACwISQDAAAANoRkAAAAQFz9fyg5hgsxZ1VzAAAAAElFTkSuQmCC", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "# Quick look at target distributions\n", "\n", "plt.figure(figsize=(8, 4))\n", "plt.hist(reg_df[\"total_cost\"], bins=50)\n", "plt.title(\"Total Cost Distribution\")\n", "plt.xlabel(\"total_cost\")\n", "plt.ylabel(\"count\")\n", "plt.show()\n", "\n", "plt.figure(figsize=(8, 4))\n", "plt.hist(reg_df[\"log_cost\"], bins=50)\n", "plt.title(\"Log Cost Distribution\")\n", "plt.xlabel(\"log_cost\")\n", "plt.ylabel(\"count\")\n", "plt.show()\n" ] }, { "cell_type": "markdown", "id": "f4ba19a5", "metadata": {}, "source": [ "\n", "## Text preprocessing\n", "\n", "The baseline notebook already used:\n", "- `clean_text`\n", "- simple keyword augmentation\n", "\n", "This notebook keeps that baseline behavior and then adds:\n", "- abbreviation expansion\n", "- domain-aware tokens\n", "- domain flags\n" ] }, { "cell_type": "code", "execution_count": 8, "id": "448393b3", "metadata": {}, "outputs": [], "source": [ "\n", "# ============================================================\n", "# Text preprocessing helpers\n", "# ============================================================\n", "\n", "ABBREVIATION_MAP = {\n", " \"vfd\": \"variable_frequency_drive\",\n", " \"ahu\": \"air_handling_unit\",\n", " \"rtu\": \"roof_top_unit\",\n", " \"fcu\": \"fan_coil_unit\",\n", " \"ddc\": \"direct_digital_control\",\n", " \"pm\": \"preventive_maintenance\",\n", " \"hvac\": \"heating_ventilation_air_conditioning\",\n", " \"fd\": \"fire_damper\",\n", " \"cuh\": \"cabinet_unit_heater\",\n", " \"btu\": \"british_thermal_unit\",\n", " \"wc\": \"water_closet\",\n", " \"ef\": \"exhaust_fan\",\n", " \"mcc\": \"motor_control_center\",\n", " \"vav\": \"variable_air_volume\",\n", "}\n", "\n", "def clean_text(text):\n", " text = str(text).lower()\n", " text = text.replace(\"\\n\", \" \")\n", " text = text.replace(\"/\", \" \")\n", " text = text.replace(\"-\", \" \")\n", " text = re.sub(r\"[^a-z0-9_\\s]\", \" \", text)\n", " text = re.sub(r\"\\s+\", \" \", text).strip()\n", " return text\n", "\n", "def add_baseline_keywords(text):\n", " text = str(text).lower()\n", "\n", " if any(word in text for word in [\"paint\", \"painted\", \"repaint\"]):\n", " text += \" painting_keyword\"\n", "\n", " if any(word in text for word in [\"door\", \"frame\", \"wood\", \"cabinet\"]):\n", " text += \" carpentry_keyword\"\n", "\n", " return text\n", "\n", "def expand_abbreviations(text, abbreviation_map=ABBREVIATION_MAP):\n", " words = str(text).split()\n", " expanded_words = [abbreviation_map.get(word, word) for word in words]\n", " return \" \".join(expanded_words)\n", "\n", "def add_domain_tokens(text):\n", " text = str(text).lower()\n", " added = []\n", "\n", " if re.search(r\"\\bvfd\\b|\\bvariable_frequency_drive\\b|\\bvariable frequency drive\\b\", text):\n", " added.extend([\"expensive_hvac_component\", \"motor_drive_system\"])\n", "\n", " if re.search(r\"\\breplace\\b|\\breplacement\\b\", text):\n", " added.append(\"replacement_work\")\n", "\n", " if re.search(r\"\\binstall\\b|\\binstallation\\b\", text):\n", " added.append(\"installation_work\")\n", "\n", " if re.search(r\"\\bquote\\b|\\bestimate\\b|\\bproposal\\b\", text):\n", " added.append(\"quote_related\")\n", "\n", " if re.search(r\"\\bdanfoss\\b|\\bab\\b|\\ballen bradley\\b|\\bsiemens\\b|\\btrane\\b|\\byork\\b\", text):\n", " added.append(\"equipment_brand\")\n", "\n", " if re.search(r\"\\bcard reader\\b|\\baccess control\\b|\\block\\b|\\brekey\\b|\\bkey\\b\", text):\n", " added.append(\"security_access_system\")\n", "\n", " if re.search(r\"\\bhvac\\b|\\bheating_ventilation_air_conditioning\\b|\\bair_handling_unit\\b|\\broof_top_unit\\b|\\bboiler\\b|\\bchiller\\b|\\bvariable_air_volume\\b\", text):\n", " added.append(\"hvac_mechanical_scope\")\n", "\n", " if re.search(r\"\\bpanel\\b|\\bbreaker\\b|\\bdisconnect\\b|\\btransformer\\b|\\bvoltage\\b|\\b480v\\b|\\b277v\\b\", text):\n", " added.append(\"electrical_scope\")\n", "\n", " if re.search(r\"\\bplumb\\w*\\b|\\bleak\\b|\\bvalve\\b|\\bpipe\\b|\\bwater_closet\\b|\\bwc\\b\", text):\n", " added.append(\"plumbing_scope\")\n", "\n", " if re.search(r\"\\bmaintenance\\b|\\bchecks\\b|\\broutine\\b|\\bvarious\\b\", text):\n", " added.append(\"vague_scope_language\")\n", "\n", " if added:\n", " text = text + \" \" + \" \".join(added)\n", "\n", " return text\n", "\n", "def preprocess_baseline(series):\n", " return (\n", " series.fillna(\"\")\n", " .astype(str)\n", " .apply(clean_text)\n", " .apply(add_baseline_keywords)\n", " )\n", "\n", "def preprocess_domain(series):\n", " return (\n", " series.fillna(\"\")\n", " .astype(str)\n", " .apply(clean_text)\n", " .apply(expand_abbreviations)\n", " .apply(add_baseline_keywords)\n", " .apply(add_domain_tokens)\n", " )\n" ] }, { "cell_type": "code", "execution_count": 9, "id": "047e6fdd", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
has_vfdhas_replacehas_installhas_hvachas_electricalhas_plumbinghas_securityhas_brandhas_quotehas_numberhas_voltagehas_hpis_vagueword_count
0000000000100011
1000000000000016
2000010000000019
300000000000008
4000000000000021
\n", "
" ], "text/plain": [ " has_vfd has_replace has_install has_hvac has_electrical has_plumbing \\\n", "0 0 0 0 0 0 0 \n", "1 0 0 0 0 0 0 \n", "2 0 0 0 0 1 0 \n", "3 0 0 0 0 0 0 \n", "4 0 0 0 0 0 0 \n", "\n", " has_security has_brand has_quote has_number has_voltage has_hp \\\n", "0 0 0 0 1 0 0 \n", "1 0 0 0 0 0 0 \n", "2 0 0 0 0 0 0 \n", "3 0 0 0 0 0 0 \n", "4 0 0 0 0 0 0 \n", "\n", " is_vague word_count \n", "0 0 11 \n", "1 0 16 \n", "2 0 19 \n", "3 0 8 \n", "4 0 21 " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "# ============================================================\n", "# Structured domain flags\n", "# ============================================================\n", "\n", "def build_domain_flags(series):\n", " text = series.fillna(\"\").astype(str).str.lower()\n", "\n", " flags = pd.DataFrame(index=series.index)\n", " flags[\"has_vfd\"] = text.str.contains(r\"\\bvfd\\b|\\bvariable frequency drive\\b\", regex=True).astype(int)\n", " flags[\"has_replace\"] = text.str.contains(r\"\\breplace\\b|\\breplacement\\b\", regex=True).astype(int)\n", " flags[\"has_install\"] = text.str.contains(r\"\\binstall\\b|\\binstallation\\b\", regex=True).astype(int)\n", " flags[\"has_hvac\"] = text.str.contains(r\"\\bhvac\\b|\\bahu\\b|\\brtu\\b|\\bfcu\\b|\\bboiler\\b|\\bchiller\\b|\\bvav\\b\", regex=True).astype(int)\n", " flags[\"has_electrical\"] = text.str.contains(r\"\\belectrical\\b|\\bpanel\\b|\\bbreaker\\b|\\bdisconnect\\b|\\btransformer\\b|\\b480v\\b|\\b277v\\b\", regex=True).astype(int)\n", " flags[\"has_plumbing\"] = text.str.contains(r\"\\bplumb\\w*\\b|\\bleak\\b|\\bvalve\\b|\\bpipe\\b|\\bwc\\b|\\bwater closet\\b\", regex=True).astype(int)\n", " flags[\"has_security\"] = text.str.contains(r\"\\block\\b|\\bcard reader\\b|\\baccess control\\b|\\brekey\\b|\\bkey\\b\", regex=True).astype(int)\n", " flags[\"has_brand\"] = text.str.contains(r\"\\bdanfoss\\b|\\btrane\\b|\\bsiemens\\b|\\ballen bradley\\b|\\bab\\b|\\byork\\b\", regex=True).astype(int)\n", " flags[\"has_quote\"] = text.str.contains(r\"\\bquote\\b|\\bestimate\\b|\\bproposal\\b\", regex=True).astype(int)\n", " flags[\"has_number\"] = text.str.contains(r\"\\d\", regex=True).astype(int)\n", " flags[\"has_voltage\"] = text.str.contains(r\"\\b\\d+\\s?v\\b|\\b480v\\b|\\b277v\\b|\\b208v\\b|\\b120v\\b\", regex=True).astype(int)\n", " flags[\"has_hp\"] = text.str.contains(r\"\\b\\d+\\s?hp\\b\", regex=True).astype(int)\n", " flags[\"is_vague\"] = text.str.contains(r\"\\bmaintenance\\b|\\bchecks\\b|\\broutine\\b|\\bvarious\\b|\\bminor maintenance\\b\", regex=True).astype(int)\n", " flags[\"word_count\"] = text.str.split().str.len().fillna(0).astype(int)\n", "\n", " return flags\n", "\n", "sample_flags = build_domain_flags(reg_df[\"request_text\"].head(5))\n", "display(sample_flags)\n" ] }, { "cell_type": "markdown", "id": "116e262d", "metadata": {}, "source": [ "\n", "## Shared train/test split\n", "\n", "Both models use the **same split**, so the comparison is fair.\n", "\n", "- **Baseline model**: TF-IDF on cleaned text\n", "- **Domain-aware model**: TF-IDF on expanded/augmented text + binary flags\n" ] }, { "cell_type": "code", "execution_count": 11, "id": "3a474b94", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Train size: 205090\n", "Test size: 51273\n", "\n", "Sample baseline text:\n", "to rearrange the furniture please note that the desks are extremely heavy and take multiple people to move also i would like to be here when the move occurs and i work a short schedule in the summer it would be great if someone could contact me regarding the timing so that they don t show up unexpec\n", "\n", "Sample domain-aware text:\n", "to rearrange the furniture please note that the desks are extremely heavy and take multiple people to move also i would like to be here when the move occurs and i work a short schedule in the summer it would be great if someone could contact me regarding the timing so that they don t show up unexpec\n" ] } ], "source": [ "\n", "# ============================================================\n", "# Shared train/test split\n", "# ============================================================\n", "\n", "BASELINE_TFIDF_KWARGS = dict(\n", " max_features=3000,\n", " ngram_range=(1, 2),\n", " min_df=15,\n", " max_df=0.8,\n", " stop_words=\"english\",\n", ")\n", "\n", "X_raw = reg_df[\"request_text\"]\n", "y = reg_df[\"log_cost\"]\n", "\n", "X_train_raw, X_test_raw, y_train, y_test = train_test_split(\n", " X_raw,\n", " y,\n", " test_size=0.20,\n", " random_state=42,\n", ")\n", "\n", "X_train_baseline_text = preprocess_baseline(X_train_raw)\n", "X_test_baseline_text = preprocess_baseline(X_test_raw)\n", "\n", "X_train_domain_text = preprocess_domain(X_train_raw)\n", "X_test_domain_text = preprocess_domain(X_test_raw)\n", "\n", "X_train_flags = build_domain_flags(X_train_raw)\n", "X_test_flags = build_domain_flags(X_test_raw)\n", "\n", "print(\"Train size:\", len(X_train_raw))\n", "print(\"Test size:\", len(X_test_raw))\n", "print(\"\\nSample baseline text:\")\n", "print(X_train_baseline_text.iloc[0][:300])\n", "\n", "print(\"\\nSample domain-aware text:\")\n", "print(X_train_domain_text.iloc[0][:300])\n" ] }, { "cell_type": "code", "execution_count": 12, "id": "0521f88f", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'model': 'Baseline TF-IDF Ridge',\n", " 'mae_log': 0.7618783636399127,\n", " 'rmse_log': np.float64(1.0193330814105395),\n", " 'mae_actual': 149.89039077606475,\n", " 'rmse_actual': np.float64(432.9970974353996),\n", " 'r2_log': 0.4397704316196881}" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "\n", "# ============================================================\n", "# Baseline model\n", "# ============================================================\n", "\n", "baseline_vectorizer = TfidfVectorizer(**BASELINE_TFIDF_KWARGS)\n", "\n", "X_train_baseline_vec = baseline_vectorizer.fit_transform(X_train_baseline_text)\n", "X_test_baseline_vec = baseline_vectorizer.transform(X_test_baseline_text)\n", "\n", "baseline_model = Ridge(alpha=1.0, solver=\"lsqr\")\n", "baseline_model.fit(X_train_baseline_vec, y_train)\n", "\n", "baseline_pred_log = baseline_model.predict(X_test_baseline_vec)\n", "baseline_pred_actual = np.expm1(baseline_pred_log)\n", "y_test_actual = np.expm1(y_test)\n", "\n", "baseline_results = pd.DataFrame({\n", " \"text\": X_test_raw.reset_index(drop=True),\n", " \"actual_cost\": y_test_actual.reset_index(drop=True),\n", " \"predicted_cost\": baseline_pred_actual,\n", "})\n", "\n", "baseline_results[\"abs_error\"] = (\n", " baseline_results[\"actual_cost\"] - baseline_results[\"predicted_cost\"]\n", ").abs()\n", "\n", "baseline_results[\"error_ratio\"] = (\n", " baseline_results[\"abs_error\"] / baseline_results[\"actual_cost\"].replace(0, np.nan)\n", ")\n", "\n", "baseline_metrics = {\n", " \"model\": \"Baseline TF-IDF Ridge\",\n", " \"mae_log\": mean_absolute_error(y_test, baseline_pred_log),\n", " \"rmse_log\": np.sqrt(mean_squared_error(y_test, baseline_pred_log)),\n", " \"mae_actual\": mean_absolute_error(y_test_actual, baseline_pred_actual),\n", " \"rmse_actual\": np.sqrt(mean_squared_error(y_test_actual, baseline_pred_actual)),\n", " \"r2_log\": r2_score(y_test, baseline_pred_log),\n", "}\n", "\n", "baseline_metrics\n" ] }, { "cell_type": "code", "execution_count": 13, "id": "7e1b0113", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'model': 'Domain-aware TF-IDF + flags Ridge',\n", " 'mae_log': 0.7784663239146327,\n", " 'rmse_log': np.float64(1.0366697694571012),\n", " 'mae_actual': 151.28428421221034,\n", " 'rmse_actual': np.float64(437.0028197324518),\n", " 'r2_log': 0.4205517480699449}" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "\n", "# ============================================================\n", "# Domain-aware model\n", "# ============================================================\n", "\n", "domain_vectorizer = TfidfVectorizer(**BASELINE_TFIDF_KWARGS)\n", "\n", "X_train_domain_vec = domain_vectorizer.fit_transform(X_train_domain_text)\n", "X_test_domain_vec = domain_vectorizer.transform(X_test_domain_text)\n", "\n", "X_train_flags_sparse = csr_matrix(X_train_flags.values)\n", "X_test_flags_sparse = csr_matrix(X_test_flags.values)\n", "\n", "X_train_domain_final = hstack([X_train_domain_vec, X_train_flags_sparse])\n", "X_test_domain_final = hstack([X_test_domain_vec, X_test_flags_sparse])\n", "\n", "domain_model = Ridge(alpha=1.0, solver=\"lsqr\")\n", "domain_model.fit(X_train_domain_final, y_train)\n", "\n", "domain_pred_log = domain_model.predict(X_test_domain_final)\n", "domain_pred_actual = np.expm1(domain_pred_log)\n", "\n", "domain_results = pd.DataFrame({\n", " \"text\": X_test_raw.reset_index(drop=True),\n", " \"actual_cost\": y_test_actual.reset_index(drop=True),\n", " \"predicted_cost\": domain_pred_actual,\n", "})\n", "\n", "domain_results[\"abs_error\"] = (\n", " domain_results[\"actual_cost\"] - domain_results[\"predicted_cost\"]\n", ").abs()\n", "\n", "domain_results[\"error_ratio\"] = (\n", " domain_results[\"abs_error\"] / domain_results[\"actual_cost\"].replace(0, np.nan)\n", ")\n", "\n", "domain_metrics = {\n", " \"model\": \"Domain-aware TF-IDF + flags Ridge\",\n", " \"mae_log\": mean_absolute_error(y_test, domain_pred_log),\n", " \"rmse_log\": np.sqrt(mean_squared_error(y_test, domain_pred_log)),\n", " \"mae_actual\": mean_absolute_error(y_test_actual, domain_pred_actual),\n", " \"rmse_actual\": np.sqrt(mean_squared_error(y_test_actual, domain_pred_actual)),\n", " \"r2_log\": r2_score(y_test, domain_pred_log),\n", "}\n", "\n", "domain_metrics\n" ] }, { "cell_type": "code", "execution_count": 14, "id": "f875dd3b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
modelmae_logrmse_logmae_actualrmse_actualr2_log
0Baseline TF-IDF Ridge0.7618781.019333149.890391432.9970970.439770
1Domain-aware TF-IDF + flags Ridge0.7784661.036670151.284284437.0028200.420552
\n", "
" ], "text/plain": [ " model mae_log rmse_log mae_actual \\\n", "0 Baseline TF-IDF Ridge 0.761878 1.019333 149.890391 \n", "1 Domain-aware TF-IDF + flags Ridge 0.778466 1.036670 151.284284 \n", "\n", " rmse_actual r2_log \n", "0 432.997097 0.439770 \n", "1 437.002820 0.420552 " ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "Baseline model has lower RMSE in actual dollars.\n", "Baseline model has lower MAE in actual dollars.\n" ] } ], "source": [ "\n", "# ============================================================\n", "# Side-by-side comparison\n", "# ============================================================\n", "\n", "comparison_df = pd.DataFrame([baseline_metrics, domain_metrics])\n", "display(comparison_df)\n", "\n", "if comparison_df.loc[1, \"rmse_actual\"] < comparison_df.loc[0, \"rmse_actual\"]:\n", " print(\"Domain-aware model has lower RMSE in actual dollars.\")\n", "else:\n", " print(\"Baseline model has lower RMSE in actual dollars.\")\n", "\n", "if comparison_df.loc[1, \"mae_actual\"] < comparison_df.loc[0, \"mae_actual\"]:\n", " print(\"Domain-aware model has lower MAE in actual dollars.\")\n", "else:\n", " print(\"Baseline model has lower MAE in actual dollars.\")\n" ] }, { "cell_type": "markdown", "id": "76466de9", "metadata": {}, "source": [ "\n", "## Inspect worst predictions\n" ] }, { "cell_type": "code", "execution_count": 15, "id": "c3b95383", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "===== BASELINE MODEL: TOP 10 WORST =====\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
textactual_costpredicted_costabs_errorerror_ratio
46737HVAC: Boilers Service4855.5584.1055054771.4444950.982678
32407In LA the carpet in the main area of the writing center (200, 201, 220 a b, 202, 206) is loose and wrinkled up throughout. \\n\\nAccount #: 881A1000014864.1294.0279114770.0920890.980669
37927-911A100007; -Metal Detector batteries (90);\\n1001.91108.5402007\\n\\n\\nAccount code 5199004817.1155.1176244761.9923760.988558
19651MAINT: Repair exterior clock on the NE corner of the AFC building;\\nMisc. Activities/Actions, Statues/Monuments/Clock Towers/Flag Poles4856.0096.9585694759.0414310.980033
3256Daily Building Checks4785.9462.1328164723.8071840.987018
36938Install vent damper on top of elevator shaft.\\nObtain proposal(s) to install a gravity damper on the roof atop the northwest elevator shaft. Suggest a unit to match the damper on the north centra...4873.69157.0989874716.5910130.967766
24498Pool mechanical routine maintenance4878.37178.8258534699.5441470.963343
31821Install owner provided wall paper in the new Trueblood and Gipson Meeting rooms. Install chair rail to be made by the campus wood shop. Chg. to #987L1030084903.59204.3025994699.2874010.958336
30904includes seminars/ conferences / in-house training , irrigation horticulture and arborist, includes training on vehicles and equipment, WeTMA, and other office4819.50125.1781704694.3218300.974027
2116HVAC: Loop chemical check and adjust chemical levels; record levels to work order4759.9465.6698144694.2701860.986204
\n", "
" ], "text/plain": [ " text \\\n", "46737 HVAC: Boilers Service \n", "32407 In LA the carpet in the main area of the writing center (200, 201, 220 a b, 202, 206) is loose and wrinkled up throughout. \\n\\nAccount #: 881A100001 \n", "37927 -911A100007; -Metal Detector batteries (90);\\n1001.91108.5402007\\n\\n\\nAccount code 519900 \n", "19651 MAINT: Repair exterior clock on the NE corner of the AFC building;\\nMisc. Activities/Actions, Statues/Monuments/Clock Towers/Flag Poles \n", "3256 Daily Building Checks \n", "36938 Install vent damper on top of elevator shaft.\\nObtain proposal(s) to install a gravity damper on the roof atop the northwest elevator shaft. Suggest a unit to match the damper on the north centra... \n", "24498 Pool mechanical routine maintenance \n", "31821 Install owner provided wall paper in the new Trueblood and Gipson Meeting rooms. Install chair rail to be made by the campus wood shop. Chg. to #987L103008 \n", "30904 includes seminars/ conferences / in-house training , irrigation horticulture and arborist, includes training on vehicles and equipment, WeTMA, and other office \n", "2116 HVAC: Loop chemical check and adjust chemical levels; record levels to work order \n", "\n", " actual_cost predicted_cost abs_error error_ratio \n", "46737 4855.55 84.105505 4771.444495 0.982678 \n", "32407 4864.12 94.027911 4770.092089 0.980669 \n", "37927 4817.11 55.117624 4761.992376 0.988558 \n", "19651 4856.00 96.958569 4759.041431 0.980033 \n", "3256 4785.94 62.132816 4723.807184 0.987018 \n", "36938 4873.69 157.098987 4716.591013 0.967766 \n", "24498 4878.37 178.825853 4699.544147 0.963343 \n", "31821 4903.59 204.302599 4699.287401 0.958336 \n", "30904 4819.50 125.178170 4694.321830 0.974027 \n", "2116 4759.94 65.669814 4694.270186 0.986204 " ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "===== DOMAIN-AWARE MODEL: TOP 10 WORST =====\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
textactual_costpredicted_costabs_errorerror_ratio
46737HVAC: Boilers Service4855.5554.6366564800.9133440.988748
32407In LA the carpet in the main area of the writing center (200, 201, 220 a b, 202, 206) is loose and wrinkled up throughout. \\n\\nAccount #: 881A1000014864.1269.3717704794.7482300.985738
19651MAINT: Repair exterior clock on the NE corner of the AFC building;\\nMisc. Activities/Actions, Statues/Monuments/Clock Towers/Flag Poles4856.0083.4479944772.5520060.982815
31821Install owner provided wall paper in the new Trueblood and Gipson Meeting rooms. Install chair rail to be made by the campus wood shop. Chg. to #987L1030084903.59143.1738094760.4161910.970802
37927-911A100007; -Metal Detector batteries (90);\\n1001.91108.5402007\\n\\n\\nAccount code 5199004817.1163.6089934753.5010070.986795
19558Compressor on unit will not work.4826.5993.7781424732.8118580.980571
24498Pool mechanical routine maintenance4878.37149.2221124729.1478880.969411
3256Daily Building Checks4785.9470.4643574715.4756430.985277
2116HVAC: Loop chemical check and adjust chemical levels; record levels to work order4759.9454.8189134705.1210870.988483
14134Batch Closed. - Irrigation - Renovation and all Maintenance for Housing4882.41178.8046524703.6053480.963378
\n", "
" ], "text/plain": [ " text \\\n", "46737 HVAC: Boilers Service \n", "32407 In LA the carpet in the main area of the writing center (200, 201, 220 a b, 202, 206) is loose and wrinkled up throughout. \\n\\nAccount #: 881A100001 \n", "19651 MAINT: Repair exterior clock on the NE corner of the AFC building;\\nMisc. Activities/Actions, Statues/Monuments/Clock Towers/Flag Poles \n", "31821 Install owner provided wall paper in the new Trueblood and Gipson Meeting rooms. Install chair rail to be made by the campus wood shop. Chg. to #987L103008 \n", "37927 -911A100007; -Metal Detector batteries (90);\\n1001.91108.5402007\\n\\n\\nAccount code 519900 \n", "19558 Compressor on unit will not work. \n", "24498 Pool mechanical routine maintenance \n", "3256 Daily Building Checks \n", "2116 HVAC: Loop chemical check and adjust chemical levels; record levels to work order \n", "14134 Batch Closed. - Irrigation - Renovation and all Maintenance for Housing \n", "\n", " actual_cost predicted_cost abs_error error_ratio \n", "46737 4855.55 54.636656 4800.913344 0.988748 \n", "32407 4864.12 69.371770 4794.748230 0.985738 \n", "19651 4856.00 83.447994 4772.552006 0.982815 \n", "31821 4903.59 143.173809 4760.416191 0.970802 \n", "37927 4817.11 63.608993 4753.501007 0.986795 \n", "19558 4826.59 93.778142 4732.811858 0.980571 \n", "24498 4878.37 149.222112 4729.147888 0.969411 \n", "3256 4785.94 70.464357 4715.475643 0.985277 \n", "2116 4759.94 54.818913 4705.121087 0.988483 \n", "14134 4882.41 178.804652 4703.605348 0.963378 " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "# Top 10 worst rows for each model\n", "\n", "baseline_worst_10 = baseline_results.sort_values(\"abs_error\", ascending=False).head(10).copy()\n", "domain_worst_10 = domain_results.sort_values(\"abs_error\", ascending=False).head(10).copy()\n", "\n", "print(\"===== BASELINE MODEL: TOP 10 WORST =====\")\n", "display(baseline_worst_10)\n", "\n", "print(\"===== DOMAIN-AWARE MODEL: TOP 10 WORST =====\")\n", "display(domain_worst_10)\n" ] }, { "cell_type": "code", "execution_count": 16, "id": "ae312826", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Exported:\n", "- baseline_domain_experiment_worst_100.csv\n", "- domain_aware_experiment_worst_100.csv\n" ] } ], "source": [ "\n", "# Export worst 100 for each model\n", "\n", "baseline_worst_100 = baseline_results.sort_values(\"abs_error\", ascending=False).head(100).copy()\n", "domain_worst_100 = domain_results.sort_values(\"abs_error\", ascending=False).head(100).copy()\n", "\n", "baseline_worst_100.to_csv(\"baseline_domain_experiment_worst_100.csv\", index=False)\n", "domain_worst_100.to_csv(\"domain_aware_experiment_worst_100.csv\", index=False)\n", "\n", "print(\"Exported:\")\n", "print(\"- baseline_domain_experiment_worst_100.csv\")\n", "print(\"- domain_aware_experiment_worst_100.csv\")\n" ] }, { "cell_type": "markdown", "id": "ed10d98d", "metadata": {}, "source": [ "\n", "## Check VFD-like rows\n", "\n", "This focuses on the exact kind of nuance that motivated the experiment.\n" ] }, { "cell_type": "code", "execution_count": 17, "id": "0f39af4c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Baseline VFD-like rows in test results: 68\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
textactual_costpredicted_costabs_errorerror_ratio
130\\nVFD is OFFLINE as reported by Metasys.\\nTroubleshoot and correct.\\n401.3066.317504334.9824960.834743
665Closed per Foreman. - Rocky Yoneda 12/19/2017 17:34 -No charge for the display \\nBrett Bogardus 12/19/2017 13:04 -installed display from used VFD. complete. \\nVFD control display is blank. ETC 1-w...45.00322.558311277.5583116.167962
1263HVAC: At the SMASH Building there is no power to vfd;\\n\"Gerald Graham 05/17/2021 10:20 - \\nno power to vfd\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements216.32284.75816468.4381640.316375
3514HVAC: Need to order and replace the small cooling fans in the VFD;\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements189.76474.452871284.6928711.500279
3694HVAC: Install resistive break on VFD 2 in Education;\\n\\n\"Gerald Graham 06/14/2021 13:10 - Install resistive break on VFD 2\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replace...162.50441.802438279.3024381.718784
6357HVAC: Service Return Fan VFD32.5074.56930842.0693081.294440
6418vfd to pump 6 not working \\n392.3983.178916309.2110840.788020
6592\\nSERVICE BULLETIN C0406\\n\\nJeff Figuroa, Carrier Intermountain, changed out the balancing and discharge resistors in the Liquiflo VFD in accordance with Carrier Service Bulletin C0406.\\n3.4462.69068459.25068417.224036
7291HVAC: VFD Service32.5084.10550551.6055051.587862
7931HVAC: Exhaust fan VFD in alarm, need to troubleshoot;\\nHVAC: Equipment/Environmental Alarms87.5088.6717421.1717420.013391
9404Batch Closed. - HVAC replace AHU belts MEC;\\nReplace belts on both air handlers. Provide assistance as needed for the motor VFD replacement to keep systems operating.Per Skip\\nHVAC, Equipment Acti...1383.61699.886812683.7231880.494159
9445HVAC: Student Rec Center room 137B HVAC motor needs to be evaluated and repaired/replaced;\\n\"HVAC motor in the pool pump room is \\nrunning more than normal and is \\nlouder than normal. Can supply ...944.67196.570986748.0990140.791916
9712FOODSERVICE: South Fork exhaust fan #3 has a possible bad VFD;\\n\\nFOODSERVICE: Miscellaneous Appliance Needs Maintenance;97.50196.07191298.5719121.010994
10173HVAC: HVAC-Address VFD minimum speed issues;\\n\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements1379.50270.5443081108.9556920.803882
10500VFD Service4.5046.91125142.4112519.424722
10647VFD Service4.5046.91125142.4112519.424722
10817HVAC: VFD Service50.0084.10550534.1055050.682110
12023Batch Closed. - -HVAC: Cooling tower#2. Clean VFD filter for fan motor.;\\n\\nADD PM TO BE SURE THIS IS DONE IN FUTURE PLEASE. Monthly to check and clean if needed?\\nHVAC, Equipment Activities / Adj...33.75293.650224259.9002247.700747
12133Batch Closed. - HVAC: Order new Graphic LCD keypad and replace it;\\nReplace Graphic LCD keypad on hot water VFD.Order a second one from Supply House.com. Part number VW3A1101\\nHVAC, Equipment Acti...216.95559.457599342.5075991.578740
13705check vfd operation\\n923.1440.910011882.2299890.955684
\n", "
" ], "text/plain": [ " text \\\n", "130 \\nVFD is OFFLINE as reported by Metasys.\\nTroubleshoot and correct.\\n \n", "665 Closed per Foreman. - Rocky Yoneda 12/19/2017 17:34 -No charge for the display \\nBrett Bogardus 12/19/2017 13:04 -installed display from used VFD. complete. \\nVFD control display is blank. ETC 1-w... \n", "1263 HVAC: At the SMASH Building there is no power to vfd;\\n\"Gerald Graham 05/17/2021 10:20 - \\nno power to vfd\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements \n", "3514 HVAC: Need to order and replace the small cooling fans in the VFD;\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements \n", "3694 HVAC: Install resistive break on VFD 2 in Education;\\n\\n\"Gerald Graham 06/14/2021 13:10 - Install resistive break on VFD 2\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replace... \n", "6357 HVAC: Service Return Fan VFD \n", "6418 vfd to pump 6 not working \\n \n", "6592 \\nSERVICE BULLETIN C0406\\n\\nJeff Figuroa, Carrier Intermountain, changed out the balancing and discharge resistors in the Liquiflo VFD in accordance with Carrier Service Bulletin C0406.\\n \n", "7291 HVAC: VFD Service \n", "7931 HVAC: Exhaust fan VFD in alarm, need to troubleshoot;\\nHVAC: Equipment/Environmental Alarms \n", "9404 Batch Closed. - HVAC replace AHU belts MEC;\\nReplace belts on both air handlers. Provide assistance as needed for the motor VFD replacement to keep systems operating.Per Skip\\nHVAC, Equipment Acti... \n", "9445 HVAC: Student Rec Center room 137B HVAC motor needs to be evaluated and repaired/replaced;\\n\"HVAC motor in the pool pump room is \\nrunning more than normal and is \\nlouder than normal. Can supply ... \n", "9712 FOODSERVICE: South Fork exhaust fan #3 has a possible bad VFD;\\n\\nFOODSERVICE: Miscellaneous Appliance Needs Maintenance; \n", "10173 HVAC: HVAC-Address VFD minimum speed issues;\\n\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements \n", "10500 VFD Service \n", "10647 VFD Service \n", "10817 HVAC: VFD Service \n", "12023 Batch Closed. - -HVAC: Cooling tower#2. Clean VFD filter for fan motor.;\\n\\nADD PM TO BE SURE THIS IS DONE IN FUTURE PLEASE. Monthly to check and clean if needed?\\nHVAC, Equipment Activities / Adj... \n", "12133 Batch Closed. - HVAC: Order new Graphic LCD keypad and replace it;\\nReplace Graphic LCD keypad on hot water VFD.Order a second one from Supply House.com. Part number VW3A1101\\nHVAC, Equipment Acti... \n", "13705 check vfd operation\\n \n", "\n", " actual_cost predicted_cost abs_error error_ratio \n", "130 401.30 66.317504 334.982496 0.834743 \n", "665 45.00 322.558311 277.558311 6.167962 \n", "1263 216.32 284.758164 68.438164 0.316375 \n", "3514 189.76 474.452871 284.692871 1.500279 \n", "3694 162.50 441.802438 279.302438 1.718784 \n", "6357 32.50 74.569308 42.069308 1.294440 \n", "6418 392.39 83.178916 309.211084 0.788020 \n", "6592 3.44 62.690684 59.250684 17.224036 \n", "7291 32.50 84.105505 51.605505 1.587862 \n", "7931 87.50 88.671742 1.171742 0.013391 \n", "9404 1383.61 699.886812 683.723188 0.494159 \n", "9445 944.67 196.570986 748.099014 0.791916 \n", "9712 97.50 196.071912 98.571912 1.010994 \n", "10173 1379.50 270.544308 1108.955692 0.803882 \n", "10500 4.50 46.911251 42.411251 9.424722 \n", "10647 4.50 46.911251 42.411251 9.424722 \n", "10817 50.00 84.105505 34.105505 0.682110 \n", "12023 33.75 293.650224 259.900224 7.700747 \n", "12133 216.95 559.457599 342.507599 1.578740 \n", "13705 923.14 40.910011 882.229989 0.955684 " ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "Domain-aware VFD-like rows in test results: 68\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
textactual_costpredicted_costabs_errorerror_ratio
130\\nVFD is OFFLINE as reported by Metasys.\\nTroubleshoot and correct.\\n401.3083.328474317.9715260.792354
665Closed per Foreman. - Rocky Yoneda 12/19/2017 17:34 -No charge for the display \\nBrett Bogardus 12/19/2017 13:04 -installed display from used VFD. complete. \\nVFD control display is blank. ETC 1-w...45.00294.942284249.9422845.554273
1263HVAC: At the SMASH Building there is no power to vfd;\\n\"Gerald Graham 05/17/2021 10:20 - \\nno power to vfd\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements216.32213.7727522.5472480.011775
3514HVAC: Need to order and replace the small cooling fans in the VFD;\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements189.76374.550308184.7903080.973811
3694HVAC: Install resistive break on VFD 2 in Education;\\n\\n\"Gerald Graham 06/14/2021 13:10 - Install resistive break on VFD 2\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replace...162.50380.341278217.8412781.340562
6357HVAC: Service Return Fan VFD32.5055.71542723.2154270.714321
6418vfd to pump 6 not working \\n392.3962.804849329.5851510.839943
6592\\nSERVICE BULLETIN C0406\\n\\nJeff Figuroa, Carrier Intermountain, changed out the balancing and discharge resistors in the Liquiflo VFD in accordance with Carrier Service Bulletin C0406.\\n3.4456.26036852.82036815.354758
7291HVAC: VFD Service32.5050.38577417.8857740.550332
7931HVAC: Exhaust fan VFD in alarm, need to troubleshoot;\\nHVAC: Equipment/Environmental Alarms87.5067.09611720.4038830.233187
9404Batch Closed. - HVAC replace AHU belts MEC;\\nReplace belts on both air handlers. Provide assistance as needed for the motor VFD replacement to keep systems operating.Per Skip\\nHVAC, Equipment Acti...1383.61493.118340890.4916600.643600
9445HVAC: Student Rec Center room 137B HVAC motor needs to be evaluated and repaired/replaced;\\n\"HVAC motor in the pool pump room is \\nrunning more than normal and is \\nlouder than normal. Can supply ...944.67256.069155688.6008450.728933
9712FOODSERVICE: South Fork exhaust fan #3 has a possible bad VFD;\\n\\nFOODSERVICE: Miscellaneous Appliance Needs Maintenance;97.50146.43036748.9303670.501850
10173HVAC: HVAC-Address VFD minimum speed issues;\\n\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements1379.50240.8030791138.6969210.825442
10500VFD Service4.5030.36293825.8629385.747319
10647VFD Service4.5030.36293825.8629385.747319
10817HVAC: VFD Service50.0050.3857740.3857740.007715
12023Batch Closed. - -HVAC: Cooling tower#2. Clean VFD filter for fan motor.;\\n\\nADD PM TO BE SURE THIS IS DONE IN FUTURE PLEASE. Monthly to check and clean if needed?\\nHVAC, Equipment Activities / Adj...33.75209.512418175.7624185.207775
12133Batch Closed. - HVAC: Order new Graphic LCD keypad and replace it;\\nReplace Graphic LCD keypad on hot water VFD.Order a second one from Supply House.com. Part number VW3A1101\\nHVAC, Equipment Acti...216.95304.97747588.0274750.405750
13705check vfd operation\\n923.1437.137088886.0029120.959771
\n", "
" ], "text/plain": [ " text \\\n", "130 \\nVFD is OFFLINE as reported by Metasys.\\nTroubleshoot and correct.\\n \n", "665 Closed per Foreman. - Rocky Yoneda 12/19/2017 17:34 -No charge for the display \\nBrett Bogardus 12/19/2017 13:04 -installed display from used VFD. complete. \\nVFD control display is blank. ETC 1-w... \n", "1263 HVAC: At the SMASH Building there is no power to vfd;\\n\"Gerald Graham 05/17/2021 10:20 - \\nno power to vfd\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements \n", "3514 HVAC: Need to order and replace the small cooling fans in the VFD;\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements \n", "3694 HVAC: Install resistive break on VFD 2 in Education;\\n\\n\"Gerald Graham 06/14/2021 13:10 - Install resistive break on VFD 2\"\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replace... \n", "6357 HVAC: Service Return Fan VFD \n", "6418 vfd to pump 6 not working \\n \n", "6592 \\nSERVICE BULLETIN C0406\\n\\nJeff Figuroa, Carrier Intermountain, changed out the balancing and discharge resistors in the Liquiflo VFD in accordance with Carrier Service Bulletin C0406.\\n \n", "7291 HVAC: VFD Service \n", "7931 HVAC: Exhaust fan VFD in alarm, need to troubleshoot;\\nHVAC: Equipment/Environmental Alarms \n", "9404 Batch Closed. - HVAC replace AHU belts MEC;\\nReplace belts on both air handlers. Provide assistance as needed for the motor VFD replacement to keep systems operating.Per Skip\\nHVAC, Equipment Acti... \n", "9445 HVAC: Student Rec Center room 137B HVAC motor needs to be evaluated and repaired/replaced;\\n\"HVAC motor in the pool pump room is \\nrunning more than normal and is \\nlouder than normal. Can supply ... \n", "9712 FOODSERVICE: South Fork exhaust fan #3 has a possible bad VFD;\\n\\nFOODSERVICE: Miscellaneous Appliance Needs Maintenance; \n", "10173 HVAC: HVAC-Address VFD minimum speed issues;\\n\\nHVAC: Equipment Activities / Adjustments / Repairs / Upgrades / Replacements \n", "10500 VFD Service \n", "10647 VFD Service \n", "10817 HVAC: VFD Service \n", "12023 Batch Closed. - -HVAC: Cooling tower#2. Clean VFD filter for fan motor.;\\n\\nADD PM TO BE SURE THIS IS DONE IN FUTURE PLEASE. Monthly to check and clean if needed?\\nHVAC, Equipment Activities / Adj... \n", "12133 Batch Closed. - HVAC: Order new Graphic LCD keypad and replace it;\\nReplace Graphic LCD keypad on hot water VFD.Order a second one from Supply House.com. Part number VW3A1101\\nHVAC, Equipment Acti... \n", "13705 check vfd operation\\n \n", "\n", " actual_cost predicted_cost abs_error error_ratio \n", "130 401.30 83.328474 317.971526 0.792354 \n", "665 45.00 294.942284 249.942284 5.554273 \n", "1263 216.32 213.772752 2.547248 0.011775 \n", "3514 189.76 374.550308 184.790308 0.973811 \n", "3694 162.50 380.341278 217.841278 1.340562 \n", "6357 32.50 55.715427 23.215427 0.714321 \n", "6418 392.39 62.804849 329.585151 0.839943 \n", "6592 3.44 56.260368 52.820368 15.354758 \n", "7291 32.50 50.385774 17.885774 0.550332 \n", "7931 87.50 67.096117 20.403883 0.233187 \n", "9404 1383.61 493.118340 890.491660 0.643600 \n", "9445 944.67 256.069155 688.600845 0.728933 \n", "9712 97.50 146.430367 48.930367 0.501850 \n", "10173 1379.50 240.803079 1138.696921 0.825442 \n", "10500 4.50 30.362938 25.862938 5.747319 \n", "10647 4.50 30.362938 25.862938 5.747319 \n", "10817 50.00 50.385774 0.385774 0.007715 \n", "12023 33.75 209.512418 175.762418 5.207775 \n", "12133 216.95 304.977475 88.027475 0.405750 \n", "13705 923.14 37.137088 886.002912 0.959771 " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "def filter_rows_containing(df, pattern):\n", " return df[df[\"text\"].astype(str).str.contains(pattern, case=False, regex=True)].copy()\n", "\n", "baseline_vfd_rows = filter_rows_containing(\n", " baseline_results,\n", " r\"\\bvfd\\b|variable frequency drive\"\n", ")\n", "\n", "domain_vfd_rows = filter_rows_containing(\n", " domain_results,\n", " r\"\\bvfd\\b|variable frequency drive\"\n", ")\n", "\n", "print(\"Baseline VFD-like rows in test results:\", len(baseline_vfd_rows))\n", "display(baseline_vfd_rows.head(20))\n", "\n", "print(\"Domain-aware VFD-like rows in test results:\", len(domain_vfd_rows))\n", "display(domain_vfd_rows.head(20))\n" ] }, { "cell_type": "markdown", "id": "b9738fc4", "metadata": {}, "source": [ "\n", "## Inspect influential text features\n", "\n", "For Ridge, coefficient interpretation is easiest on the text portion of the model.\n", "\n", "For the domain-aware model, the first chunk of coefficients corresponds to the TF-IDF text features, followed by the appended binary flags.\n" ] }, { "cell_type": "code", "execution_count": 18, "id": "58cfb53f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "===== BASELINE: TOP POSITIVE TEXT FEATURES =====\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
featurecoef
2933water test4.277554
357alarm inspections3.321548
1145estimate fm3.223268
2867upgrades3.210312
584build3.109268
1473hydronic water2.986795
2298recycling2.870010
2903visual2.853065
2830turf2.652115
784commencement2.551744
842contract2.491089
1530install2.460277
734clean building2.430336
1064duties2.383044
2243purchase2.319584
2797training activities2.301480
1889misc training2.301480
2794trades2.285164
1239fine arts2.238636
1081elect2.224303
2040order2.181096
1844math building2.121515
2147plumber annual2.116528
2805trash cans2.113711
1799maint aesthetics2.093276
\n", "
" ], "text/plain": [ " feature coef\n", "2933 water test 4.277554\n", "357 alarm inspections 3.321548\n", "1145 estimate fm 3.223268\n", "2867 upgrades 3.210312\n", "584 build 3.109268\n", "1473 hydronic water 2.986795\n", "2298 recycling 2.870010\n", "2903 visual 2.853065\n", "2830 turf 2.652115\n", "784 commencement 2.551744\n", "842 contract 2.491089\n", "1530 install 2.460277\n", "734 clean building 2.430336\n", "1064 duties 2.383044\n", "2243 purchase 2.319584\n", "2797 training activities 2.301480\n", "1889 misc training 2.301480\n", "2794 trades 2.285164\n", "1239 fine arts 2.238636\n", "1081 elect 2.224303\n", "2040 order 2.181096\n", "1844 math building 2.121515\n", "2147 plumber annual 2.116528\n", "2805 trash cans 2.113711\n", "1799 maint aesthetics 2.093276" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "===== DOMAIN-AWARE: TOP POSITIVE TEXT FEATURES =====\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
featurecoef
575build2.123033
2246purchase2.092733
733clean building2.010253
1073elect1.982093
842contract1.960517
2828turf1.954039
2300recycling1.913321
584buildings1.747837
2172pool1.675500
2772tma1.670116
2932water test1.662301
2072painting_keyword1.655977
2322removal1.635899
315add1.614216
1521install1.547732
2795training1.507436
2103personnel1.496431
1567irrigation1.491160
1056duties1.434264
2218project1.410452
351alarm inspections1.374699
1279foreman duties1.373991
2321remodel1.363079
2333repairs1.352428
2621steam1.350410
\n", "
" ], "text/plain": [ " feature coef\n", "575 build 2.123033\n", "2246 purchase 2.092733\n", "733 clean building 2.010253\n", "1073 elect 1.982093\n", "842 contract 1.960517\n", "2828 turf 1.954039\n", "2300 recycling 1.913321\n", "584 buildings 1.747837\n", "2172 pool 1.675500\n", "2772 tma 1.670116\n", "2932 water test 1.662301\n", "2072 painting_keyword 1.655977\n", "2322 removal 1.635899\n", "315 add 1.614216\n", "1521 install 1.547732\n", "2795 training 1.507436\n", "2103 personnel 1.496431\n", "1567 irrigation 1.491160\n", "1056 duties 1.434264\n", "2218 project 1.410452\n", "351 alarm inspections 1.374699\n", "1279 foreman duties 1.373991\n", "2321 remodel 1.363079\n", "2333 repairs 1.352428\n", "2621 steam 1.350410" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "===== DOMAIN-AWARE: TOP NEGATIVE TEXT FEATURES =====\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
featurecoef
1177extinguisher inspections-2.211918
1495inspect elevators-1.819220
2295record-1.768909
607campus record-1.725648
2730thank-1.652855
2266radioed-1.491891
2735thanks-1.450043
943day access-1.401645
2533sign-1.292418
2719test eyewash-1.233741
1101elevators-1.228540
2038order fm-1.215733
744closed elect-1.208650
740clock-1.198460
2618stations safety-1.191588
703checks vague_scope_language-1.187473
2710tech-1.187270
2560soap-1.155414
1184eyewash stations-1.144387
2851university-1.129211
1386health-1.116314
1202faucet-1.109249
752closed plumber-1.102949
1136estimate-1.101559
2933water testing-1.097907
\n", "
" ], "text/plain": [ " feature coef\n", "1177 extinguisher inspections -2.211918\n", "1495 inspect elevators -1.819220\n", "2295 record -1.768909\n", "607 campus record -1.725648\n", "2730 thank -1.652855\n", "2266 radioed -1.491891\n", "2735 thanks -1.450043\n", "943 day access -1.401645\n", "2533 sign -1.292418\n", "2719 test eyewash -1.233741\n", "1101 elevators -1.228540\n", "2038 order fm -1.215733\n", "744 closed elect -1.208650\n", "740 clock -1.198460\n", "2618 stations safety -1.191588\n", "703 checks vague_scope_language -1.187473\n", "2710 tech -1.187270\n", "2560 soap -1.155414\n", "1184 eyewash stations -1.144387\n", "2851 university -1.129211\n", "1386 health -1.116314\n", "1202 faucet -1.109249\n", "752 closed plumber -1.102949\n", "1136 estimate -1.101559\n", "2933 water testing -1.097907" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "\n", "def top_text_coefficients(model, vectorizer, top_n=25):\n", " feature_names = np.array(vectorizer.get_feature_names_out())\n", " coefs = np.asarray(model.coef_[:len(feature_names)])\n", "\n", " coef_df = pd.DataFrame({\n", " \"feature\": feature_names,\n", " \"coef\": coefs,\n", " })\n", "\n", " positive = coef_df.sort_values(\"coef\", ascending=False).head(top_n)\n", " negative = coef_df.sort_values(\"coef\", ascending=True).head(top_n)\n", "\n", " return positive, negative\n", "\n", "baseline_pos, baseline_neg = top_text_coefficients(\n", " baseline_model,\n", " baseline_vectorizer,\n", " top_n=25\n", ")\n", "\n", "domain_pos, domain_neg = top_text_coefficients(\n", " domain_model,\n", " domain_vectorizer,\n", " top_n=25\n", ")\n", "\n", "print(\"===== BASELINE: TOP POSITIVE TEXT FEATURES =====\")\n", "display(baseline_pos)\n", "\n", "print(\"===== DOMAIN-AWARE: TOP POSITIVE TEXT FEATURES =====\")\n", "display(domain_pos)\n", "\n", "print(\"===== DOMAIN-AWARE: TOP NEGATIVE TEXT FEATURES =====\")\n", "display(domain_neg)\n" ] }, { "cell_type": "markdown", "id": "a6125afb", "metadata": {}, "source": [ "\n", "## Notes\n", "\n", "If the domain-aware model does **not** improve dramatically right away, that is still useful.\n", "\n", "Likely reasons:\n", "- many work order descriptions are too vague to encode real scope\n", "- cost may depend on hidden structured fields not present in the text\n", "- some domain terms are rare\n", "- some expensive work orders still look linguistically simple\n", "\n", "### Strong next steps\n", "- add requester/source features\n", "- add building or shop/trade features\n", "- extract quantities, voltages, and horsepower more directly\n", "- train separate models by trade family\n", "- compare performance on only high-cost jobs\n" ] }, { "cell_type": "markdown", "id": "8d862a5c-3e97-4365-8962-0a4e2e936015", "metadata": {}, "source": [ "## Experiment 1: Add scope/scale features that TF-IDF misses\n", "What this tests\n", "Your text model already catches words like “replace,” “vfd,” and “ahu,” but expensive jobs are often expensive because of scope, not just vocabulary.\n", "Examples:\n", "multiple units\n", "long bundled descriptions\n", "quantities\n", "numbers + equipment terms\n", "“replace 3 pumps and controls”\n", "“full rebuild”\n", "“material + labor + access issues”\n", "staff-written detailed descriptions\n", "This experiment adds explicit numeric and binary features that try to capture scope and operational complexity.\n", "Why it may help high-cost prediction\n", "High-cost jobs are often the ones where:\n", "the description is longer\n", "there are more numbers\n", "more equipment references appear\n", "more action verbs appear\n", "multiple tasks are bundled together\n", "the text sounds more technical\n", "That can help the model stop treating:\n", "“replace vfd”\n", "and\n", "“replace 3 vfd drives and controls wiring in mechanical room”\n", "as nearly the same job.\n", "What success looks like\n", "Success is:\n", "lower actual-dollar RMSE\n", "less underprediction in top-cost deciles\n", "better error on the most expensive jobs, even if MAE stays similar" ] }, { "cell_type": "code", "execution_count": 19, "id": "06dbe289-2afe-490d-ae8b-b66a6b94e41d", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\n", "KeyboardInterrupt\n", "\n" ] } ], "source": [ "# Experiment 1: TF-IDF + engineered scope/scale features\n", "\n", "import re\n", "import numpy as np\n", "import pandas as pd\n", "\n", "from scipy.sparse import csr_matrix, hstack\n", "\n", "from sklearn.base import BaseEstimator, TransformerMixin\n", "from sklearn.feature_extraction.text import TfidfVectorizer\n", "from sklearn.linear_model import Ridge\n", "from sklearn.metrics import mean_absolute_error, mean_squared_error\n", "from sklearn.model_selection import train_test_split\n", "\n", "\n", "# -----------------------------\n", "# Safety checks\n", "# -----------------------------\n", "required_cols = [\"request_text\", \"log_cost\", \"total_cost\"]\n", "missing = [c for c in required_cols if c not in reg_df.columns]\n", "if missing:\n", " raise ValueError(f\"Missing required columns: {missing}\")\n", "\n", "df = reg_df.copy()\n", "df[\"request_text\"] = df[\"request_text\"].fillna(\"\").astype(str)\n", "\n", "# Keep only rows with valid targets\n", "df = df[df[\"log_cost\"].notna() & df[\"total_cost\"].notna()].copy()\n", "\n", "\n", "# -----------------------------\n", "# Train/test split\n", "# -----------------------------\n", "X = df[\"request_text\"]\n", "y_log = df[\"log_cost\"]\n", "y_actual = df[\"total_cost\"]\n", "\n", "X_train, X_test, y_train_log, y_test_log, y_train_actual, y_test_actual = train_test_split(\n", " X, y_log, y_actual, test_size=0.2, random_state=42\n", ")\n", "\n", "\n", "# -----------------------------\n", "# Helper: engineered text features\n", "# -----------------------------\n", "class WorkOrderScopeFeatures(BaseEstimator, TransformerMixin):\n", " \"\"\"\n", " Extracts simple numeric/binary features from maintenance request text.\n", " These features are intended to capture scope, scale, technicality,\n", " bundling, and signals that correlate with high-cost jobs.\n", " \"\"\"\n", " def __init__(self):\n", " self.equipment_terms = [\n", " \"vfd\", \"ahu\", \"rtu\", \"chiller\", \"boiler\", \"pump\", \"motor\", \"compressor\",\n", " \"valve\", \"coil\", \"belt\", \"fan\", \"bearing\", \"actuator\", \"transformer\",\n", " \"panel\", \"breaker\", \"relay\", \"thermostat\", \"sensor\", \"damper\",\n", " \"generator\", \"condenser\", \"evaporator\", \"filter\"\n", " ]\n", " self.action_terms = [\n", " \"replace\", \"repair\", \"install\", \"remove\", \"rebuild\", \"retrofit\",\n", " \"upgrade\", \"inspect\", \"diagnose\", \"troubleshoot\", \"clean\", \"adjust\",\n", " \"test\", \"service\", \"patch\", \"rewire\"\n", " ]\n", " self.scope_terms = [\n", " \"multiple\", \"several\", \"entire\", \"full\", \"complete\", \"all\",\n", " \"throughout\", \"campus\", \"building\", \"room\", \"rooms\", \"floor\",\n", " \"floors\", \"suite\", \"area\", \"system\", \"systems\"\n", " ]\n", " self.material_terms = [\n", " \"material\", \"parts\", \"part\", \"supply\", \"supplies\", \"wire\", \"wiring\",\n", " \"pipe\", \"piping\", \"conduit\", \"duct\", \"controls\", \"control\"\n", " ]\n", " self.urgency_terms = [\n", " \"urgent\", \"emergency\", \"asap\", \"immediately\", \"critical\", \"failure\",\n", " \"failed\", \"down\", \"not working\", \"no heat\", \"no cooling\", \"leak\"\n", " ]\n", "\n", " def fit(self, X, y=None):\n", " return self\n", "\n", " def _count_matches(self, text, vocab):\n", " tokens = re.findall(r\"\\b[a-zA-Z0-9\\-]+\\b\", text.lower())\n", " return sum(1 for t in tokens if t in vocab)\n", "\n", " def _extract_one(self, text):\n", " text = str(text)\n", " text_lower = text.lower()\n", "\n", " # Basic counts\n", " char_len = len(text)\n", " word_tokens = re.findall(r\"\\b[a-zA-Z0-9\\-]+\\b\", text)\n", " word_count = len(word_tokens)\n", "\n", " numbers = re.findall(r\"\\b\\d+(?:\\.\\d+)?\\b\", text_lower)\n", " number_count = len(numbers)\n", " max_number = max([float(n) for n in numbers], default=0.0)\n", "\n", " # Acronyms / technical style\n", " uppercase_tokens = re.findall(r\"\\b[A-Z]{2,}\\b\", text)\n", " uppercase_count = len(uppercase_tokens)\n", "\n", " # Counts by domain vocab\n", " equipment_count = self._count_matches(text, self.equipment_terms)\n", " action_count = self._count_matches(text, self.action_terms)\n", " scope_count = self._count_matches(text, self.scope_terms)\n", " material_count = self._count_matches(text, self.material_terms)\n", " urgency_count = self._count_matches(text, self.urgency_terms)\n", "\n", " # Signs of bundled/multi-part work\n", " and_count = len(re.findall(r\"\\band\\b\", text_lower))\n", " comma_count = text.count(\",\")\n", " semicolon_count = text.count(\";\")\n", " slash_count = text.count(\"/\")\n", "\n", " # Flags\n", " has_replace = int(\"replace\" in text_lower)\n", " has_install = int(\"install\" in text_lower)\n", " has_repair = int(\"repair\" in text_lower)\n", " has_vfd = int(\"vfd\" in text_lower)\n", " has_ahu = int(\"ahu\" in text_lower)\n", " has_rtu = int(\"rtu\" in text_lower)\n", " has_room_ref = int(bool(re.search(r\"\\broom\\b|\\brm\\b|\\bunit\\b|\\bunits\\b\", text_lower)))\n", " has_quantity_gt1 = int(any(float(n) > 1 for n in numbers))\n", " has_technical_acronym = int(uppercase_count > 0)\n", " long_description = int(word_count >= 12)\n", "\n", " # Rough complexity score\n", " complexity_score = (\n", " equipment_count\n", " + action_count\n", " + scope_count\n", " + material_count\n", " + urgency_count\n", " + and_count\n", " + comma_count\n", " + semicolon_count\n", " + slash_count\n", " + number_count\n", " )\n", "\n", " return [\n", " char_len,\n", " word_count,\n", " number_count,\n", " max_number,\n", " uppercase_count,\n", " equipment_count,\n", " action_count,\n", " scope_count,\n", " material_count,\n", " urgency_count,\n", " and_count,\n", " comma_count,\n", " semicolon_count,\n", " slash_count,\n", " has_replace,\n", " has_install,\n", " has_repair,\n", " has_vfd,\n", " has_ahu,\n", " has_rtu,\n", " has_room_ref,\n", " has_quantity_gt1,\n", " has_technical_acronym,\n", " long_description,\n", " complexity_score\n", " ]\n", "\n", " def transform(self, X):\n", " features = np.array([self._extract_one(text) for text in X], dtype=float)\n", " return csr_matrix(features)\n", "\n", "\n", "feature_names_scope = [\n", " \"char_len\",\n", " \"word_count\",\n", " \"number_count\",\n", " \"max_number\",\n", " \"uppercase_count\",\n", " \"equipment_count\",\n", " \"action_count\",\n", " \"scope_count\",\n", " \"material_count\",\n", " \"urgency_count\",\n", " \"and_count\",\n", " \"comma_count\",\n", " \"semicolon_count\",\n", " \"slash_count\",\n", " \"has_replace\",\n", " \"has_install\",\n", " \"has_repair\",\n", " \"has_vfd\",\n", " \"has_ahu\",\n", " \"has_rtu\",\n", " \"has_room_ref\",\n", " \"has_quantity_gt1\",\n", " \"has_technical_acronym\",\n", " \"long_description\",\n", " \"complexity_score\"\n", "]\n", "\n", "\n", "# -----------------------------\n", "# Baseline TF-IDF\n", "# -----------------------------\n", "tfidf = TfidfVectorizer(\n", " ngram_range=(1, 2),\n", " min_df=3,\n", " max_df=0.95,\n", " strip_accents=\"unicode\",\n", " lowercase=True\n", ")\n", "\n", "X_train_tfidf = tfidf.fit_transform(X_train)\n", "X_test_tfidf = tfidf.transform(X_test)\n", "\n", "baseline_model = Ridge(alpha=3.0)\n", "baseline_model.fit(X_train_tfidf, y_train_log)\n", "\n", "baseline_pred_log = baseline_model.predict(X_test_tfidf)\n", "baseline_pred_actual = np.expm1(baseline_pred_log).clip(min=0)\n", "\n", "baseline_results = {\n", " \"model\": \"baseline_tfidf_ridge\",\n", " \"mae_log\": mean_absolute_error(y_test_log, baseline_pred_log),\n", " \"rmse_log\": np.sqrt(mean_squared_error(y_test_log, baseline_pred_log)),\n", " \"mae_actual\": mean_absolute_error(y_test_actual, baseline_pred_actual),\n", " \"rmse_actual\": np.sqrt(mean_squared_error(y_test_actual, baseline_pred_actual))\n", "}\n", "\n", "\n", "# -----------------------------\n", "# TF-IDF + scope features\n", "# -----------------------------\n", "scope_fe = WorkOrderScopeFeatures()\n", "\n", "X_train_scope = scope_fe.fit_transform(X_train)\n", "X_test_scope = scope_fe.transform(X_test)\n", "\n", "X_train_combined = hstack([X_train_tfidf, X_train_scope]).tocsr()\n", "X_test_combined = hstack([X_test_tfidf, X_test_scope]).tocsr()\n", "\n", "scope_model = Ridge(alpha=3.0)\n", "scope_model.fit(X_train_combined, y_train_log)\n", "\n", "scope_pred_log = scope_model.predict(X_test_combined)\n", "scope_pred_actual = np.expm1(scope_pred_log).clip(min=0)\n", "\n", "scope_results = {\n", " \"model\": \"tfidf_plus_scope_features\",\n", " \"mae_log\": mean_absolute_error(y_test_log, scope_pred_log),\n", " \"rmse_log\": np.sqrt(mean_squared_error(y_test_log, scope_pred_log)),\n", " \"mae_actual\": mean_absolute_error(y_test_actual, scope_pred_actual),\n", " \"rmse_actual\": np.sqrt(mean_squared_error(y_test_actual, scope_pred_actual))\n", "}\n", "\n", "results_df = pd.DataFrame([baseline_results, scope_results])\n", "display(results_df)\n", "\n", "\n", "# -----------------------------\n", "# High-cost focused diagnostics\n", "# -----------------------------\n", "comparison = pd.DataFrame({\n", " \"request_text\": X_test.reset_index(drop=True),\n", " \"actual_cost\": y_test_actual.reset_index(drop=True),\n", " \"baseline_pred\": baseline_pred_actual,\n", " \"scope_pred\": scope_pred_actual\n", "})\n", "\n", "comparison[\"baseline_abs_error\"] = (comparison[\"actual_cost\"] - comparison[\"baseline_pred\"]).abs()\n", "comparison[\"scope_abs_error\"] = (comparison[\"actual_cost\"] - comparison[\"scope_pred\"]).abs()\n", "\n", "top90_cutoff = comparison[\"actual_cost\"].quantile(0.90)\n", "high_cost = comparison[comparison[\"actual_cost\"] >= top90_cutoff].copy()\n", "\n", "high_cost_summary = pd.DataFrame([\n", " {\n", " \"subset\": \"top_10pct_actual_cost\",\n", " \"baseline_mae\": high_cost[\"baseline_abs_error\"].mean(),\n", " \"scope_mae\": high_cost[\"scope_abs_error\"].mean(),\n", " \"baseline_underprediction_mean\": (high_cost[\"actual_cost\"] - high_cost[\"baseline_pred\"]).mean(),\n", " \"scope_underprediction_mean\": (high_cost[\"actual_cost\"] - high_cost[\"scope_pred\"]).mean()\n", " }\n", "])\n", "\n", "display(high_cost_summary)\n", "\n", "print(\"Top 20 expensive jobs: baseline vs scope-feature model\")\n", "display(\n", " comparison.sort_values(\"actual_cost\", ascending=False)[\n", " [\"request_text\", \"actual_cost\", \"baseline_pred\", \"scope_pred\", \"baseline_abs_error\", \"scope_abs_error\"]\n", " ].head(20)\n", ")" ] }, { "cell_type": "markdown", "id": "6027d066-5051-4792-b96a-d0541830d793", "metadata": {}, "source": [ "## Experiment 2: Cost-weighted Ridge to punish underprediction on expensive jobs\n", "What this tests\n", "Your baseline is probably optimizing for the huge mass of cheaper jobs. That usually gives decent MAE but weak RMSE, because the model learns that being wrong on a giant repair is “rare enough” to ignore.\n", "This experiment keeps the same basic model, but tells Ridge:\n", "“Errors on expensive jobs matter more.”\n", "Why it may help high-cost prediction\n", "If the model underpredicts big jobs, one of the cleanest fixes is to weight training examples by cost.\n", "This does not require a new model family. It directly addresses your loss mismatch:\n", "the training objective currently treats all rows similarly\n", "your real pain is not symmetric across the cost range\n", "What success looks like\n", "Success is:\n", "lower actual-dollar RMSE\n", "reduced mean underprediction on top-cost jobs\n", "maybe slightly worse MAE on cheap routine work, which is acceptable if big misses shrink" ] }, { "cell_type": "code", "execution_count": null, "id": "05fd12bf-3769-4402-9fd1-d577a11e11a7", "metadata": {}, "outputs": [], "source": [ "# Experiment 2: Cost-weighted Ridge regression\n", "\n", "import numpy as np\n", "import pandas as pd\n", "\n", "from sklearn.feature_extraction.text import TfidfVectorizer\n", "from sklearn.linear_model import Ridge\n", "from sklearn.metrics import mean_absolute_error, mean_squared_error\n", "from sklearn.model_selection import train_test_split\n", "\n", "\n", "# -----------------------------\n", "# Safety checks\n", "# -----------------------------\n", "required_cols = [\"request_text\", \"log_cost\", \"total_cost\"]\n", "missing = [c for c in required_cols if c not in reg_df.columns]\n", "if missing:\n", " raise ValueError(f\"Missing required columns: {missing}\")\n", "\n", "df = reg_df.copy()\n", "df[\"request_text\"] = df[\"request_text\"].fillna(\"\").astype(str)\n", "df = df[df[\"log_cost\"].notna() & df[\"total_cost\"].notna()].copy()\n", "\n", "\n", "# -----------------------------\n", "# Train/test split\n", "# -----------------------------\n", "X = df[\"request_text\"]\n", "y_log = df[\"log_cost\"]\n", "y_actual = df[\"total_cost\"]\n", "\n", "X_train, X_test, y_train_log, y_test_log, y_train_actual, y_test_actual = train_test_split(\n", " X, y_log, y_actual, test_size=0.2, random_state=42\n", ")\n", "\n", "\n", "# -----------------------------\n", "# TF-IDF\n", "# -----------------------------\n", "tfidf = TfidfVectorizer(\n", " ngram_range=(1, 2),\n", " min_df=3,\n", " max_df=0.95,\n", " strip_accents=\"unicode\",\n", " lowercase=True\n", ")\n", "\n", "X_train_tfidf = tfidf.fit_transform(X_train)\n", "X_test_tfidf = tfidf.transform(X_test)\n", "\n", "\n", "# -----------------------------\n", "# Helper: evaluate model\n", "# -----------------------------\n", "def evaluate_predictions(name, y_true_log, y_pred_log, y_true_actual):\n", " y_pred_actual = np.expm1(y_pred_log).clip(min=0)\n", " return {\n", " \"model\": name,\n", " \"mae_log\": mean_absolute_error(y_true_log, y_pred_log),\n", " \"rmse_log\": np.sqrt(mean_squared_error(y_true_log, y_pred_log)),\n", " \"mae_actual\": mean_absolute_error(y_true_actual, y_pred_actual),\n", " \"rmse_actual\": np.sqrt(mean_squared_error(y_true_actual, y_pred_actual))\n", " }, y_pred_actual\n", "\n", "\n", "# -----------------------------\n", "# Baseline model\n", "# -----------------------------\n", "baseline = Ridge(alpha=3.0)\n", "baseline.fit(X_train_tfidf, y_train_log)\n", "baseline_pred_log = baseline.predict(X_test_tfidf)\n", "\n", "baseline_metrics, baseline_pred_actual = evaluate_predictions(\n", " \"baseline_ridge\", y_test_log, baseline_pred_log, y_test_actual\n", ")\n", "\n", "\n", "# -----------------------------\n", "# Weighted models\n", "# -----------------------------\n", "# Weight function idea:\n", "# cheap jobs get weight near 1\n", "# expensive jobs get larger weights\n", "#\n", "# We'll try several strengths and keep the one with best actual RMSE.\n", "#\n", "# Using percentile rank is safer than raw dollars because cost scale can be ugly.\n", "\n", "train_cost_rank = pd.Series(y_train_actual).rank(pct=True).to_numpy()\n", "\n", "candidate_settings = [\n", " {\"name\": \"weighted_x2\", \"alpha\": 3.0, \"max_boost\": 2.0},\n", " {\"name\": \"weighted_x3\", \"alpha\": 3.0, \"max_boost\": 3.0},\n", " {\"name\": \"weighted_x5\", \"alpha\": 3.0, \"max_boost\": 5.0},\n", " {\"name\": \"weighted_x3_alpha10\", \"alpha\": 10.0, \"max_boost\": 3.0},\n", "]\n", "\n", "weighted_results = []\n", "weighted_predictions = {}\n", "\n", "for cfg in candidate_settings:\n", " # Smoothly increase weight with cost percentile\n", " sample_weight = 1.0 + train_cost_rank * (cfg[\"max_boost\"] - 1.0)\n", "\n", " model = Ridge(alpha=cfg[\"alpha\"])\n", " model.fit(X_train_tfidf, y_train_log, sample_weight=sample_weight)\n", "\n", " pred_log = model.predict(X_test_tfidf)\n", " metrics, pred_actual = evaluate_predictions(\n", " cfg[\"name\"], y_test_log, pred_log, y_test_actual\n", " )\n", "\n", " weighted_results.append(metrics)\n", " weighted_predictions[cfg[\"name\"]] = pred_actual\n", "\n", "results_df = pd.DataFrame([baseline_metrics] + weighted_results).sort_values(\"rmse_actual\")\n", "display(results_df)\n", "\n", "\n", "# -----------------------------\n", "# Choose best weighted model\n", "# -----------------------------\n", "best_weighted_name = results_df.iloc[0][\"model\"]\n", "\n", "if best_weighted_name == \"baseline_ridge\":\n", " best_weighted_pred_actual = baseline_pred_actual\n", "else:\n", " best_weighted_pred_actual = weighted_predictions[best_weighted_name]\n", "\n", "comparison = pd.DataFrame({\n", " \"request_text\": X_test.reset_index(drop=True),\n", " \"actual_cost\": y_test_actual.reset_index(drop=True),\n", " \"baseline_pred\": baseline_pred_actual,\n", " \"best_weighted_pred\": best_weighted_pred_actual\n", "})\n", "\n", "comparison[\"baseline_error\"] = comparison[\"actual_cost\"] - comparison[\"baseline_pred\"]\n", "comparison[\"weighted_error\"] = comparison[\"actual_cost\"] - comparison[\"best_weighted_pred\"]\n", "\n", "comparison[\"baseline_abs_error\"] = comparison[\"baseline_error\"].abs()\n", "comparison[\"weighted_abs_error\"] = comparison[\"weighted_error\"].abs()\n", "\n", "top90_cutoff = comparison[\"actual_cost\"].quantile(0.90)\n", "high_cost = comparison[comparison[\"actual_cost\"] >= top90_cutoff].copy()\n", "\n", "summary = pd.DataFrame([\n", " {\n", " \"subset\": \"top_10pct_actual_cost\",\n", " \"baseline_mae\": high_cost[\"baseline_abs_error\"].mean(),\n", " \"weighted_mae\": high_cost[\"weighted_abs_error\"].mean(),\n", " \"baseline_mean_underprediction\": high_cost[\"baseline_error\"].mean(),\n", " \"weighted_mean_underprediction\": high_cost[\"weighted_error\"].mean()\n", " }\n", "])\n", "\n", "display(summary)\n", "\n", "print(f\"Best weighted model selected: {best_weighted_name}\")\n", "\n", "display(\n", " comparison.sort_values(\"actual_cost\", ascending=False)[\n", " [\"request_text\", \"actual_cost\", \"baseline_pred\", \"best_weighted_pred\",\n", " \"baseline_abs_error\", \"weighted_abs_error\"]\n", " ].head(20)\n", ")" ] }, { "cell_type": "code", "execution_count": null, "id": "e88da89d-eb4d-4ab0-bb7d-eefeda53e4ac", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.20" } }, "nbformat": 4, "nbformat_minor": 5 }