45c9fcd8b1df849a0c3b19403d13da38b7cd68c3,tpot/operators/preprocessors/zero_count.py,ZeroCount,transform,#ZeroCount#Any#,34

Before Change


        num_features = len(feature_cols_only.columns.values)

        modified_df = input_df.copy()
        modified_df["non_zero"] = feature_cols_only.\
            apply(lambda row: np.count_nonzero(row), axis=1).astype(np.float64)
        modified_df["zero_col"] = feature_cols_only.\
            apply(lambda row: (num_features - np.count_nonzero(row)), axis=1).astype(np.float64)

        return modified_df.copy()

After Change


        X_transformed: array-like, shape (n_samples, n_features)
            The transformed feature set
        
        X = check_array(X)
        n_samples, n_features = X.shape

        X_transformed = np.copy(X)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: EpistasisLab/tpot
Commit Name: 45c9fcd8b1df849a0c3b19403d13da38b7cd68c3
Time: 2016-07-07
Author: supacoofoo@gmail.com
File Name: tpot/operators/preprocessors/zero_count.py
Class Name: ZeroCount
Method Name: transform


Project Name: lmcinnes/umap
Commit Name: 10bf135138fb15df85ac308026161c409e4775e6
Time: 2018-05-18
Author: leland.mcinnes@gmail.com
File Name: umap/umap_.py
Class Name: UMAP
Method Name: fit


Project Name: theislab/scanpy
Commit Name: 1400d1e35f908d6f5ab8a8681970ac4aba673565
Time: 2019-07-11
Author: ivirshup@gmail.com
File Name: scanpy/tools/_umap.py
Class Name:
Method Name: umap