refactor: reorganize project structure by moving core modules and update import paths in API server

This commit is contained in:
2026-07-18 01:24:30 +07:00
parent abab846884
commit a82b2f6fa5
155 changed files with 25 additions and 370 deletions
+14
View File
@@ -0,0 +1,14 @@
import joblib, numpy as np
data = joblib.load('dataset_cache/training_data_2d_temporal.joblib')
X, y = data['X'], data['y']
print(f'Shape: {X.shape}, dtype: {X.dtype}')
print(f'Labels unique: {np.unique(y)}')
print(f'Label counts:')
for lbl in sorted(np.unique(y)):
print(f' Label {lbl}: {(y==lbl).sum()}')
print(f'Range: [{X.min():.4f}, {X.max():.4f}], Mean: {X.mean():.4f}')
print(f'AllZero patches: {(X.reshape(X.shape[0],-1).sum(1)==0).sum()}')
for t in range(4):
block = X[:, t*6:(t+1)*6]
nz = (block.reshape(block.shape[0],-1).sum(1)!=0).sum()
print(f' Timestep {t}: non-zero={nz}/{len(X)}')