Skip to content

ReproZip hangs on fit_transform() method from sklearn.decomposition and phate #388

Open
@milech

Description

@milech

When running reprozip trace for the experiment containing dimensionality reduction algorithms like PCA or t-SNE from scikit-learn or PHATE from phate library, it hangs on performing the fit_transform() method.

Versions of libraries:
scikit-learn 1.2.0
phate 1.0.10
pandas 1.3.5

System: Ubuntu 18.04.6 LTS

Sample code to reproduce the issue:

from pathlib import Path
import pandas as pd
from sklearn.decomposition import PCA

def main():
    path = Path(f"path to a csv file")
    X = pd.read_csv(path)

    print("Creating PCA object")
    pca = PCA(random_state=123, n_components=3)
    print("PCA object created")
   
    print("fitting PCA transform")
    X_pca = pca.fit_transform(X)  # It hangs here. The print method below is never reached.
    print("PCA transform fitted")

if __name__ == "__main__":
    main()

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracer (C)Component: The C part of the tracer codebase (_pytracer extension)T-bugType: A fix for unwanted behavior, NOT a new feature or a simple enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions