<commit_before>from scipy.io import loadmat
import matplotlib.pyplot as plt

from kernel_filtering.filters import KlmsFilter
from kernel_filtering.kernels import GaussianKernel

if __name__ == "__main__":
    # Cargar datos
    mat = loadmat("data/bicycle_data.mat")
    y_noise = mat['y_noise'][0]  # voltage signal

    # Configurar KLMS
    klms_params = {
        'kernel': GaussianKernel(sigma=10),
        'learning_rate': 5e-4,
        'delay': 5,
        # 'coefs': some_coefs,
        # 'dict': some_dict
    }
    klms = KlmsFilter(y_noise, y_noise)
    klms.fit(**klms_params)

    # Graficar resultados
    # Transient<commit_msg>Clean examples from unused imports<commit_after>from scipy.io import loadmat
import matplotlib.pyplot as plt

from kernel_filtering.filters import KlmsFilter
from kernel_filtering.kernels import GaussianKernel

if __name__ == "__main__":
    # Cargar datos
    mat = loadmat("data/bicycle_data.mat")
    y_noise = mat['y_noise'][0]  # voltage signal

    # Configurar KLMS
    klms_params = {
        'kernel': GaussianKernel(sigma=10),
        'learning_rate': 5e-4,
        'delay': 5,
    }
    klms = KlmsFilter(y_noise, y_noise)
    klms.fit(**klms_params)

    # Graficar resultados
    # Transient
{'fraction_non_alphanumeric': 0.10192616372391654, 'fraction_numerical': 0.009630818619582664, 'mean_word_length': 3.314878892733564, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '2849263', 'n_tokens_mistral': 446, 'n_tokens_neox': 429, 'n_words': 93}