d990f23b72c2409084a799bdf49109a996a02256,demo/PCA_demo.py,,,#,3

Before Change


from models import PCA as PCA
from utils import data_loader as data_loader

para = {
"path":"../../Data/SOSP_data/", // directory for input data
"log_seq_file_name":"rm_repeat_rawTFVector.txt", // filename for log sequence data file
"label_file_name":"rm_repeat_mlabel.txt", // filename for label data file
"fraction":0.95
}


if __name__ == "__main__":
	raw_data, label_data = data_loader.hdfs_data_loader(para)

After Change


    feature_extractor = preprocessing.FeatureExtractor()
    x_train = feature_extractor.fit_transform(x_train, term_weighting="tf-idf", 
                                            normalization="zero-mean")
    x_test = feature_extractor.transform(x_test)

    model = PCA()
    model.fit(x_train)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: logpai/loglizer
Commit Name: d990f23b72c2409084a799bdf49109a996a02256
Time: 2019-02-17
Author: zhujm.home@gmail.com
File Name: demo/PCA_demo.py
Class Name:
Method Name:


Project Name: deepchem/deepchem
Commit Name: f1f9412267d265a328c1966668cdee2030e25158
Time: 2019-06-14
Author: vsomnath@student.ethz.ch
File Name: deepchem/molnet/load_function/bace_datasets.py
Class Name:
Method Name: load_bace_classification


Project Name: bokeh/bokeh
Commit Name: 48306be025bec7e383aa094f65aabdec6c0058ba
Time: 2020-01-06
Author: bryan@bokeh.org
File Name: examples/plotting/file/color_data_map.py
Class Name:
Method Name: make_plot


Project Name: bokeh/bokeh
Commit Name: c7c0ed92c0f72f146a2700f169bacf374805e436
Time: 2018-10-01
Author: bryanv@anaconda.com
File Name: examples/plotting/file/customjs_transform.py
Class Name:
Method Name: