<jupyter_start><jupyter_text>Lung cancer data<jupyter_code>import numpy as np
import pandas as pd
import seaborn as sns
from SSVD663 import SSVD
from SSVD663 import SSVD_multi
df = pd.read_csv('./Data/LungCancerData.csv', sep=' ', header = None).T
cancer = np.array(df)
u, s, v = SSVD(cancer)
cancer_new = u @ s @ np.sort(np.ravel(v))[::-1].reshape(1,-1)
sns.heatmap(cancer_new, vmin=-1, vmax=1, cmap='seismic')
u, s, v = SSVD_multi(cancer)
cancer_new = u @ s @ np.sort(np.ravel(v))[::-1].reshape(1,-1)
sns.heatmap(cancer_new, vmin=-1, vmax=1, cmap='seismic')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17487266553480477, 'fraction_numerical': 0.027164685908319185, 'mean_word_length': 5.8604651162790695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '12599', 'license': 'MIT', 'n_tokens_mistral': 271, 'n_tokens_neox': 252, 'n_words': 53, 'path': 'examples.ipynb', 'repo_name': 'Yutong-Z/Sparse-SVD-Algorithm', 'size': '589'}