<jupyter_start><jupyter_text>Long-Term-Memory Tutorial        ...         Table of contents:* [...](...)<jupyter_code>import numpy as np
import pandas as pd
from hyperactive import Hyperactive
from hyperactive.long_term_memory import LongTermMemory, Dashboard<jupyter_output><empty_output><jupyter_text>Introduction<jupyter_code>search_space_0 = {
    "x": list(range(-10, 11)),
    "y": list(range(-10, 11)),
}

def objective_function_0(opt):
    x = opt["x"]
    y = opt["y"]
    score = -(x * x + y * y)
    return score
ltm = LongTermMemory("test_model1")
hyper = Hyperactive(verbosity=False)
hyper.add_search(objective_function_0, search_space_0, n_iter=100, memory=ltm)
hyper.run()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1394700139470014, 'fraction_numerical': 0.022315202231520222, 'mean_word_length': 5.033613445378151, 'pattern_counts': {'":': 2, '<': 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': '584064', 'license': 'MIT', 'n_tokens_mistral': 265, 'n_tokens_neox': 252, 'n_words': 50, 'path': 'notebooks/Hyperactive long-term-memory Tutorial.ipynb', 'repo_name': 'SimonBlanke/hyperactive-tutorial', 'size': '717'}