Commit b7c120bf authored by Joaquin Torres's avatar Joaquin Torres

Deleted print shapes

parent c9d3eaf1
import os
import numpy as np
def print_shapes(directory):
# List all files in the directory
for file in os.listdir(directory):
if file.endswith(".npy"):
# Load the .npy file
data = np.load(os.path.join(directory, file))
# Print the shape of the numpy array
print(f"{file}: {data.shape}")
# Example usage:
directory_path = './output/shap_inter_values'
print_shapes(directory_path)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment