-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathAllImport.py
More file actions
33 lines (30 loc) · 1.01 KB
/
Copy pathAllImport.py
File metadata and controls
33 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from tweepy import Cursor
from tweepy import OAuthHandler
from tweepy import API
import pandas as pd
import twitter_credentials
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.model_selection import train_test_split
# importing algorithms from our modules
import LinearRegression
import MultinomialNaiveBayes
import MultinomialLogisitcRegression
import BinaryLogisticRegression
import DecisionTreeClassifier
import LinearSupportVectorClassifier
import RandomForestClassifier
import ExtraTreeClassifier
import LinearClassifier
# importing pre process from our module to pre-process the raw tweet text into useful information
import PreProcess
pp = PreProcess
# created Algorithms Object of our imported algorithms
mnb = MultinomialNaiveBayes
mlr = MultinomialLogisitcRegression
blr = BinaryLogisticRegression
lr = LinearRegression
lsvc = LinearSupportVectorClassifier
dtc = DecisionTreeClassifier
rfc = RandomForestClassifier
etc = ExtraTreeClassifier
lc = LinearClassifier