<jupyter_start><jupyter_text>COMM054 - Revised Version (Recalling Past Work)  Loading ATLAS Data and Labels<jupyter_code>import pandas as pd
import numpy as np
import sklearn

atlas_data = pd.read_csv('COMM054Dataset\ATLAS-data.csv')
atlas_labels = pd.read_csv('COMM054Dataset\ATLAS-labels.csv')

atlas_data.head()<jupyter_output><empty_output><jupyter_text>Preprocessing Data<jupyter_code>from sklearn.preprocessing import StandardScaler
from sklearn.feature_selection import SequentialFeatureSelector
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier


X, y = load_iris(return_X_y=True)
clf = RandomForestClassifier(max_depth=2, random_state=0)

sfs = SequentialFeatureSelector(clf, n_features_to_select=3)

sfs.fit(X,y)
sfs.get_support()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08508014796547472, 'fraction_numerical': 0.014796547472256474, 'mean_word_length': 9.024691358024691, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '344152', 'license': 'MIT', 'n_tokens_mistral': 299, 'n_tokens_neox': 287, 'n_words': 52, 'path': 'Statistical Modelling Exercise/Revised Past Work (WIP).ipynb', 'repo_name': 'MattyMani/notebook-studies', 'size': '811'}