<jupyter_start><jupyter_text>test regressor<jupyter_code>test_ross = joblib.load('../../pdpbox/datasets/test_ross.pkl')

ross_data = test_ross['data']
ross_features = test_ross['features']
ross_target = test_ross['target']
ross_model = test_ross['rf_model']<jupyter_output><empty_output><jupyter_text>test actual_plot_interact<jupyter_code>import sys
sys.path.insert(0, '../../')

from pdpbox.info_plots import actual_plot_interact
fig, axes, df = actual_plot_interact(model=ross_model, 
                                X=ross_data[ross_features], 
                                features=[['StoreType_a', 'StoreType_b', 'StoreType_c', 'StoreType_d'], 'SchoolHoliday'], 
                                feature_names=['StoreType', 'SchoolHoliday'])
df
fig, axes, df = actual_plot_interact(model=ross_model, 
                                X=ross_data[ross_features], 
                                features=[['StoreType_a', 'StoreType_b', 'StoreType_c', 'StoreType_d'], 'weekofyear'], 
                                feature_names=['StoreType', 'weekofyear'], figsize=(15, 15))
fig, axes, df = actual_plot_interact(model=ross_model, 
                                X=ross_data[ross_features], 
                                features=['weekofyear', 'SchoolHoliday'], 
                                feature_names=['weekofyear', 'SchoolHoliday'], figsize=(15, 8))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13071428571428573, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 2.657963446475196, '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': '637424', 'license': 'MIT', 'n_tokens_mistral': 453, 'n_tokens_neox': 421, 'n_words': 56, 'path': 'notebooks/function_test/test_actual_plot_interact_regression.ipynb', 'repo_name': 'saurabhshubham323/PDPbox', 'size': '1400'}