Download Archive/SimpleTimeModel/RandomForest/tmp.py from ValerianFourel/Weights-ResidualsModels-MappingInference-SOCmapping: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/ValerianFourel/Weights-ResidualsModels-MappingInference-SOCmapping/resolve/main/Archive/SimpleTimeModel/RandomForest/tmp.py
- Command line
-
hf download hf://ValerianFourel/Weights-ResidualsModels-MappingInference-SOCmapping/Archive/SimpleTimeModel/RandomForest/tmp.py
-
curl -L -o tmp.py https://huggingface.co/ValerianFourel/Weights-ResidualsModels-MappingInference-SOCmapping/resolve/main/Archive/SimpleTimeModel/RandomForest/tmp.py
753 Bytes
| import numpy as np | |
| def check_shapes(): | |
| try: | |
| # Load the saved numpy arrays | |
| predictions = np.load("predictions_1mil.npy") | |
| coordinates = np.load("coordinates_1mil.npy") | |
| # Print their shapes | |
| print("Predictions shape:", predictions.shape) | |
| print("Coordinates shape:", coordinates.shape) | |
| # Print total number of elements for comparison | |
| print("Number of predictions:", predictions.size) | |
| print("Number of coordinate pairs:", coordinates.shape[0]) | |
| except FileNotFoundError as e: | |
| print(f"Error: One or both files not found - {e}") | |
| except Exception as e: | |
| print(f"Error loading files: {e}") | |
| if __name__ == "__main__": | |
| check_shapes() | |