# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# Combine predictions of shift 1 and 2

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

sub1 = pd.read_csv(r'C:\Sync\Work\Kaggle Competitions\Ventilator Pressure Prediction\Notebooks\submission_deriv_int_shift1_rf.csv')
sub2 = pd.read_csv(r'C:\Sync\Work\Kaggle Competitions\Ventilator Pressure Prediction\Notebooks\submission_deriv_int_shift2_rf.csv')

sub_mean = sub1.copy()
sub_mean.pressure = (sub1.pressure + sub2.pressure)/2

sub_mean.to_csv('submission.csv', index=False)
print("Submission saved!")







StarcoderdataJupyterScriptsDedupFiltered