<jupyter_start><jupyter_text>Quick check of target preference profiles and corrsponding utility space<jupyter_code>## pip install git+https://github.com/SifanSong/trackgenius.git

import numpy as np
%matplotlib inline 

## only Background required to be imported
from trackgenius.utilities.background import Background
## Basic configuration
## DOMAIN_Path: the path of target domain
## Domains: the target preference profiles included in DOMAIN_Path; (written in a list)
class CONFIG:
    DOMAIN_Path = "/Users/songsifan/Genius/etc/templates/Domain8/"
    Domains = ["Domain8_util1", "Domain8_util2"]

## create ENV object by Background
ENV = Background(CONFIG.DOMAIN_Path, CONFIG.Domains)
## summerise some important information
info_summary = ENV.background_information()

## generate the plot of outcome space by info_summary
ENV.show_background(info_summary)
## other related domains in project, COMP6200
## D4_1
class CONFIG:
    GENIUS_Path = "/Users/songsifan/Genius/"
    DOMAIN_Path = GENIUS_Path + "etc/templates/Domain4/"
    Domains = ["Domain4_util1", "Domain4_util2"]

ENV = Background(CONFIG.DOMAIN_Path, CONFIG.Domains)
info_summary = ENV.background_information()
ENV.show_background(info_summary)
## D4_2
class CONFIG:
    GENIUS_Path = "/Users/songsifan/Genius/"
    DOMAIN_Path = GENIUS_Path + "etc/templates/anac/y2013/Icecream/"
    Domains = ["Icecream_util1", "Icecream_util2"]

ENV = Background(CONFIG.DOMAIN_Path, 
                 CONFIG.Domains)
info_summary = ENV.background_information()
ENV.show_background(info_summary)
## D5_1
class CONFIG:
    GENIUS_Path = "/Users/songsifan/Genius/"
    DOMAIN_Path = GENIUS_Path + "etc/templates/anac/y2013/Animal/"
    Domains = ["Animal_util1", "Animal_util3"]

ENV = Background(CONFIG.DOMAIN_Path, CONFIG.Domains)
info_summary = ENV.background_information()
ENV.show_background(info_summary)
## D5_2
class CONFIG:
    GENIUS_Path = "/Users/songsifan/Genius/"
    DOMAIN_Path = GENIUS_Path + "etc/templates/anac/y2012/Phone/"
    Domains = ["Phone-A-prof1", "Phone-A-prof2"]

ENV = Background(CONFIG.DOMAIN_Path, CONFIG.Domains)
info_summary = ENV.background_information()
ENV.show_background(info_summary)
## D6_1
class CONFIG:
    GENIUS_Path = "/Users/songsifan/Genius/"
    DOMAIN_Path = GENIUS_Path + "etc/templates/anac/y2013/cameradomain/"
    Domains = ["Camera-A-prof1", "Camera-A-prof2"]

ENV = Background(CONFIG.DOMAIN_Path, CONFIG.Domains)
info_summary = ENV.background_information()
ENV.show_background(info_summary)
## D6_2
class CONFIG:
    GENIUS_Path = "/Users/songsifan/Genius/"
    DOMAIN_Path = GENIUS_Path + "etc/templates/anac/y2013/Lunch/"
    Domains = ["Lunch_util1", "Lunch_util2"]

ENV = Background(CONFIG.DOMAIN_Path, CONFIG.Domains)
info_summary = ENV.background_information()
ENV.show_background(info_summary)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11369236184442098, 'fraction_numerical': 0.019711369236184443, 'mean_word_length': 5.27373068432671, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '60243', 'license': 'MIT', 'n_tokens_mistral': 993, 'n_tokens_neox': 965, 'n_words': 187, 'path': 'Note0_background.ipynb', 'repo_name': 'SifanSong/trackgenius', 'size': '2841'}