95b8e2a603f66cc3091e3266a717c0f206be3e95,FeatureSelection.py,,,#,34
Before Change
//tf-idf
tfidfV = TfidfTransformer()
train_tfidf = tfidfV.fit_transform(train_count)
train_tfidf.shape
//get train data feature names
print(train_tfidf.A[:10])
After Change
train_count = countV.fit_transform(DataPrep.train_news["Statement"].values)
print(countV)
print(train_count)
//print training doc term matrix
//we have matrix of size of (10240, 12196) by calling below
def get_countVectorizer_stats():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: nishitpatel01/Fake_News_Detection
Commit Name: 95b8e2a603f66cc3091e3266a717c0f206be3e95
Time: 2017-12-03
Author: nkp3@illinois.edu
File Name: FeatureSelection.py
Class Name:
Method Name:
Project Name: alfredfrancis/ai-chatbot-framework
Commit Name: d3d75272141f7dfabcddb743d42c0c6d367e5f4d
Time: 2018-04-22
Author: alfredfranciz@gmail.com
File Name: app/nlu/intent_classifer.py
Class Name: IntentClassifier
Method Name: train
Project Name: pfnet-research/chainer-chemistry
Commit Name: 385d547abb17e1cefa01d857dd4021ca99188f30
Time: 2018-08-03
Author: mihaimorariu@gmail.com
File Name: examples/custom_dataset/predict_custom_dataset.py
Class Name:
Method Name: main
Project Name: nishitpatel01/Fake_News_Detection
Commit Name: 3b49ffd98696ad697cf2b9685e581459d51ea0b1
Time: 2017-12-03
Author: nkp3@illinois.edu
File Name: FeatureSelection.py
Class Name:
Method Name: