Skip to content

Pls

compare_states(results, feature_names, output_file='loadings_analysis.md')

compute_loading_angles_and_magnitudes(pls, gradient_vector, feature_names)

create_angle_magnitude_file(data, state_key, feature_names)

create_markdown_table(data, headers, feature_names)

Create a markdown table from the given data and headers, including feature letters.

perform_pls_regression(X, y, n_components=2)

plot_pls_results(pls, X_scaled, y_scaled, feature_names, state_key, n_bins=150, y_label='Response variable', arrow_scaling=5.0, vmin=None, vmax=None, figsize=(3.5, 3.0))