01014b01722a0b95620c418e9b81582701ce85b0,tests/integration/corpuslabel_test.py,CorpusLabelTest,testBucketMerge,#CorpusLabelTest#,187

Before Change


    writeCorpus(self.tempCorpusPath, {dataFileName : data})
    writeCorpusLabel(labelsDir01, {"test_data_file.csv": labels01})
    writeCorpusLabel(labelsDir02, {"test_data_file.csv": labels02})
    writeCorpusLabel(labelsDir03, {"test_data_file.csv": labels03})

    corpus = nab.corpus.Corpus(self.tempCorpusPath)
    labDir = labelsDir01.replace("/label01.json", "")

After Change


      labelsPath = self.tempCorpusLabelPath.replace(
        "/label.json", "/raw/label{}.json".format(i))
      writeCorpusLabel(labelsPath, {"test_data_file.csv": labels})
    labelsDir = labelsPath.replace("/label{}.json".format(i), "")

    corpus = nab.corpus.Corpus(self.tempCorpusPath)
    labelCombiner = nab.labeler.LabelCombiner(
      labelsDir, corpus, 0.5, 0.10, 0.15, 0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: numenta/NAB
Commit Name: 01014b01722a0b95620c418e9b81582701ce85b0
Time: 2015-09-24
Author: alavin@numenta.com
File Name: tests/integration/corpuslabel_test.py
Class Name: CorpusLabelTest
Method Name: testBucketMerge


Project Name: commonsense/conceptnet5
Commit Name: d3ee4125592e31af6d7548ad80728de1e74750dd
Time: 2015-06-22
Author: jchin@luminoso.com
File Name: ninja.py
Class Name:
Method Name: parse_conceptnet4


Project Name: daavoo/pyntcloud
Commit Name: cdbe12c9ecc86fb54e6310d6aeab98edc6eba879
Time: 2017-05-02
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_PyntCloud