()
Load skeleton data from `skeletons_info.txt`, process data, 
    and then save features and labels to .csv file.
Load skeleton data from `skeletons_info.txt`, process data, 
    and then save features and labels to .csv file.
Load skeleton data from skeletons_info . txt process data and then save features and labels to . csv file .
def main():
    ''' 
    Load skeleton data from `skeletons_info.txt`, process data, 
    and then save features and labels to .csv file.
    '''

    # Load data
    X0, Y0, video_indices = load_skeleton_data(SRC_ALL_SKELETONS_TXT, CLASSES)

    # Process features
    print("\nExtracting time-serials features ...")
    X, Y = process_features(X0, Y0, video_indices, CLASSES)
    print(f"X.shape = {X.shape}, len(Y) = {len(Y)}")

    # Save data
    print("\nWriting features and labesl to disk ...")

    os.makedirs(os.path.dirname(DST_PROCESSED_FEATURES), exist_ok=True)
    os.makedirs(os.path.dirname(DST_PROCESSED_FEATURES_LABELS), exist_ok=True)

    np.savetxt(DST_PROCESSED_FEATURES, X, fmt="%.5f")
    print("Save features to: " + DST_PROCESSED_FEATURES)

    np.savetxt(DST_PROCESSED_FEATURES_LABELS, Y, fmt="%i")
    print("Save labels to: " + DST_PROCESSED_FEATURES_LABELS)
def main ( ) : # Load data X0 , Y0 , video_indices = load_skeleton_data ( SRC_ALL_SKELETONS_TXT , CLASSES ) # Process features print ( "\nExtracting time-serials features ..." ) X , Y = process_features ( X0 , Y0 , video_indices , CLASSES ) print ( f"X.shape = {X.shape}, len(Y) = {len(Y)}" ) # Save data print ( "\nWriting features and labesl to disk ..." ) os . makedirs ( os . path . dirname ( DST_PROCESSED_FEATURES ) , exist_ok = True ) os . makedirs ( os . path . dirname ( DST_PROCESSED_FEATURES_LABELS ) , exist_ok = True ) np . savetxt ( DST_PROCESSED_FEATURES , X , fmt = "%.5f" ) print ( "Save features to: " + DST_PROCESSED_FEATURES ) np . savetxt ( DST_PROCESSED_FEATURES_LABELS , Y , fmt = "%i" ) print ( "Save labels to: " + DST_PROCESSED_FEATURES_LABELS )