application_vnd.jupyter.stderr_output_1.png
import numpy as np

import pandas as pd

train = pd.read_csv('../input/tabular-playground-series-aug-2021/train.csv')
test = pd.read_csv('../input/tabular-playground-series-aug-2021/test.csv')
sample_sub = pd.read_csv('../input/tabular-playground-series-aug-2021/sample_submission.csv')
pseudo = pd.read_csv('../input/blending-tool-tps-aug-2021/file1_7.85192_file2_7.85244_blend.csv')

(test.shape, train.shape)

train.drop(['id'], axis=1, inplace=True)
test.drop(['id'], axis=1, inplace=True)

all_data = [train, test]

for df in all_data:
    df['f77^2/f52^2'] = df['f77'] ** 2 / df['f52'] ** 2
    df['f74^2/f81^2'] = df['f74'] ** 2 / df['f81'] ** 2
    df['f77/f69'] = df['f77'] / df['f69']
    df['f81^2/f77^2'] = df['f81'] ** 2 / df['f77'] ** 2
    df['f96/f28'] = df['f96'] / df['f28']
    df['f96^2/f73^2'] = df['f96'] ** 2 / df['f73'] ** 2
    df['f78/f28'] = df['f78'] / df['f28']
    df['f73/f28'] = df['f73'] / df['f28']
    df['f66/f69'] = df['f66'] / df['f69']
    df['f46^2/f4^2'] = df['f46'] ** 2 / df['f4'] ** 2
    df['f4/f75'] = df['f4'] / df['f75']
    df['f69^2/f96^2'] = df['f69'] ** 2 / df['f96'] ** 2
    df['f25/f69'] = df['f25'] / df['f69']
    df['f78/f69'] = df['f78'] / df['f69']
    df['f96^2/f77^2'] = df['f96'] ** 2 / df['f77'] ** 2
    df['f4^2/f52^2'] = df['f4'] ** 2 / df['f52'] ** 2
    df['f66^2/f52^2'] = df['f66'] ** 2 / df['f52'] ** 2
    df['f4^2/f81^2'] = df['f4'] ** 2 / df['f81'] ** 2
    df['f46^2/f81^2'] = df['f46'] ** 2 / df['f81'] ** 2
    df['f47/f69'] = df['f47'] / df['f69']
    df['f74xf70'] = df['f74'] * df['f70']
    df['f46^2/f66^2'] = df['f46'] ** 2 / df['f66'] ** 2
    df['f74/f47'] = df['f74'] / df['f47']
    df['f96^2xf69^2'] = df['f96'] ** 2 / df['f69'] ** 2
    df['f66/f46'] = df['f66'] / df['f46']
    df['f25xf96'] = df['f25'] * df['f96']
    df['f28xf81'] = df['f28'] * df['f81']
    df['f52xf66'] = df['f52'] * df['f66']
    df['f46^2xf81^2'] = df['f46'] ** 2 * df['f81'] ** 2
    df['f46xf74'] = df['f46'] * df['f74']
    df['f28_log'] = np.log2(df['f28'])
    df['f28xf70'] = df['f28'] * df['f70']
    df['f52_log'] = np.log2(df['f52'])
    df['f47_log'] = np.log2(df['f47'])
    df['f66xf73'] = df['f66'] * df['f73']
    df['f69_log'] = np.log2(df['f69'])
    df['f96/f78'] = df['f96'] / df['f78']