diff --git a/examples/pandas/prediction_query.ipynb b/examples/pandas/prediction_query.ipynb
index 02da37b..982e81a 100644
--- a/examples/pandas/prediction_query.ipynb
+++ b/examples/pandas/prediction_query.ipynb
@@ -17,12 +17,14 @@
"from sklearn.preprocessing import StandardScaler\n",
"import matplotlib.pyplot as plt\n",
"\n",
+ "DATA_DIR = \"/home/uw1/MLquery/reference/snippets/py_onnx/expedia\"\n",
+ "\n",
"sklearn.set_config(display='diagram')\n",
"\n",
"# 表路径\n",
- "path1 = \"/home/uw1/snippets/py_onnx/expedia/data/S_listings.csv\"\n",
- "path2 = \"/home/uw1/snippets/py_onnx/expedia/data/R1_hotels.csv\"\n",
- "path3 = \"/home/uw1/snippets/py_onnx/expedia/data/R2_searches.csv\"\n",
+ "path1 = f\"{DATA_DIR}/data/S_listings.csv\"\n",
+ "path2 = f\"{DATA_DIR}/data/R1_hotels.csv\"\n",
+ "path3 = f\"{DATA_DIR}/data/R2_searches.csv\"\n",
"# 读取csv表\n",
"S_listings = pd.read_csv(path1)\n",
"R1_hotels = pd.read_csv(path2)\n",
@@ -61,8 +63,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:20:56.293096349Z",
- "start_time": "2023-09-14T14:20:52.905516721Z"
+ "end_time": "2023-09-20T08:29:56.470642927Z",
+ "start_time": "2023-09-20T08:29:54.276610261Z"
}
},
"id": "initial_id"
@@ -74,8 +76,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:20:56.329993615Z",
- "start_time": "2023-09-14T14:20:56.298925022Z"
+ "end_time": "2023-09-20T08:29:56.501436572Z",
+ "start_time": "2023-09-20T08:29:56.475026791Z"
}
},
"outputs": [
@@ -123,8 +125,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:39.069314907Z",
- "start_time": "2023-09-14T14:20:56.336077806Z"
+ "end_time": "2023-09-20T08:31:25.788872355Z",
+ "start_time": "2023-09-20T08:29:56.501779222Z"
}
},
"outputs": [
@@ -134,8 +136,8 @@
"text": [
"[Pipeline] ............ (step 1 of 1) Processing scaler, total= 0.1s\n",
"[ColumnTransformer] ..... (1 of 2) Processing numerical, total= 0.1s\n",
- "[Pipeline] ............ (step 1 of 1) Processing onehot, total= 1.5s\n",
- "[ColumnTransformer] ... (2 of 2) Processing categorical, total= 1.5s\n",
+ "[Pipeline] ............ (step 1 of 1) Processing onehot, total= 1.2s\n",
+ "[ColumnTransformer] ... (2 of 2) Processing categorical, total= 1.2s\n",
"Training done.\n"
]
}
@@ -153,8 +155,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:39.071695911Z",
- "start_time": "2023-09-14T14:22:39.069023811Z"
+ "end_time": "2023-09-20T08:31:25.797897803Z",
+ "start_time": "2023-09-20T08:31:25.789729348Z"
}
},
"outputs": [
@@ -182,8 +184,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:45.287430337Z",
- "start_time": "2023-09-14T14:22:39.069700163Z"
+ "end_time": "2023-09-20T08:31:31.204254992Z",
+ "start_time": "2023-09-20T08:31:25.790294144Z"
}
},
"outputs": [
@@ -193,8 +195,8 @@
"text": [
"[Pipeline] ............ (step 1 of 1) Processing scaler, total= 0.1s\n",
"[ColumnTransformer] ..... (1 of 2) Processing numerical, total= 0.1s\n",
- "[Pipeline] ............ (step 1 of 1) Processing onehot, total= 1.5s\n",
- "[ColumnTransformer] ... (2 of 2) Processing categorical, total= 1.5s\n",
+ "[Pipeline] ............ (step 1 of 1) Processing onehot, total= 1.2s\n",
+ "[ColumnTransformer] ... (2 of 2) Processing categorical, total= 1.2s\n",
"Training done.\n"
]
}
@@ -207,22 +209,22 @@
},
{
"cell_type": "code",
- "execution_count": 6,
+ "execution_count": 27,
"id": "57098bcb814bc88c",
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:45.386794834Z",
- "start_time": "2023-09-14T14:22:45.286981108Z"
+ "end_time": "2023-09-20T08:47:49.288583215Z",
+ "start_time": "2023-09-20T08:47:49.261947235Z"
}
},
"outputs": [
{
"data": {
- "text/plain": " prop_location_score1 prop_location_score2 prop_log_historical_price \\\n0 2.20 0.0472 0.00 \n1 2.56 0.0221 0.00 \n2 2.56 0.0863 0.00 \n3 2.20 0.0104 0.00 \n4 0.69 0.0138 0.00 \n... ... ... ... \n119995 3.09 0.2478 0.00 \n119996 3.04 0.0000 0.00 \n119997 0.00 0.0872 0.00 \n119998 2.48 0.0817 4.11 \n119999 2.83 0.0026 4.08 \n\n price_usd orig_destination_distance prop_review_score \\\n0 80.0 86.59 3.5 \n1 75.0 82.51 4.5 \n2 89.0 91.15 4.0 \n3 40.0 87.17 2.5 \n4 65.0 85.21 4.0 \n... ... ... ... \n119995 76.0 0.00 4.5 \n119996 93.0 0.00 0.0 \n119997 143.0 0.00 4.5 \n119998 42.0 0.00 3.5 \n119999 30.0 0.00 2.0 \n\n avg_bookings_usd stdev_bookings_usd position prop_country_id ... \\\n0 172.605500 86.693494 '1' '219' ... \n1 277.470000 77.690000 '1' '219' ... \n2 124.185714 62.019917 '1' '219' ... \n3 103.603333 83.719086 '1' '219' ... \n4 113.760000 30.520000 '1' '219' ... \n... ... ... ... ... ... \n119995 246.620000 0.000000 '0' '219' ... \n119996 252.000000 84.000000 '0' '219' ... \n119997 247.537561 142.940988 '1' '219' ... \n119998 142.761429 103.587524 '0' '219' ... \n119999 270.600000 0.000000 '1' '219' ... \n\n site_id visitor_location_country_id srch_destination_id \\\n0 '5' '219' '13233' \n1 '5' '219' '13233' \n2 '5' '219' '13233' \n3 '5' '219' '13233' \n4 '5' '219' '13233' \n... ... ... ... \n119995 '5' '219' '16823' \n119996 '5' '219' '16823' \n119997 '5' '219' '16823' \n119998 '5' '219' '16823' \n119999 '5' '219' '16823' \n\n srch_length_of_stay srch_booking_window srch_adults_count \\\n0 2 0 2 \n1 2 0 2 \n2 2 0 2 \n3 2 0 2 \n4 2 0 2 \n... ... ... ... \n119995 1 21 2 \n119996 1 21 2 \n119997 1 21 2 \n119998 2 30 2 \n119999 2 30 2 \n\n srch_children_count srch_room_count srch_saturday_night_bool \\\n0 0 1 1 \n1 0 1 1 \n2 0 1 1 \n3 0 1 1 \n4 0 1 1 \n... ... ... ... \n119995 0 1 1 \n119996 0 1 1 \n119997 0 1 1 \n119998 0 1 1 \n119999 0 1 1 \n\n random_bool \n0 0 \n1 0 \n2 0 \n3 0 \n4 0 \n... ... \n119995 0 \n119996 0 \n119997 0 \n119998 1 \n119999 1 \n\n[120000 rows x 28 columns]",
- "text/html": "
\n\n
\n \n \n | \n prop_location_score1 | \n prop_location_score2 | \n prop_log_historical_price | \n price_usd | \n orig_destination_distance | \n prop_review_score | \n avg_bookings_usd | \n stdev_bookings_usd | \n position | \n prop_country_id | \n ... | \n site_id | \n visitor_location_country_id | \n srch_destination_id | \n srch_length_of_stay | \n srch_booking_window | \n srch_adults_count | \n srch_children_count | \n srch_room_count | \n srch_saturday_night_bool | \n random_bool | \n
\n \n \n \n 0 | \n 2.20 | \n 0.0472 | \n 0.00 | \n 80.0 | \n 86.59 | \n 3.5 | \n 172.605500 | \n 86.693494 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 1 | \n 2.56 | \n 0.0221 | \n 0.00 | \n 75.0 | \n 82.51 | \n 4.5 | \n 277.470000 | \n 77.690000 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 2 | \n 2.56 | \n 0.0863 | \n 0.00 | \n 89.0 | \n 91.15 | \n 4.0 | \n 124.185714 | \n 62.019917 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 3 | \n 2.20 | \n 0.0104 | \n 0.00 | \n 40.0 | \n 87.17 | \n 2.5 | \n 103.603333 | \n 83.719086 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 4 | \n 0.69 | \n 0.0138 | \n 0.00 | \n 65.0 | \n 85.21 | \n 4.0 | \n 113.760000 | \n 30.520000 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 119995 | \n 3.09 | \n 0.2478 | \n 0.00 | \n 76.0 | \n 0.00 | \n 4.5 | \n 246.620000 | \n 0.000000 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '16823' | \n 1 | \n 21 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 119996 | \n 3.04 | \n 0.0000 | \n 0.00 | \n 93.0 | \n 0.00 | \n 0.0 | \n 252.000000 | \n 84.000000 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '16823' | \n 1 | \n 21 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 119997 | \n 0.00 | \n 0.0872 | \n 0.00 | \n 143.0 | \n 0.00 | \n 4.5 | \n 247.537561 | \n 142.940988 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '16823' | \n 1 | \n 21 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 119998 | \n 2.48 | \n 0.0817 | \n 4.11 | \n 42.0 | \n 0.00 | \n 3.5 | \n 142.761429 | \n 103.587524 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '16823' | \n 2 | \n 30 | \n 2 | \n 0 | \n 1 | \n 1 | \n 1 | \n
\n \n 119999 | \n 2.83 | \n 0.0026 | \n 4.08 | \n 30.0 | \n 0.00 | \n 2.0 | \n 270.600000 | \n 0.000000 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '16823' | \n 2 | \n 30 | \n 2 | \n 0 | \n 1 | \n 1 | \n 1 | \n
\n \n
\n
120000 rows × 28 columns
\n
"
+ "text/plain": " prop_location_score1 prop_location_score2 prop_log_historical_price \\\n0 2.20 0.0472 0.00 \n1 2.56 0.0221 0.00 \n2 2.56 0.0863 0.00 \n3 2.20 0.0104 0.00 \n4 0.69 0.0138 0.00 \n... ... ... ... \n49995 3.22 0.1841 4.11 \n49996 3.26 0.1802 4.24 \n49997 2.77 0.1969 4.91 \n49998 3.18 0.1785 3.84 \n49999 2.83 0.1616 4.07 \n\n price_usd orig_destination_distance prop_review_score \\\n0 80.0 86.59 3.5 \n1 75.0 82.51 4.5 \n2 89.0 91.15 4.0 \n3 40.0 87.17 2.5 \n4 65.0 85.21 4.0 \n... ... ... ... \n49995 65.0 208.62 3.0 \n49996 70.0 208.55 3.5 \n49997 104.0 208.24 4.0 \n49998 40.0 208.64 2.5 \n49999 65.0 208.39 4.0 \n\n avg_bookings_usd stdev_bookings_usd position prop_country_id ... \\\n0 172.605500 86.693494 '1' '219' ... \n1 277.470000 77.690000 '1' '219' ... \n2 124.185714 62.019917 '1' '219' ... \n3 103.603333 83.719086 '1' '219' ... \n4 113.760000 30.520000 '1' '219' ... \n... ... ... ... ... ... \n49995 116.355500 92.122719 '0' '219' ... \n49996 75.948333 27.501123 '0' '219' ... \n49997 171.820000 71.153756 '0' '219' ... \n49998 96.950000 105.050405 '0' '219' ... \n49999 82.274737 46.771863 '1' '219' ... \n\n site_id visitor_location_country_id srch_destination_id \\\n0 '5' '219' '13233' \n1 '5' '219' '13233' \n2 '5' '219' '13233' \n3 '5' '219' '13233' \n4 '5' '219' '13233' \n... ... ... ... \n49995 '5' '219' '21382' \n49996 '5' '219' '21382' \n49997 '5' '219' '21382' \n49998 '5' '219' '21382' \n49999 '5' '219' '21382' \n\n srch_length_of_stay srch_booking_window srch_adults_count \\\n0 2 0 2 \n1 2 0 2 \n2 2 0 2 \n3 2 0 2 \n4 2 0 2 \n... ... ... ... \n49995 1 8 1 \n49996 1 8 1 \n49997 1 8 1 \n49998 1 8 1 \n49999 1 8 1 \n\n srch_children_count srch_room_count srch_saturday_night_bool random_bool \n0 0 1 1 0 \n1 0 1 1 0 \n2 0 1 1 0 \n3 0 1 1 0 \n4 0 1 1 0 \n... ... ... ... ... \n49995 2 1 1 0 \n49996 2 1 1 0 \n49997 2 1 1 0 \n49998 2 1 1 0 \n49999 2 1 1 0 \n\n[50000 rows x 28 columns]",
+ "text/html": "\n\n
\n \n \n | \n prop_location_score1 | \n prop_location_score2 | \n prop_log_historical_price | \n price_usd | \n orig_destination_distance | \n prop_review_score | \n avg_bookings_usd | \n stdev_bookings_usd | \n position | \n prop_country_id | \n ... | \n site_id | \n visitor_location_country_id | \n srch_destination_id | \n srch_length_of_stay | \n srch_booking_window | \n srch_adults_count | \n srch_children_count | \n srch_room_count | \n srch_saturday_night_bool | \n random_bool | \n
\n \n \n \n 0 | \n 2.20 | \n 0.0472 | \n 0.00 | \n 80.0 | \n 86.59 | \n 3.5 | \n 172.605500 | \n 86.693494 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 1 | \n 2.56 | \n 0.0221 | \n 0.00 | \n 75.0 | \n 82.51 | \n 4.5 | \n 277.470000 | \n 77.690000 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 2 | \n 2.56 | \n 0.0863 | \n 0.00 | \n 89.0 | \n 91.15 | \n 4.0 | \n 124.185714 | \n 62.019917 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 3 | \n 2.20 | \n 0.0104 | \n 0.00 | \n 40.0 | \n 87.17 | \n 2.5 | \n 103.603333 | \n 83.719086 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n 4 | \n 0.69 | \n 0.0138 | \n 0.00 | \n 65.0 | \n 85.21 | \n 4.0 | \n 113.760000 | \n 30.520000 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '13233' | \n 2 | \n 0 | \n 2 | \n 0 | \n 1 | \n 1 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n ... | \n
\n \n 49995 | \n 3.22 | \n 0.1841 | \n 4.11 | \n 65.0 | \n 208.62 | \n 3.0 | \n 116.355500 | \n 92.122719 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '21382' | \n 1 | \n 8 | \n 1 | \n 2 | \n 1 | \n 1 | \n 0 | \n
\n \n 49996 | \n 3.26 | \n 0.1802 | \n 4.24 | \n 70.0 | \n 208.55 | \n 3.5 | \n 75.948333 | \n 27.501123 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '21382' | \n 1 | \n 8 | \n 1 | \n 2 | \n 1 | \n 1 | \n 0 | \n
\n \n 49997 | \n 2.77 | \n 0.1969 | \n 4.91 | \n 104.0 | \n 208.24 | \n 4.0 | \n 171.820000 | \n 71.153756 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '21382' | \n 1 | \n 8 | \n 1 | \n 2 | \n 1 | \n 1 | \n 0 | \n
\n \n 49998 | \n 3.18 | \n 0.1785 | \n 3.84 | \n 40.0 | \n 208.64 | \n 2.5 | \n 96.950000 | \n 105.050405 | \n '0' | \n '219' | \n ... | \n '5' | \n '219' | \n '21382' | \n 1 | \n 8 | \n 1 | \n 2 | \n 1 | \n 1 | \n 0 | \n
\n \n 49999 | \n 2.83 | \n 0.1616 | \n 4.07 | \n 65.0 | \n 208.39 | \n 4.0 | \n 82.274737 | \n 46.771863 | \n '1' | \n '219' | \n ... | \n '5' | \n '219' | \n '21382' | \n 1 | \n 8 | \n 1 | \n 2 | \n 1 | \n 1 | \n 0 | \n
\n \n
\n
50000 rows × 28 columns
\n
"
},
- "execution_count": 6,
+ "execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
@@ -230,20 +232,20 @@
"source": [
"from onnxoptimizer.query.pandas import model_udf\n",
"\n",
- "predict_df = X[:120000]\n",
+ "predict_df = X[:50000]\n",
"\n",
"predict_df"
]
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": 33,
"id": "9c16abf732937869",
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:45.655020077Z",
- "start_time": "2023-09-14T14:22:45.392257311Z"
+ "end_time": "2023-09-20T08:48:14.096934811Z",
+ "start_time": "2023-09-20T08:48:14.057414246Z"
}
},
"outputs": [
@@ -280,22 +282,22 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": 34,
"id": "56c69e2d0fca0d29",
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:47.350480927Z",
- "start_time": "2023-09-14T14:22:45.439294187Z"
+ "end_time": "2023-09-20T08:48:16.338626086Z",
+ "start_time": "2023-09-20T08:48:14.838467649Z"
}
},
"outputs": [
{
"data": {
- "text/plain": " result_lr result_linear\n0 0 0\n1 0 0\n2 0 0\n3 0 0\n4 0 0\n... ... ...\n119995 0 0\n119996 0 0\n119997 0 0\n119998 0 0\n119999 0 0\n\n[120000 rows x 2 columns]",
- "text/html": "\n\n
\n \n \n | \n result_lr | \n result_linear | \n
\n \n \n \n 0 | \n 0 | \n 0 | \n
\n \n 1 | \n 0 | \n 0 | \n
\n \n 2 | \n 0 | \n 0 | \n
\n \n 3 | \n 0 | \n 0 | \n
\n \n 4 | \n 0 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n
\n \n 119995 | \n 0 | \n 0 | \n
\n \n 119996 | \n 0 | \n 0 | \n
\n \n 119997 | \n 0 | \n 0 | \n
\n \n 119998 | \n 0 | \n 0 | \n
\n \n 119999 | \n 0 | \n 0 | \n
\n \n
\n
120000 rows × 2 columns
\n
"
+ "text/plain": " result_lr result_linear\n0 0 0\n1 0 0\n2 0 0\n3 0 0\n4 0 0\n... ... ...\n49995 0 0\n49996 0 0\n49997 0 0\n49998 1 0\n49999 0 0\n\n[50000 rows x 2 columns]",
+ "text/html": "\n\n
\n \n \n | \n result_lr | \n result_linear | \n
\n \n \n \n 0 | \n 0 | \n 0 | \n
\n \n 1 | \n 0 | \n 0 | \n
\n \n 2 | \n 0 | \n 0 | \n
\n \n 3 | \n 0 | \n 0 | \n
\n \n 4 | \n 0 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n
\n \n 49995 | \n 0 | \n 0 | \n
\n \n 49996 | \n 0 | \n 0 | \n
\n \n 49997 | \n 0 | \n 0 | \n
\n \n 49998 | \n 1 | \n 0 | \n
\n \n 49999 | \n 0 | \n 0 | \n
\n \n
\n
50000 rows × 2 columns
\n
"
},
- "execution_count": 8,
+ "execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
@@ -313,23 +315,23 @@
},
{
"cell_type": "code",
- "execution_count": 9,
+ "execution_count": 35,
"id": "56add5579a69412e",
"metadata": {
"collapsed": false,
"scrolled": true,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:50.498272243Z",
- "start_time": "2023-09-14T14:22:47.349342849Z"
+ "end_time": "2023-09-20T08:48:20.799196650Z",
+ "start_time": "2023-09-20T08:48:18.603184048Z"
}
},
"outputs": [
{
"data": {
- "text/plain": " result_lr result_linear\n0 0 0\n1 0 0\n2 0 0\n3 0 0\n4 0 0\n... ... ...\n119995 0 0\n119996 0 0\n119997 0 0\n119998 0 0\n119999 0 0\n\n[120000 rows x 2 columns]",
- "text/html": "\n\n
\n \n \n | \n result_lr | \n result_linear | \n
\n \n \n \n 0 | \n 0 | \n 0 | \n
\n \n 1 | \n 0 | \n 0 | \n
\n \n 2 | \n 0 | \n 0 | \n
\n \n 3 | \n 0 | \n 0 | \n
\n \n 4 | \n 0 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n
\n \n 119995 | \n 0 | \n 0 | \n
\n \n 119996 | \n 0 | \n 0 | \n
\n \n 119997 | \n 0 | \n 0 | \n
\n \n 119998 | \n 0 | \n 0 | \n
\n \n 119999 | \n 0 | \n 0 | \n
\n \n
\n
120000 rows × 2 columns
\n
"
+ "text/plain": " result_lr result_linear\n0 0 0\n1 0 0\n2 0 0\n3 0 0\n4 0 0\n... ... ...\n49995 0 0\n49996 0 0\n49997 0 0\n49998 1 0\n49999 0 0\n\n[50000 rows x 2 columns]",
+ "text/html": "\n\n
\n \n \n | \n result_lr | \n result_linear | \n
\n \n \n \n 0 | \n 0 | \n 0 | \n
\n \n 1 | \n 0 | \n 0 | \n
\n \n 2 | \n 0 | \n 0 | \n
\n \n 3 | \n 0 | \n 0 | \n
\n \n 4 | \n 0 | \n 0 | \n
\n \n ... | \n ... | \n ... | \n
\n \n 49995 | \n 0 | \n 0 | \n
\n \n 49996 | \n 0 | \n 0 | \n
\n \n 49997 | \n 0 | \n 0 | \n
\n \n 49998 | \n 1 | \n 0 | \n
\n \n 49999 | \n 0 | \n 0 | \n
\n \n
\n
50000 rows × 2 columns
\n
"
},
- "execution_count": 9,
+ "execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
@@ -345,21 +347,21 @@
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": 36,
"id": "867637f8372b663a",
"metadata": {
"collapsed": false,
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:50.503248165Z",
- "start_time": "2023-09-14T14:22:50.498632239Z"
+ "end_time": "2023-09-20T08:48:21.910501710Z",
+ "start_time": "2023-09-20T08:48:21.906785142Z"
}
},
"outputs": [
{
"data": {
- "text/plain": "(1.900327659008326, 3.1426765380019788)"
+ "text/plain": "(1.520371841994347, 2.186767206003424)"
},
- "execution_count": 10,
+ "execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
@@ -370,19 +372,19 @@
},
{
"cell_type": "code",
- "execution_count": 11,
+ "execution_count": 37,
"id": "6cd071ae-e0fc-40a7-a17a-f2d5d0a2469e",
"metadata": {
"ExecuteTime": {
- "end_time": "2023-09-14T14:22:50.611925720Z",
- "start_time": "2023-09-14T14:22:50.505370666Z"
+ "end_time": "2023-09-20T08:48:23.934956586Z",
+ "start_time": "2023-09-20T08:48:23.875832769Z"
}
},
"outputs": [
{
"data": {
"text/plain": "