{"id":2037,"date":"2023-12-06T04:00:06","date_gmt":"2023-12-06T02:00:06","guid":{"rendered":"https:\/\/www.lucaamore.com\/?p=2037"},"modified":"2026-11-01T12:18:32","modified_gmt":"2026-11-01T10:18:32","slug":"kaggle-titanic-spaceship-vs-chatgpt-v4","status":"publish","type":"post","link":"https:\/\/www.lucaamore.com\/?p=2037","title":{"rendered":"Imaginary Journey to the Frontier of AI: A Glimpse into the Year 2912"},"content":{"rendered":"\n<p class=\"has-normal-font-size wp-block-paragraph\">In this <strong>imaginative journey to the frontier of AI<\/strong>, we&#8217;ll project ourselves into the <strong>year 2912<\/strong>, where we will challenge the<strong> Data Analysis module of ChatGPT v4<\/strong> to solve a <strong>space-time anomaly<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1024\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/fut-titanic.avif\" alt=\"\" class=\"wp-image-2944\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/fut-titanic.avif 1536w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/fut-titanic-300x200.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/fut-titanic-1024x683.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/fut-titanic-768x512.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/fut-titanic-450x300.avif 450w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">To break the ice, I asked ChatGPT to briefly describe, based on its knowledge, <strong>how it imagines humanity in the year 2912<\/strong>, especially in relation to intergalactic travel.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-normal-font-size is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-normal-font-size wp-block-paragraph\">&#8220;By the year 2912, I envision humanity as a highly advanced civilization, spread across multiple planets and star systems. Thanks to discoveries in physics and bioengineering, humans are able to adapt to different space environments and have developed intergalactic travel technology that allows crossing vast cosmic distances in a short time. Spacecrafts are elegant and sophisticated, equipped with AI systems to assist and protect travelers. Human cultures are diverse, influenced by various space colonies, yet united by a common quest for exploration and knowledge.&#8221;<\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">I share ChatGPT&#8217;s optimism, which doesn&#8217;t describe a dystopian future or conflicts, but collaboration among civilizations; probably a reflection of its algorithms&#8217; optimism bias.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Now, let&#8217;s describe our intergalactic problem presented on <a href=\"https:\/\/www.kaggle.com\" data-type=\"link\" data-id=\"https:\/\/www.kaggle.com\">Kaggle<\/a>:<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><a href=\"https:\/\/www.kaggle.com\/competitions\/spaceship-titanic\/\" data-type=\"link\" data-id=\"https:\/\/www.kaggle.com\/competitions\/spaceship-titanic\/\"><strong>Addison Howard, Ashley Chow, Ryan Holbrook. (2022). Spaceship Titanic. Kaggle<\/strong><\/a><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The <strong>interstellar spaceship Titanic<\/strong>, on its maiden voyage, is transporting about 13,000 emigrants from our solar system to three newly habitable exoplanets. Passengers come from Earth, Mars, and Europa, some in cryogenic sleep. The ship offers various services, including VIP treatments, a SPA, a shopping center, and a high-tech Virtual Reality deck. All onboard activities are tracked by a next-generation computer system.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Near Alpha Centauri, en route to the torrid 55 Cancri E, <strong>the ship encounters a space-time anomaly <\/strong>hidden by a dust cloud. After 1,000 years, it seems the tragedy of the previous Titanic is repeating in space.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">After the impact, although the ship remains miraculously intact, <strong>nearly<\/strong> <strong>half the passengers are teleported to an alternate dimension!<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/lucaamore.com\/wp-content\/uploads\/2023\/12\/e5899e56-7577-41a1-8465-4b8381e8421e.webp\" class=\"img-link\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/lucaamore.com\/wp-content\/uploads\/2023\/12\/e5899e56-7577-41a1-8465-4b8381e8421e.webp\" alt=\"view of spaceship\" class=\"wp-image-2034\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/e5899e56-7577-41a1-8465-4b8381e8421e.webp 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/e5899e56-7577-41a1-8465-4b8381e8421e-300x300.webp 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/e5899e56-7577-41a1-8465-4b8381e8421e-150x150.webp 150w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/e5899e56-7577-41a1-8465-4b8381e8421e-768x768.webp 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">To aid rescue teams and recover the missing passengers, <strong>we must predict which passengers have been teleported<\/strong> using data from the damaged computer system.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Here&#8217;s where we come in with the <strong>assistance of ChatGPT v4 and its Data Analytics<\/strong> module.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">We face a <strong>synthetic problem<\/strong>, created in the lab, which I consider extremely valid and complete to delve into various themes related to data analysis and machine learning algorithms.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">To effectively solve these types of problems typically requires complex theoretical and programming knowledge. <strong>ChatGPT assists the operator by guiding through all stages of the process.<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Here are the details of the <strong>Spaceship Titanic problem<\/strong>:<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">We start with a training file containing data on two-thirds of the passengers and information on whether they have been teleported, and a test file with the same data but no information on the remaining passengers&#8217; teleportation status.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The challenge is to predict, as accurately as possible, whether the passengers in the test file will be teleported.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><a href=\"https:\/\/www.kaggle.com\/competitions\/spaceship-titanic\/data\">Here are the known passenger data.<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-normal-font-size is-layout-flow wp-block-quote-is-layout-flow\">\n<figure class=\"wp-block-table is-style-regular\"><table><thead><tr><th>CAMPO<\/th><th>DESCRIZIONE<\/th><\/tr><\/thead><tbody><tr><td>PassengerId<\/td><td>A unique ID for each passenger, in the format gggg_pp where gggg indicates a group the passenger belongs to and pp is the passenger number within the group.<\/td><\/tr><tr><td>HomePlanet<\/td><td>The planet the passenger departed from, usually their permanent residence planet.<\/td><\/tr><tr><td>CryoSleep<\/td><td>Indicates whether the passenger chose to be put in suspended animation for the journey. Cryosleep passengers are confined to their cabins.<\/td><\/tr><tr><td>Cabin<\/td><td>The cabin number where the passenger is located. Presented in the format deck\/number\/side, where the side can be P for Port (left) or S for Starboard (right).<\/td><\/tr><tr><td>Destination<\/td><td>The planet where the passenger disembarks. <\/td><\/tr><tr><td>Age<\/td><td>The passenger&#8217;s age.<\/td><\/tr><tr><td>VIP<\/td><td>Indicates whether the passenger paid for a special VIP service during the trip.<\/td><\/tr><tr><td>RoomService<\/td><td>Amount the passenger charged to room service. NameThe names and surnames of the passenger.TransportedIndicates whether the passenger has been transported to another dimension. This is the target variable, the column we are trying to predict.<br><br><\/td><\/tr><tr><td>FoodCourt<\/td><td>Amount the passenger charged to the food court.<\/td><\/tr><tr><td>ShoppingMall<\/td><td>Amount the passenger charged to the shopping center.<\/td><\/tr><tr><td>Spa<\/td><td>Amount the passenger charged to the spa.<\/td><\/tr><tr><td>VRDeck<\/td><td>VRDeckAmount the passenger charged to the virtual reality deck.<\/td><\/tr><tr><td>Name<\/td><td>The name and surname of the passenger.<\/td><\/tr><tr><td>Transported<\/td><td>Indicates whether the passenger has been transported to another dimension. This is the target variable, the column we are trying to predict.<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">known passenger data<\/figcaption><\/figure>\n<\/blockquote>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">I attempted to <strong>solve the problem using ChatGPT v. 4.0 utilizing its Data Analysis module<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/lucaamore.com\/wp-content\/uploads\/2023\/12\/hacker-titanic.png\" class=\"img-link\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/lucaamore.com\/wp-content\/uploads\/2023\/12\/hacker-titanic.png\" alt=\"\" class=\"wp-image-2026\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/hacker-titanic.png 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/hacker-titanic-300x300.png 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/hacker-titanic-150x150.png 150w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/hacker-titanic-768x768.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">After presenting the training file, ChatGPT reprocessed it in the best way and also proposed the best strategies for managing missing data.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Spoiler Alert if you want to tackle this problem without any information.<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">I asked ChatGPT to explain how these variables might influence the Target Transported variable, and here&#8217;s the response:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-normal-font-size is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>CHATGPT RESPONSE &#8212; SPOILER ALERT &#8212;<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Predicting whether a passenger has been teleported or not is based on analyzing various factors (or variables) in the dataset. Here&#8217;s a brief summary of how some of these variables might influence the probability of being teleported:<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>HomePlanet (Planet of Origin):<\/strong> The probability of being teleported may vary depending on the passenger&#8217;s planet of origin. There could be specific trends or policies associated with each planet influencing this probability.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>CryoSleep (Cryogenic Sleep):<\/strong> Passengers in cryogenic sleep may have a higher probability of being teleported, perhaps due to specific procedures or protocols related to their state.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Cabin (Cabin): <\/strong>The type or location of the cabin might correlate with the probability of being teleported, perhaps due to proximity to specific teleportation devices or areas of the spacecraft.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Destination (Destination):<\/strong> The final destination might influence the probability of being teleported, perhaps due to different procedures for different places or travel distances.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Age (Age) and VIP:<\/strong> Though with a weaker correlation, age and VIP status may play a role, potentially due to policies or preferential treatments for certain age groups or VIPs.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Expenses (RoomService, FoodCourt, etc.):<\/strong> Expenditures in various categories (like RoomService, FoodCourt, etc.) show a correlation, suggesting that a passenger&#8217;s spending behavior might be linked to their probability of being teleported.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">It&#8217;s important to note that these are correlations observed in the data and do not necessarily imply a direct cause-effect relationship. Teleportation decisions might be influenced by a complex interplay of these factors and others not captured in the dataset.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>END OF CHATGPT RESPONSE &#8212; END OF SPOILER ALERT &#8212;<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The analysis phase was truly impressive, considering it was completely automated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/lucaamore.com\/wp-content\/uploads\/2023\/12\/chatgpt-data-analysis.png\" class=\"img-link\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/lucaamore.com\/wp-content\/uploads\/2023\/12\/chatgpt-data-analysis.png\" alt=\"chatgpt-data-analysis\" class=\"wp-image-2027\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/chatgpt-data-analysis.png 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/chatgpt-data-analysis-300x300.png 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/chatgpt-data-analysis-150x150.png 150w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/chatgpt-data-analysis-768x768.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">During the model construction phase, ChatGPT guided us through various stages. <strong>Errors occurred several times<\/strong>, which were analyzed and recovered more or less effectively. A major limitation is that <strong>more complex computations are also interrupted due to timeout<\/strong>.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">ChatGPT suggested using the <strong>Random Forest algorithm<\/strong> for the model.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">I asked for the rationale behind this choice.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-normal-font-size is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>CHATGPT RESPONSE<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">I chose the <strong>Random Forest<\/strong> model to predict the teleportation status for various reasons, making it particularly suitable for this type of problem:<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Handling Categorical and Continuous Variables: <\/strong>Random Forest effectively manages both categorical and continuous variables. In the provided dataset, we have both types of variables, making Random Forest an appropriate choice.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Robustness to Noisy Data and Outliers: <\/strong>Random Forest is known for its robustness to noisy data and outliers, which can be present in real datasets like this.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Lower Risk of Overfitting: <\/strong>Thanks to its ensemble algorithm nature, combining the results of many decision trees, Random Forest tends to have a lower risk of overfitting compared to single decision trees.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Variable Importance:<\/strong> Random Forest provides useful insights into variable importance, which can help understand which factors most significantly influence the prediction. This is useful for interpreting the model&#8217;s results in relation to the business problem.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Good Overall Performance:<\/strong> Generally, Random Forest is known for its good performance across a wide range of classification problems, making it a reliable starting point for many machine learning applications.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>Flexibility and Scalability: <\/strong>It&#8217;s a flexible model that can be easily adapted to improve performance (e.g., adjusting the number of trees) and scales well with large datasets.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">In summary, I chose Random Forest for its robustness, reliability, and ability to provide high-quality results on a complex dataset like the one provided.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">END OF CHATGPT RESPONSE<\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>The result achieved <\/strong>was an <strong>accuracy of 0.79822<\/strong>, which I find astonishing given that it was conducted in a fully guided mode; <strong>we also placed reasonably well on the leaderboard<\/strong> for this problem.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>These are the parameters obtained on the validation set.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>PARAMETER<\/th><th>Value<\/th><\/tr><\/thead><tbody><tr><td>Accuracy<\/td><td>0.7901<\/td><\/tr><tr><td>Precision (False)<\/td><td>0.8000<\/td><\/tr><tr><td>Precision (True)<\/td><td>0.7800<\/td><\/tr><tr><td>Recall (False)<\/td><td>0.7700<\/td><\/tr><tr><td>Recall (True)<\/td><td>0.8100<\/td><\/tr><tr><td>F1-Score (False)<\/td><td>0.7800<\/td><\/tr><tr><td>F1-Score (True)<\/td><td>0.8000<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">validation set parameters<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">All the <strong>Python code created can be viewed<\/strong>, which is <strong>extremely useful for beginners<\/strong>.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><strong>ChatGPT V4 Data Analysis proved to be an incredible assistant<\/strong>, albeit a <strong>bit unstable<\/strong> as there were errors that forced me to start over.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">All images were created by DALL\u00b7E 2 through ChatGPT v4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\">Update 2026-10-30 &#8211; ChatGPT ASTRA v.6<\/h2>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Three years later, I returned to the scene of the cosmic mishap with CatBoost, LightGBM, Optuna tuning, and 66 engineered features. The rescue team now reads cabin coordinates, travel-group context, spending patterns, and missing-value flags. Even in 2912, apparently, accounting leaves better clues than the captain&#8217;s log.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The executed version 3 results put the ensemble at&nbsp;<strong>81.63% accuracy on 1,720 reserved passengers<\/strong>, against&nbsp;<strong>79.53% for a fresh CatBoost reference<\/strong>: an observed gain of 2.10 percentage points. These replace the earlier local-run numbers quoted here. Travelling companions stay together in validation splits; audit labels are excluded from tuning and policy selection. Manifest features use unlabelled train and test covariates, so this is a batch-prediction experiment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\">The manifest has holes. The holes are not zeroes.<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values.avif\" class=\"img-link\"><img data-dominant-color=\"bfbfb7\" data-has-transparency=\"true\" style=\"--dominant-color: #bfbfb7;\" loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"673\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values.avif\" alt=\"Missing passenger fields in train and test, approximately 2\u20132.5% per displayed field.\" class=\"wp-image-3228 has-transparency\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values.avif 1213w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values-300x166.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values-1024x568.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values-768x426.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values-640x355.avif 640w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values-901x500.avif 901w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-missing-values-480x266.avif 480w\" sizes=\"auto, (max-width: 1213px) 100vw, 1213px\" \/><\/a><figcaption class=\"wp-element-caption\">1 \u00b7 Gaps in the manifest: unknown values are not zero expenditure.<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Missing values affect roughly 2\u20132.5% of passengers per displayed field, with broadly similar rates in train and test. A blank spa bill is not evidence of a free massage. The pipeline preserves missingness and distinguishes unknown expenditure from confirmed zero spending.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\">The receipts survived the wormhole<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending.avif\" class=\"img-link\"><img data-dominant-color=\"fbfbfa\" data-has-transparency=\"true\" style=\"--dominant-color: #fbfbfa;\" loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"613\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending.avif\" alt=\"Development spending density by transported status, shown on a log(1 + expenditure) scale.\" class=\"wp-image-3229 has-transparency\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending.avif 1213w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending-300x152.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending-1024x517.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending-768x388.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending-640x323.avif 640w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending-989x500.avif 989w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-spending-480x243.avif 480w\" sizes=\"auto, (max-width: 1213px) 100vw, 1213px\" \/><\/a><figcaption class=\"wp-element-caption\">2 \u00b7 The receipts survived: spending patterns in development data.<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The spending chart shows a striking concentration of transported passengers near zero observed expenditure. Its horizontal axis is logarithmic; the curves are densities, not passenger counts. Cryosleep offers a plausible connection: sleeping travellers have fewer opportunities to run up a bar tab. But this is an association in a synthetic dataset. Cancelling room service is not a scientifically established defence against interdimensional travel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\">Accuracy is the headline. The confusion matrix is the incident report.<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit.avif\" class=\"img-link\"><img data-dominant-color=\"d0dbe7\" data-has-transparency=\"true\" style=\"--dominant-color: #d0dbe7;\" loading=\"lazy\" decoding=\"async\" width=\"1438\" height=\"589\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit.avif\" alt=\"Reserved-group confusion matrix: 745 true negatives, 139 false positives, 177 false negatives and 659 true positives; alongside audit probability calibration.\" class=\"wp-image-3230 has-transparency\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit.avif 1438w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-300x123.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-1024x419.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-768x315.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-640x262.avif 640w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-1000x410.avif 1000w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-1366x560.avif 1366w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-audit-480x197.avif 480w\" sizes=\"auto, (max-width: 1438px) 100vw, 1438px\" \/><\/a><figcaption class=\"wp-element-caption\">3 \u00b7 The incident report: classification errors and probability reliability on the reserved audit.<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The ensemble correctly classifies&nbsp;<strong>1,404 of 1,720 audit passengers<\/strong>: 745 who stayed and 659 who were transported. It raises 139 false alarms and misses 177 transported passengers\u2014about&nbsp;<strong>78.8% recall for the transported class<\/strong>. A respectable score still leaves names missing from the rescue list. The reliability plot asks whether predicted probabilities match observed frequencies. Its curves broadly follow the diagonal, with visible departures: confidence deserves inspection as much as correctness.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\">Why is the spa in the interrogation room?<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap.avif\" class=\"img-link\"><img data-dominant-color=\"d4e2ec\" data-has-transparency=\"true\" style=\"--dominant-color: #d4e2ec;\" loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"853\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap.avif\" alt=\"Mean absolute SHAP contributions for one CatBoost component on 400 audit passengers; SpaObserved has the largest displayed contribution.\" class=\"wp-image-3231 has-transparency\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap.avif 1213w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap-300x211.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap-1024x720.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap-768x540.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap-640x450.avif 640w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap-711x500.avif 711w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-shap-480x338.avif 480w\" sizes=\"auto, (max-width: 1213px) 100vw, 1213px\" \/><\/a><figcaption class=\"wp-element-caption\">4 \u00b7 A useful witness: feature contributions explain predictions, not the cause of the anomaly.<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The SHAP chart ranks&nbsp;<strong>SpaObserved<\/strong>&nbsp;first among the displayed contributions for one CatBoost component, followed by cabin side, cryosleep, and total spending. These are mean absolute contributions on 400 audit passengers: they measure strength, not direction, and do not establish causation. The spa is a useful witness. We have not established it as the perpetrator.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\">Keep the scores in their own orbits<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions.avif\" class=\"img-link\"><img data-dominant-color=\"e2ebf2\" data-has-transparency=\"true\" style=\"--dominant-color: #e2ebf2;\" loading=\"lazy\" decoding=\"async\" width=\"1213\" height=\"613\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions.avif\" alt=\"Distribution of predicted transported probabilities for 4,277 test passengers, with a locked classification threshold of 0.540.\" class=\"wp-image-3232 has-transparency\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions.avif 1213w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions-300x152.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions-1024x517.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions-768x388.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions-640x323.avif 640w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions-989x500.avif 989w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-predictions-480x243.avif 480w\" sizes=\"auto, (max-width: 1213px) 100vw, 1213px\" \/><\/a><figcaption class=\"wp-element-caption\">5 \u00b7 The final passenger list: probabilities for 4,277 test passengers; locked threshold 0.540.<\/figcaption><\/figure>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The final histogram covers&nbsp;<strong>4,277 test passengers<\/strong>. At the locked threshold of&nbsp;<strong>0.540<\/strong>, 48.28% are predicted as transported. Full-training out-of-fold accuracy is 80.996%, with ROC AUC 0.90403; these are selection-affected diagnostics. Kaggle displays a&nbsp;<strong>public score of 0.80056<\/strong>, separate from the reserved audit. Putting all three numbers on the same podium would make the story tidier and the science worse.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The most useful upgrade is an experiment that leaves a trail: splits, tuning history, probabilities, explanations, and saved models that reproduce the test predictions. We still cannot repair a wormhole. We can at least stop our validation procedure from opening one.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\"><a href=\"https:\/\/www.kaggle.com\/code\/lucaamore\/spachip-titanic-with-catboostclassifier\"><strong>Spachip Titanic with Catboost Classifier &#8211; Kaggle Notebook<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\">Reconstructing the Spaceship Titanic: a city between the stars<\/h2>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">After asking an algorithm to find the missing passengers, I wanted to give them somewhere to come back to. So I asked ChatGPT to work backwards: take the surviving clues from the competition, put on an imaginary engineering badge, and sketch the ship that might have carried them. <strong>From a passenger manifest to a vessel; from rows and columns to decks and corridors.<\/strong> A small act of reverse engineering, with a rather ambitious target platform: the year 2912.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">The dataset gives us fragments of a world: cabin codes, deck letters, port and starboard, travelling groups, cryosleep, destinations, and bills for food, shopping, the spa, and virtual reality. It gives us no shipyard drawings. The hull geometry, dimensions, propulsion layout, deck arrangement, and placement of facilities in this image are therefore <strong>design assumptions, not recovered specifications<\/strong>. The result is a concept constrained by those clues, not a uniquely deduced spacecraft. There is no secret column called <code>EngineBlueprint<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-dominant-color=\"bdc2c1\" data-has-transparency=\"false\" style=\"--dominant-color: #bdc2c1;\" loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1024\" src=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic.avif\" alt=\"spaceship titanic\" class=\"wp-image-3069 not-transparent\" srcset=\"https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic.avif 1536w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-300x200.avif 300w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-768x512-1.avif 768w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-1024x683-1.avif 1024w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-640x427.avif 640w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-750x500.avif 750w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-1366x911.avif 1366w, https:\/\/www.lucaamore.com\/wp-content\/uploads\/2023\/12\/spaceship-titanic-480x320.avif 480w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">A spreadsheet, given corridors<\/h3>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">Read the cutaway as a proposed answer to a question: <em>what kind of place could contain these records?<\/em> The longitudinal section opens the hull like a patient debugger opening a stack trace. The top view, cross-section, and deck sketches let us walk around the same idea. Colours separate functions; repeated compartments turn anonymous cabin identifiers into somewhere a person might leave a suitcase. The drawing offers spatial coherence, while its fine labels and apparent precision still need the same sceptical eye we brought to the model.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">In this imagined arrangement, the ship becomes a travelling neighbourhood. Somewhere, a sleeper has entrusted an entire journey to a closed lid. Elsewhere, someone has ordered dinner, bought something unnecessary, or paid to enter a virtual world while already crossing a real one. <strong>Humanity has reached the stars and brought the shopping mall.<\/strong> Of all the speculative technologies on this page, that may require the least suspension of disbelief.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The universe has not signed off on the design<\/h3>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">An engineering drawing also invites gloriously inconvenient questions. How would people evacuate? Where would maintenance crews reach a failed subsystem? What supplies the power, handles the heat, and keeps thousands of passengers alive? The illustration prompts those questions; it does not solve them. Its engines have not passed a propulsion review, its structure has not been validated, and neither the dataset nor a handsome cutaway grants faster-than-light travel a building permit. <strong>The universe remains an unusually strict code reviewer.<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">That is what makes the reconstruction worth doing. Each attempt to give the ship a shape exposes another assumption that a tidy table can hide. A cabin becomes a location; a group becomes people travelling together; a missing value becomes a hole in the surviving record. The classifier and the drawing meet here: both build a model from incomplete evidence, and both become more interesting when we can see where the evidence ends.<\/p>\n\n\n\n<p class=\"has-normal-font-size wp-block-paragraph\">I like to imagine the Titanic in the instant before the anomaly: lights burning along its corridors, a meal cooling on a table, thousands of sleeping passengers carrying private versions of tomorrow. Then spacetime throws an exception nobody caught. We are left with a manifest, a few receipts, and the stubborn urge to make sense of them. <strong>Somewhere between a CSV file and a constellation, a row becomes a passenger again.<\/strong><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>In this imaginative journey to the frontier of AI, we&#8217;ll project ourselves into the year 2912, where we will challenge the Data Analysis module of ChatGPT v4 to solve a space-time anomaly. To break the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3069,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"novablocks_hero_scroll_indicator":false,"novablocks_hero_position_indicators":false,"supernova_prevent_duplicate":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[16,135,105,103,43,69,11,149,6,106],"tags":[153,75,306,307,125,310,150,312,308,159,95,254,309,65,154,161,155,151,152],"class_list":["post-2037","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-chatgpt","category-competition","category-kaggle","category-machine-learning","category-modeling","category-python","category-random-forest","category-review","category-titanic","tag-153","tag-artificial-intelligence","tag-astra","tag-catboost","tag-chatgpt","tag-classifier","tag-data-analytics","tag-future","tag-lightgbm","tag-luca-amore","tag-machine-learning","tag-openai","tag-optuna","tag-python","tag-random-forest","tag-representation","tag-review","tag-titanic","tag-titanic-spaceship","entry-card--square"],"_links":{"self":[{"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/posts\/2037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2037"}],"version-history":[{"count":21,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/posts\/2037\/revisions"}],"predecessor-version":[{"id":3236,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/posts\/2037\/revisions\/3236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=\/wp\/v2\/media\/3069"}],"wp:attachment":[{"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucaamore.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}